younifyd
Menu

Get Robot

Get robot metadata

GET/v2025-07-11/access/{resourceType}/{resourceId}/robots/{robotId}

Use it in a workflow

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

robotIdstringrequired

The robot's unique identifier.

Response

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

idstring

The unique identifier for the robot.

tokenIdstring

The unique identifier for the active token.

labelstring

A human-readable label for the robot.

createdAtstring (date-time)

The creation date of the robot.

expiresAtstring (date-time)

When the active token expires.

lastSeenAtstring (date-time)

When the robot was last used at the resource this request is scoped to. Updated about once an hour. Omitted if no use has been recorded since its current token was issued.

managedByobject

The resource this token was created under. When this is an organization but the token is listed under a project, the token was created via the organization and should be managed there. Omitted for legacy tokens whose origin can't be determined.

resourceTypestringrequired
resourceIdstringrequired
membershipsarray<object>
addedAtstring (date-time)
resourceTypestringrequired
resourceIdstringrequired
roleNamesarray<string>required
lastSeenAtstring | null

For project memberships, the latest recorded authenticated request to that project, including clients other than Studio. Updated by an hourly import when it succeeds, so it may lag if imports are delayed. Null or omitted means no activity was recorded, not that the project was unused. Not set for organization memberships.

resourceUserIdstring | null

An alternative ID for the user in the resource. Only present for project memberships. That is, a user can be assigned to multiple projects, and each project will have a different resourceUserId to reference the same user.

json
{
  "id": "string",
  "label": "string",
  "createdAt": "2025-01-01T00:00:00Z",
  "memberships": [
    {
      "resourceType": "project",
      "resourceId": "c7ja4siy",
      "roleNames": [
        "administrator",
        "editor"
      ],
      "addedAt": "2024-01-15T12:15:30Z",
      "lastSeenAt": "2024-01-15T12:15:30Z",
      "resourceUserId": "projectUserId123"
    }
  ],
  "tokenId": "string",
  "expiresAt": "2025-01-01T00:00:00Z",
  "lastSeenAt": "2025-01-01T00:00:00Z",
  "managedBy": {
    "resourceType": "organization",
    "resourceId": "oeMyOrg"
  }
}

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

Was this page helpful?