younifyd
Menu

Create Robot

Create robot and associated token

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

Use it in a workflow

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

Query parameters

sendNotificationboolean

Whether to send email notification to administrators when creating project robots. Only applies to project resource types. Can be set to false for projects created within the last 5 minutes.

Default true

Response

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

tokenstring

The secret token for the robot. This value is returned only when the token is created or rotated and cannot be retrieved again.

json
{
  "token": "string"
}

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