younifyd
Menu

Get Invite By Token

Get invite

GET/v2025-07-11/access/{resourceType}/{resourceId}/invites/token/{inviteToken}

Use it in a workflow

  1. Add a step and choose the Sanity connector.
  2. Pick the Get Invite By Token action (under Access).
  3. Fill in the fields below, then reference the result from later steps as {{getInviteByToken.response.data}}.

Request

Path parameters

resourceTypestringrequired

The resource type to scope the access requests to.

One oforganizationprojectmedia-librarycanvasdashboardviewknowledge-base

resourceIdstringrequired

The resource ID to scope the access request to. Must be a valid ID for the resource type.

inviteTokenstringrequired

The public token for the invite. This token is shared with the invitee.

Response

Returns 200 with an object. Read it in later steps with {{getInviteByToken.response.data.<field>}}.

idstring
statusstring

One ofpendingacceptedrevoked

resourceTypestring

Resources are entities that can be managed and accessed through the Access API.

One oforganizationprojectmedia-librarycanvasdashboardviewknowledge-base

resourceIdstring
rolestring
emailstring

The email address of the invitee. Only present if the invite is still pending.

inviterTypestring

One ofuserservice

inviterIdstring

The ID of the user or service that created the invite. Only present if the invite was created by a user.

inviteeIdstring

The ID of the user that accepted the invite. Only present if the invite has been accepted.

createdAtstring (date-time)
updatedAtstring (date-time)
json
{
  "id": "string",
  "status": "pending",
  "resourceType": "project",
  "resourceId": "string",
  "role": "string",
  "inviterType": "user",
  "createdAt": "2025-01-01T00:00:00Z",
  "updatedAt": "2025-01-01T00:00:00Z",
  "email": "string",
  "inviterId": "string",
  "inviteeId": "string"
}

Need more? See the Sanity guide for connection setup and behaviour shared by every action.

Get Invite By Token — Sanity — Documentation