Skip to content
Sanity
Get started
  • Sanity Studio - Flexible editing environment
  • Content Lake - Real-time database
  • Developer experience - Tooling you love
  • Structured content - The philosophy behind Sanity
  • Review changes - View edits & rollback instantly
  • Image pipeline - On-demand transformations
  • E-commerce - Better shopping experiences
  • Marketing sites - Control your story
  • Products & services - Innovate and automate
  • Mobile apps - Content backend for every OS
  • Morning Brew - Omnichannel media distribution
  • InVision - Delivering exceptional customer experiences
  • DataStax - Personalization for global audience
  • Cloudflare - Flexible modeling for a global CDN
  • React
  • Gatsby
  • Next
  • Nuxt
  • Eleventy
  • Netlify
  • Vercel
  • Algolia
  • Documentation
  • Reference
  • Guides
  • Tools & plugins
  • Project showcase
  • Schemas & snippets
  • Technology partners
  • Get support
  • Share your work
  • The Buzzwordless Three Tenets of the Jamstack
PricingContact salesLog inGet started
DocumentationWelcome to Sanity's Documentation
  • Overview
  • Getting started
    • Create a schema
    • Create content
    • Connect content
    • What's next?
  • Sanity Studio
    • Configuration
      • Project Structure
      • sanity.json
      • Environment variables
    • Content modelling
      • Best practices
      • Naming things
      • Content types
    • NEWConnected Content
    • Customization
      • NEWEarly Access: Sanity UI
      • Styling
      • Preview / List View
      • Icons for data types
      • Sort orders
      • The parts system
      • Plugins
      • Custom input components
      • Custom asset sources
    • Block content
      • The rich text editor
      • Configuration
      • Customization
      • Previewing
      • Presenting Portable Text
    • Validation
    • Document history
      • Custom Diff Components
    • Dashboard
      • Introduction
      • Installing widgets
      • Create widgets
    • Structure Builder
      • Introduction to Structure Builder
      • Set up Structure Builder to override the default list view
      • Create a link to a single edit page in your main document type list
      • Manually group items in a pane
      • Dynamically group list items with a GROQ filter
      • Create custom document views with Structure Builder
    • NEWField Groups
    • NEWConditional fields
    • Initial Value Templates
    • Custom workflows
      • Document actions
      • Document badges
    • Presence API
    • Studio hosting
    • Preview in frontend
    • Localization
    • Drafts
    • Experimental Features
    • Spaces
    • Action UI affordances
    • Studio search config
  • Content Lake
    • API Versioning
    • Query language (GROQ)
      • How Queries Work
      • Query Cheat Sheet
      • GROQ Playground
    • GraphQL
    • Images & assets
      • Assets
      • Asset CDN
      • Presenting Images
    • API CDN
    • Real-time
    • Webhooks
    • Datasets
      • Hot Swap
      • Cloud Clone
    • Updating content
      • Transactions
      • Migrating Data
    • IDs and paths
    • Importing data
    • Security
      • Browser security & CORS
      • Access Your Data (CORS)
      • Access Control
      • NEWSAML SSO
      • Third-Party Login (SSO)
      • Activity Feed
      • Keeping your data safe
    • Technical limits
  • Build with Sanity
    • Convince your team
    • Convince your clients
    • Pro Bono Plans
    • Open-source projects
    • Non-profit organizations
  • Access control
    • NEWRoles
    • NEWSAML SSO
    • Custom SSO
  • Reference docs
    • HTTP API
      • URL format
      • Authentication
      • Patches
      • NEWScheduling API
      • Using JSONMatch
      • Endpoints
      • Assets
      • Doc
      • Export
      • History
      • Listen
      • Mutate
      • Projects
      • NEWRoles
      • NEWJobs
      • Query
    • Query language (GROQ)
      • Syntax
      • Data Types
      • Operators
      • Functions
      • Pipeline Components
      • Joins
    • Schema types
      • Array
      • Block
      • Boolean
      • Date
      • Datetime
      • Document
      • File
      • Geopoint
      • Image
      • Number
      • Object
      • Reference
      • Slug
      • String
      • Span
      • Text
      • URL
    • Command line interface
      • Build
      • CORS
      • Dataset
      • Debug
      • Deploy
      • Docs
      • Documents
      • Exec
      • GraphQL
      • Help
      • Hook
      • Init
      • Install
      • Login
      • Logout
      • Manage
      • Projects
      • Start
      • Versions
      • Undeploy
      • Upgrade
    • Client libraries
      • JavaScript
      • PHP
      • .NET
    • Structure builder
    • Initial Value Templates API
    • Image transformations
      • Image Metadata
      • IIIF API reference
    • Studio React hooks
    • Document Actions API
    • Document Badges API
    • Project Management
    • Projects, organizations, and billing
    • Plans and Payments

Welcome to Sanity's Documentation

Here you'll find ways to get started, understand core concepts, and explore a variety of resources to help you get the most from Sanity. We also recommend joining our Slack community for help along the way.

Creating projects

Get started with Sanity

Quickly learn the basics with our CLI and a code editor

Get started
  • Pick a starter project

    Get going with one of our fully configured projects

  • Setting up with CLI

    Manage your existing projects, and create new ones

Core concepts

Sanity Studio

This is our collaborative interface for editors and content creators

  • Install Sanity CLI and Sanity Studio
  • Learn how to structure your content
  • Learn how to customise your Studio

Content lake

Our real-time datastore that you can connect to any application or frontend

  • How to query content with GROQ
  • Use Sanity with GraphQL
  • Learn how to use images & assets

Reference docs

Command line interface

Everything you can do from the Sanity CLI

Query language (GROQ)

Sanity’s open-source query language

Schema types

All the schema types supported in Studio

Structure builder

The API that lets you configure the Sanity Studio

See all

Sanity Exchange

Explore Sanity Exchange

Find what you need. Learn new things. Share with others.

  • Guides

    Step-by-step tutorials & deep dives

  • Tools and plugins

    Resources to evolve your Studio

  • Starters

    Fully configured Sanity projects

  • Showcase projects

    Inspiration from the community

Platform

Structured ContentDeveloper experienceContent LakeSanity StudioSecurity & Compliance

Resources

Documentation
  • Content Modeling
  • React Blog
  • Gatsby Blog
  • Next.js Landing Pages
  • Progressive Web Application
  • Single Page Application
  • Svelte & Typescript App
  • Vue & Tailwind Blog
  • Developer Portfolio Templates
  • Form validation with Yup
  • Live Preview with Next.js and Sanity.io
  • React Starters
  • Next.js Starters
  • Next.js Landing Pages
  • Next.js E-commerce
  • Gatsby Starters
  • Gatsby Plugins
  • Developer Portfolio Templates
Case Studies
  • Headless CMS
  • Digital Experience Platform
  • Static Site Generator
  • Localization
  • GraphQL vs REST
  • React CMS
  • Next.JS CMS
  • Gatsby CMS
  • Node CMS
  • E-commerce CMS
  • Vue CMS
  • Angular CMS
  • GraphQL CMS
  • Newspaper CMS
  • Magazine CMS

Company

Contact SalesEnterpriseCareersTerms of Service

Stay connected

  • Github
  • Slack
  • Twitter
  • YouTube
  • Stack Overflow
  • Blog RSS

Subscribe to our newsletter

©Sanity 2022