Skip to main content
Sanity
37 actions · 3 events · 3 auth methods
CMSIAM

Getting Started

1

Create or Select a Project

Set up a new project or select an existing one. See Organizations & Projects.
2

Configure the Connector

Enable the connector and create a Connector Profile in your project. See Setup Connector Profile.

API Token · Connector Profile

Uses a project robot token, so access covers one Sanity project and only the permissions granted to the token. Needs no…

OAuth 2.0 · Connector Profile

Requires OAuth client credentials that Sanity provisions on request, with no self-service app registration. Sanity issue…

Organization API Token · Connector Profile

Uses an organization robot token to read the members, pending invitations and roles of the whole Sanity organization and…
Optionally, configure receiving Events for Sanity into StackOne.

Webhooks setup

3

Link an Account

Link an account from the dashboard (or via StackOne Hub).See the guide for the authentication type chosen in the Connector Profile:

API Token · Link Account

OAuth 2.0 · Link Account

Organization API Token · Link Account

4

Use Actions

Connect an AI platform to the linked account’s actions. See AI Platforms.Other ways to call actions are listed in Protocols & SDKs.

Actions

|
37 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
List Unified Roles
List unified roles in a Sanity organization.
Get Unified Role
Get a unified Sanity role by ID.
List Unified Users
List unified users in a Sanity organization.
Get Unified User
Get a unified Sanity user by ID.

Events

|
3 events
Event
Description
Tags
Document Created
Fired when a new published document is created in a Sanity dataset.
DocumentsWebhooks
Document Updated
Fired when an existing published document is changed in a Sanity dataset.
DocumentsWebhooks
Document Deleted
Fired when a published document is deleted or unpublished in a Sanity dataset.
DocumentsWebhooks