Sanity · Arazzo Workflow

Sanity Issue Token for Project

Version 1.0.0

Confirm a project exists, mint an API token on it, then list its tokens.

1 workflow 1 source API 1 provider
View Spec View on GitHub Headless CMSContent ManagementGROQReal-TimeStructured ContentDeveloper PlatformArazzoWorkflows

Provider

sanity

Workflows

issue-token-for-project
Verify a project, create an API token on it, and list the tokens.
Reads the project to confirm access, creates a token with the supplied label and role, captures the one-time key, and lists the project's tokens to confirm registration.
3 steps inputs: apiToken, label, projectId, roleName outputs: tokenId, tokenKey, tokens
1
getProject
Fetch the project to confirm it exists and is reachable.
2
createToken
Mint a new API token with the requested role and capture the one-time token key returned only at creation.
3
listTokens
List the project's tokens to confirm the new token is registered.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Sanity Issue Token for Project
  summary: Confirm a project exists, mint an API token on it, then list its tokens.
  description: >-
    The credential provisioning pattern for a Sanity project. The workflow
    first fetches the project to confirm it exists and the caller can reach it,
    then mints a new API token with the requested role, capturing the one-time
    token key, and finally lists the project's tokens to confirm the new token
    is registered. Every step spells out its request inline so the flow can be
    read and executed without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: projectsApi
  url: ../openapi/sanity-projects-api-openapi.yml
  type: openapi
workflows:
- workflowId: issue-token-for-project
  summary: Verify a project, create an API token on it, and list the tokens.
  description: >-
    Reads the project to confirm access, creates a token with the supplied
    label and role, captures the one-time key, and lists the project's tokens
    to confirm registration.
  inputs:
    type: object
    required:
    - apiToken
    - projectId
    - label
    - roleName
    properties:
      apiToken:
        type: string
        description: Sanity management API token used as a Bearer credential.
      projectId:
        type: string
        description: The project id to mint the new token within.
      label:
        type: string
        description: Human-readable label for the new token.
      roleName:
        type: string
        description: Role to assign to the new token.
  steps:
  - stepId: getProject
    description: Fetch the project to confirm it exists and is reachable.
    operationId: getProject
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.apiToken"
    - name: projectId
      in: path
      value: $inputs.projectId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      displayName: $response.body#/displayName
  - stepId: createToken
    description: >-
      Mint a new API token with the requested role and capture the one-time
      token key returned only at creation.
    operationId: createToken
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.apiToken"
    - name: projectId
      in: path
      value: $inputs.projectId
    requestBody:
      contentType: application/json
      payload:
        label: $inputs.label
        roleName: $inputs.roleName
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      tokenId: $response.body#/id
      tokenKey: $response.body#/key
  - stepId: listTokens
    description: List the project's tokens to confirm the new token is registered.
    operationId: listTokens
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.apiToken"
    - name: projectId
      in: path
      value: $inputs.projectId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      tokens: $response.body
  outputs:
    tokenId: $steps.createToken.outputs.tokenId
    tokenKey: $steps.createToken.outputs.tokenKey
    tokens: $steps.listTokens.outputs.tokens

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/sanity-issue-token-for-project-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.