Sanity · Capability
Sanity Content Management
Unified capability combining Sanity's Content API and Projects API for full content lifecycle management. Used by developers, content engineers, and editorial teams to query, create, update, and manage content in Sanity Content Lake, as well as manage projects, datasets, and webhooks.
What You Can Do
POST
Query documents
— Execute a GROQ query against a dataset
/v1/content/query
POST
Mutate documents
— Apply create, update, patch, or delete mutations
/v1/content/mutate
GET
List projects
— List all accessible Sanity projects
/v1/projects
GET
List datasets
— List datasets in a project
/v1/projects/{projectId}/datasets
GET
List tokens
— List API tokens for a project
/v1/projects/{projectId}/tokens
GET
List webhooks
— List webhooks for a project
/v1/projects/{projectId}/webhooks
POST
Create webhook
— Create a new webhook
/v1/projects/{projectId}/webhooks
MCP Tools
query-content
Query Sanity Content Lake documents using GROQ syntax
read-only
create-document
Create a new document in Sanity Content Lake
update-document
Update an existing document in Sanity Content Lake
delete-document
Delete a document from Sanity Content Lake
idempotent
list-projects
List all Sanity projects accessible with the current token
read-only
list-datasets
List datasets in a Sanity project
read-only
create-webhook
Configure a webhook to receive Sanity content change notifications
APIs Used
sanity-content
sanity-projects