Issue Token for Project
A 3-step recipe with Sanity. We can help you get access.
Recipe · 3 steps
Issue Token for Project
with Sanity
Verify a project, create an API token on it, and list the tokens.
- Fetch the project to confirm it exists and is reachable.
- Mint a new API token with the requested role and capture the one-time token key returned only at creation.
- List the project's tokens to confirm the new token is registered.
What you'll need to have ready
- apiToken: Sanity management API token used as a Bearer credential.
- projectId: The project id to mint the new token within.
- label: Human-readable label for the new token.
- roleName: Role to assign to the new token.
For your developer
Arazzo workflow sanity:issue-token-for-project, 3 operations: getProject → createToken → listTokens. Specs on APIs.io.