Skip to main content
Sanity
Sanity
33 actions · 2 auth methods
DocumentsIAM

Authentication

API Token

Connect with a Sanity project robot token (project > API > Tokens) using the Developer permission, which grants access t…Guides: Connector Profile, Link Account

OAuth 2.0

Recommended for multi-user apps acting on behalf of Sanity users. Requires OAuth client credentials that Sanity provisio…Guides: Connector Profile, Link Account
Actions
33 actions
Action
Description
Query Documents
Query documents with GROQ
Get Document
Get a document by ID
Mutate Documents
Create, update, patch or delete documents
Export Dataset
Export all documents in a dataset
Get Document History
Get the revision history of a document
Upload Image Asset
Upload an image asset
Upload File Asset
Upload a file asset
Link Media Library Asset
Link a Media Library asset into a dataset
List Projects
List projects
Get Project
Get a project by ID
List Datasets
List datasets
Create Dataset
Create a dataset
Update Dataset
Update a dataset
Delete Dataset
Delete a dataset
Copy Dataset
Copy a dataset
List Dataset Copy Jobs
List dataset copy jobs
List Dataset Tags
List tags assigned to a dataset
Create Tag
Create a project tag
Update Tag
Update a project tag
Delete Tag
Delete a project tag
Assign Tag To Dataset
Assign a tag to a dataset
Remove Tag From Dataset
Remove a tag from a dataset
List Access Users
List users and their roles
Get Access User
Get a user and their roles
Replace User Roles
Replace the set of roles assigned to a user
List Permissions
List available permissions
Get Permission
Get a permission by name
List Roles
List assignable roles
Get Role
Get a role by name
List Invites
List invites for a resource
Create Invite
Invite a user to a resource
Revoke Invite
Revoke an invite
List Access Requests
List access requests for the project

Getting Started

1

Create or Select a Project

Set up a new project or select an existing one. See the Projects Guide.
2

Configure the Connector

Enable the connector and set up a connector profile in your project. See Managing Connectors.
https://stackone-logos.com/api/sanity/filled/png

Connector Profile

Sanity - API Token
https://stackone-logos.com/api/sanity/filled/png

Connector Profile

Sanity - OAuth 2.0
3

Link an Account

Connect an account using StackOne Hub or Auth Link.
https://stackone-logos.com/api/sanity/filled/png

Link Account

Sanity - API Token
https://stackone-logos.com/api/sanity/filled/png

Link Account

Sanity - OAuth 2.0
4

Use Actions

Invoke actions using one of the methods below: