Menu
Create Invite
Create invite
POST
/v2025-07-11/access/{resourceType}/{resourceId}/invitesUse it in a workflow
- Add a step and choose the Sanity connector.
- Pick the Create Invite action (under Access).
- Fill in the fields below, then reference the result from later steps as
{{createInvite.response.data}}.
Request
Path parameters
Response
Returns 201 with an object. Read it in later steps with {{createInvite.response.data.<field>}}.
{
"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.
Was this page helpful?