younifyd
Menu

Retrieve Tag

Retrieve a tag

GET/projects/{projectId}/tags/{tagIdentifier}

Use it in a workflow

  1. Add a step and choose the Sanity connector.
  2. Pick the Retrieve Tag action (under Projects).
  3. Fill in the fields below, then reference the result from later steps as {{retrieveTag.response.data}}.

Request

Path parameters

projectIdstringrequired

The unique ID of the project.

tagIdentifierstringrequired

The name of the tag.

Response

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

namestring
titlestring
descriptionstring
metadataobject
tonestring

One ofdefaultprimarypositivecautioncriticaltransparent

datasetsarray<object>
namestring
aclModestring
json
{
  "name": "string",
  "title": "string",
  "description": "string",
  "metadata": {
    "tone": "default"
  },
  "datasets": [
    {
      "name": "string",
      "aclMode": "string"
    }
  ]
}

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

Was this page helpful?