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.

Back to Catalog
Toolssanity

Block Preview

Sanity

Real-time headless CMS with GROQ query language

Usage

  1. Add the block to your workflow and connect it to the upstream step.
  2. Connect the required credentials or OAuth provider before running.
  3. Fill in required inputs and optional parameters for the run.
  4. Run a test execution, inspect outputs, and iterate before deploying.
  5. Deploy the sanity block with monitoring enabled in production.

Inputs (UI)

Sanity Account

oauth-input

Placeholder: Select Sanity account

Layout: full

Provider: sanity

Project ID

short-input

Placeholder: Enter project ID

Layout: half

Dataset

short-input

Placeholder: production, staging

Layout: half

Operation

dropdown

Layout: full

Options: GROQ Query, Get Document, Create Document, Update Document

GROQ Query

long-input

Placeholder: *[_type == "post"]{title, slug, body}

Layout: full

Condition: operation = "query"

Document ID

short-input

Placeholder: Enter document ID

Layout: full

Condition: operation = ["get_document","update_document","delete_document"]

Document Type

short-input

Placeholder: post, author, category

Layout: full

Condition: operation = ["create_document","list_documents"]

Document Data (JSON)

long-input

Placeholder: {"_type": "post", "title": "My Post", "body": "Content..."}

Layout: full

Condition: operation = ["create_document","update_document"]

Inputs (API)

credential

string

Required

projectId

string

Required

dataset

string

Required

operation

string

Required

groqQuery

string

Optional

documentId

string

Optional

documentType

string

Optional

document

string

Optional

Outputs

Primary response type:

{
  "data": "json"
}

Tool Access

sanity_api
Sanity | NowFlow Blocks