Sanity Query API
The Sanity Query API enables querying Content Lake documents using GROQ (Graph-Relational Object Queries). Supports GET for queries under 11 KB and POST for larger queries. Available at both the standard API endpoint and a CDN endpoint for edge-cached results. Supports perspectives (drafts, published), result source maps, and query explain functionality.
Documentation
Specifications
Schemas & Data
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sanity/refs/heads/main/json-schema/sanity-document-schema.json
JSONSchema
https://raw.githubusercontent.com/api-evangelist/sanity/refs/heads/main/json-schema/sanity-webhook-schema.json
Other Resources
GraphQL
https://raw.githubusercontent.com/api-evangelist/sanity/refs/heads/main/graphql/sanity-graphql.md
APIsJSON
https://raw.githubusercontent.com/api-evangelist/sanity/refs/heads/main/apis.yml
Arazzo
https://raw.githubusercontent.com/api-evangelist/sanity/refs/heads/main/arazzo/sanity-bootstrap-project-workflow.yml
Arazzo
https://raw.githubusercontent.com/api-evangelist/sanity/refs/heads/main/arazzo/sanity-bulk-delete-by-query-workflow.yml
Arazzo
https://raw.githubusercontent.com/api-evangelist/sanity/refs/heads/main/arazzo/sanity-compare-draft-and-published-workflow.yml
Arazzo
https://raw.githubusercontent.com/api-evangelist/sanity/refs/heads/main/arazzo/sanity-create-and-verify-document-workflow.yml
Arazzo
https://raw.githubusercontent.com/api-evangelist/sanity/refs/heads/main/arazzo/sanity-discover-project-datasets-workflow.yml
Arazzo
https://raw.githubusercontent.com/api-evangelist/sanity/refs/heads/main/arazzo/sanity-issue-token-for-project-workflow.yml
Arazzo
https://raw.githubusercontent.com/api-evangelist/sanity/refs/heads/main/arazzo/sanity-provision-dataset-workflow.yml
Arazzo
https://raw.githubusercontent.com/api-evangelist/sanity/refs/heads/main/arazzo/sanity-publish-draft-document-workflow.yml
Arazzo
https://raw.githubusercontent.com/api-evangelist/sanity/refs/heads/main/arazzo/sanity-query-then-patch-document-workflow.yml
Arazzo
https://raw.githubusercontent.com/api-evangelist/sanity/refs/heads/main/arazzo/sanity-register-webhook-for-query-workflow.yml
Arazzo
https://raw.githubusercontent.com/api-evangelist/sanity/refs/heads/main/arazzo/sanity-rename-project-workflow.yml
Arazzo
https://raw.githubusercontent.com/api-evangelist/sanity/refs/heads/main/arazzo/sanity-replace-document-asset-workflow.yml
Arazzo
https://raw.githubusercontent.com/api-evangelist/sanity/refs/heads/main/arazzo/sanity-upload-asset-and-reference-workflow.yml
Arazzo
https://raw.githubusercontent.com/api-evangelist/sanity/refs/heads/main/arazzo/sanity-upsert-document-workflow.yml