Blocks
Sanity
Real-time headless CMS with GROQ query language
Integrate with Sanity CMS for real-time collaborative content editing, GROQ queries, document management, and structured content. Features live updates and developer-centric workflows with OAuth 2.0 authentication.
Block Preview
Sanity
Real-time headless CMS with GROQ query language
Usage
- Add the block to your workflow and connect it to the upstream step.
- Connect the required credentials or OAuth provider before running.
- Fill in required inputs and optional parameters for the run.
- Run a test execution, inspect outputs, and iterate before deploying.
- Deploy the sanity block with monitoring enabled in production.
Inputs (UI)
Sanity Account
oauth-inputPlaceholder: Select Sanity account
Layout: full
Provider: sanity
Project ID
short-inputPlaceholder: Enter project ID
Layout: half
Dataset
short-inputPlaceholder: production, staging
Layout: half
Operation
dropdownLayout: full
Options: GROQ Query, Get Document, Create Document, Update Document
GROQ Query
long-inputPlaceholder: *[_type == "post"]{title, slug, body}
Layout: full
Condition: operation = "query"
Document ID
short-inputPlaceholder: Enter document ID
Layout: full
Condition: operation = ["get_document","update_document","delete_document"]
Document Type
short-inputPlaceholder: post, author, category
Layout: full
Condition: operation = ["create_document","list_documents"]
Document Data (JSON)
long-inputPlaceholder: {"_type": "post", "title": "My Post", "body": "Content..."}
Layout: full
Condition: operation = ["create_document","update_document"]
Inputs (API)
credential
stringRequired
projectId
stringRequired
dataset
stringRequired
operation
stringRequired
groqQuery
stringOptional
documentId
stringOptional
documentType
stringOptional
document
stringOptional
Outputs
Primary response type:
{
"data": "json"
}