younifyd
Menu

Create Invite

Create invite

POST/v2025-07-11/access/{resourceType}/{resourceId}/invites

Use it in a workflow

  1. Add a step and choose the Sanity connector.
  2. Pick the Create Invite action (under Access).
  3. Fill in the fields below, then reference the result from later steps as {{createInvite.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.

Response

Returns 201 with an object. Read it in later steps with {{createInvite.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.

Create Invite — Sanity — Documentation