Sanity logo

Documentation

    • Overview
    • Platform introduction
    • Next.js quickstart
    • Nuxt.js quickstart
    • Astro quickstart
    • React Router quickstart
    • Studio quickstart
    • Content Lake
    • Compute and AI
    • APIs and SDKs
    • Platform management
    • Dashboard
    • Studio
    • Canvas
    • Media Library
    • App SDK
    • Content Agent
    • HTTP API
    • CLI
    • Libraries
    • Specifications
    • Changelog
    • User guides
    • Developer guides
    • Courses and certifications
    • Join the community
    • Templates
Specifications
Overview

  • GROQ

    Syntax
    Data types
    Parameters
    Operators
    Functions
    Pipeline components
    Joins
    Full specification

  • Functions

    Handler reference

  • Blueprints

    Configuration file reference

  • Portable Text
  • Content Source Maps
  • Mendoza (JSON diff format)
SpecificationsLast updated May 15, 2025

Specifications

Specifications and standards used throughout the Sanity ecosystem and maintained by the Sanity team.

Query language

GROQ syntax

Reference documentation for the GROQ syntax.

GROQ data types

Data types supported by GROQ

GROQ Functions Reference

Reference documentation for GROQ functions.

Full GROQ spec

The base GROQ specification

Compute and AI

Blueprint configuration reference

Reference documentation for the Blueprint configuration files.

Function handler reference

Reference documentation for the shape of the function wrapper.

Beyond Sanity

Portable Text

The rich text editor and structured content specification that powers Studio's block editor.

Content Source Maps

Associate rendered content with its original source.

Mendoza

The specification that powers the way Sanity diffs patches.

Sanity logosanity.io
© Sanity 2025
Change Site Theme
All Systems Operational