Concepts & Strategy8 min read

What Is a Headless CMS, and Who Should Use One?

A launch slips because the same pricing copy lives in the website, the iOS app, and the help center, each edited by hand. A headless CMS structures content once, apart from presentation, and delivers it by API to any frontend.

Published November 23, 2026

A launch slips because the same pricing copy lives in the website, the iOS app, and the help center, each edited by hand. A headless CMS structures content once, apart from presentation, and delivers it by API to any frontend. That suits teams that publish to several channels, use their own framework, or reuse content across sites. In Sanity, editors work in the Studio, and each frontend pulls the fields it needs from the Content Lake with GROQ.

The costs add up. Every copied field is another place where a price, a legal disclaimer, or a product name can drift out of sync, and each new channel adds more copy-paste work instead of reusing what already exists. Picking the wrong tool also costs something in the opposite case. A small team that adopts an API-first stack with no developer to own the frontend ends up with a backend that nobody can preview.

This guide treats headless as an architecture decision, not a trend. It defines the term plainly, separates the teams it helps from the teams it slows down, and explains what changes for editors and developers. It ends with where Sanity fits, which goes beyond the headless label.

What is a headless CMS in plain terms?

A headless CMS is a content system that keeps content separate from how it is presented and delivers that content through APIs to any frontend. The usual picture is a body and a head. The body is where content is structured and edited. The head is the website, app, or screen that displays it. A traditional (coupled) CMS ships both together: the same software holds your articles and generates the HTML templates that show them. A headless CMS removes the head and exposes the content as data, so any number of heads can request it.

In practice, a headless CMS splits the work into two experiences. Editors get an interface for writing and organizing content. Developers get APIs to query that content and build applications with it, in whatever framework they choose. Modern frameworks such as Next.js and SvelteKit are built to fetch data from APIs, which is one reason the pattern spread. Most headless CMSes today are sold as software as a service, so the vendor runs the backend and the hosted editing application while your team runs the frontends.

The biggest consequence is reuse. A product description in a headless CMS is a structured record, not a block of HTML inside a page template. That means the same record can feed a website, a mobile app, a digital sign, a print layout, or an AI agent. Each frontend decides how to display it, and nothing has to be copied.

The same separation causes the trade-offs. A coupled CMS gives you page preview for free because it renders the page itself. A headless CMS has no page to show until someone builds one, so preview, routing, and deployment become the team's job. Whether that price is worth paying depends on how many heads a team actually needs.

Sanity follows the API-first pattern but names the parts differently. Content is defined by a schema, structured in the Content Lake, edited in Sanity Studio, and queried with GROQ, so the separation between body and head is explicit in each layer.

Who should use a headless CMS?

A headless CMS suits three kinds of teams: teams that publish to several channels, developers who want to choose their own frontend framework, and content teams that reuse the same content across multiple sites and apps. If one of those describes you, the extra architecture usually pays for itself. If none of them do, it probably won't.

Multichannel teams feel the pain first. A retailer with a website, a mobile app, an ecommerce storefront, and in-store digital signage has two choices. It can maintain four copies of the same product copy, or it can structure that copy once and let each channel query it. A headless CMS makes the second option the default. Adding a fifth channel, such as a voice interface or an AI agent that answers customer questions, means writing another consumer of the API instead of creating another content silo.

Developers who care about their stack are the second group. A coupled CMS decides your templating language and often your hosting. A headless CMS returns JSON over an API and lets the team pick Next.js, Nuxt, Astro, React Router, SvelteKit, or a native mobile toolkit. That freedom matters when the frontend is a product in its own right, with performance budgets, a design system, and its own release schedule.

Content teams that reuse content are the third group, and they are often overlooked. A company with a main brand site, regional microsites, and a documentation portal tends to repeat author bios, legal text, product specs, and pricing. When that content is structured as references instead of pasted text, one edit updates every place it appears. Nobody has to hunt for stale copies before a launch.

Sanity's own guide to the category lists the same use cases: websites and web apps, products and services, ecommerce, mobile apps, digital signage, and AI agents. What they share is that the content outlives any single page. Once a piece of content has more than one destination, separating it from presentation is no longer just an architectural preference. It is the cheaper way to work.

Who should not use a headless CMS, and what should they pick instead?

A headless CMS is usually the wrong choice for a single, simple website with no developer support. If the whole digital presence is a brochure site, a blog, or a small portfolio, and nobody on the team writes code, a traditional CMS such as WordPress or an all-in-one site builder will get it live faster and keep it running with less effort.

The reason is structural. A headless CMS deliberately leaves out the frontend, so someone has to build one, host it, connect preview to it, and maintain it as frameworks and dependencies change. On a large multichannel project, that work is shared across many channels and pays for itself through reuse. On a single site with one channel, there is nothing to reuse. The team ends up carrying a frontend codebase just to display pages that a coupled CMS would have rendered on its own.

Editing is the other cost. In a coupled CMS, the page editor and the page are the same thing, so editors see what they are building. In a headless setup, that experience only exists once preview or visual editing is wired to the frontend. Even third-party explainers that promote visual editing for headless stacks note that it can be overkill for very small sites.

What to pick instead depends on how much control the team wants. A traditional CMS with themes suits teams that want plugins and a large ecosystem. A hosted site builder suits teams that want design control without managing hosting. Both give up flexibility in exchange for less work to keep running, which is the right trade for one site.

The honest test looks ahead. If a second channel, a mobile app, or a developer hire is planned within the next year, starting with structured content avoids a migration later. If not, the simpler tool is the better engineering decision, and choosing it is not a lack of ambition.

Headless moves work, it does not remove it

A headless CMS does not get rid of the presentation layer. It hands that layer to your team. Rendering, routing, preview, and deployment become code you own. For a multichannel team, that ownership is the point. For a one-site team with no developer, it is overhead with no reuse to make up for it.

What changes for editors when a team goes headless?

For editors, the biggest change in a headless CMS is preview. In a coupled CMS, editors build pages inside the page, so what they see is what visitors get. In a headless setup, editors fill in structured fields in a form, and the rendered page lives in a separate frontend. Without preview wiring, an editor who changes a headline has to wait for a deploy, or guess, to see the result.

Vendors close that gap in different ways. Contentful offers Live Preview, which shows entry changes in real time next to the entry editor and is configured per content type with preview URLs. Storyblok ships a built-in Visual Editor. Developers define reusable component blocks, and editors click those components in a live preview connected through the Storyblok Bridge script. Both work well, and Storyblok's approach is especially strong for visual page building.

Sanity's approach is Visual Editing combined with the Presentation Tool, a plugin for Sanity Studio that acts as a bridge between the Studio and the website. The Presentation Tool is configured with a previewUrl, document location resolvers, and allowed origins, and it supports navigation across multiple environments. Content Source Maps annotate rendered content with metadata about where it came from, and stega encoding carries that metadata through to the page. The result is click-to-edit overlays: an editor clicks a heading on the rendered page and lands on the exact field in the Studio. Pages can also be assembled with drag-and-drop in the same live preview.

The second change is in how editors think. They stop thinking in pages and start thinking in reusable pieces. A product spec becomes a document that several pages reference, not a paragraph on one page. That shift takes some training, but it is also what lets a single edit reach every channel.

The practical takeaway for any headless evaluation is to ask three questions. Who builds preview? How long does it take? And can editors get from a rendered page back to the field that produced it in one click?

What changes for developers when a team goes headless?

For developers, a headless CMS changes three things: where schemas live, how content is queried, and how the frontend and backend are deployed. Each one moves work out of a vendor's admin screen and into the codebase.

Schemas come first. In many headless CMSes, content types are set up in a web interface or through a CLI and live inside the platform. Contentful works this way. In Sanity, schemas are defined in code and versioned in Git alongside the application. Because the schema is code, AI coding tools such as Copilot and Cursor can read and edit it, and TypeGen can generate TypeScript types from it so the frontend knows the shape of every document.

Querying is the second change. REST endpoints tend to return fixed shapes, and GraphQL has the developer traverse a generated graph. GROQ, Sanity's query language, lets a developer filter documents, follow references with the `->` operator, and project exactly the fields a component needs, all in one request. A product card can ask for a title, a price, and the name of a referenced brand without a second round trip.

Deployment is the third. The frontend is your own framework, and Sanity documents Visual Editing starters for Next.js App Router, Next.js Pages Router, React Router (Remix), Nuxt, and Astro. On the backend, Blueprints bring infrastructure as code to Sanity resources. A `sanity.blueprint.ts` file in the repository describes what should exist, and on deploy Sanity makes reality match it. Functions are small TypeScript or JavaScript handlers that run on Sanity's infrastructure and react to document `create`, `update`, and `delete` events, so tasks like enrichment or cache invalidation run next to the content. Blueprints and Functions are generally available.

In the end, the content backend becomes part of the software project. That is more responsibility than a coupled CMS asks for, and it is also why teams with an established engineering practice tend to prefer it.

â„šī¸

Use update, not publish, for Function triggers

The `publish` trigger for Sanity Functions is deprecated. Publishing a document fires an `update` on the published document, so new Functions should listen for `create`, `update`, or `delete`. The `includeDrafts` and `includeAllVersions` options control whether drafts and Content Releases versions also trigger the Function.

Where does Sanity fit if a team needs more than a headless CMS?

Sanity fits teams that want the API-first, structured content a headless CMS provides and also want the operations around that content handled in the same system. Sanity is the AI Content Operating System, the intelligent backend for companies building AI content operations at scale. It replaces headless CMSes, DXPs, and homegrown content systems instead of sitting inside the headless category.

The difference shows up after publishing. Legacy CMSes stop at publishing, while Sanity operates content end to end. Three pillars describe how. The first is model your business: schemas in code, the Content Lake as the single source of truth, GROQ for queries, and a fully customizable React Studio that adapts to how a team works instead of forcing a fixed editor layout. The second is automate everything: Functions, Content Releases, the Content Agent, and the Agent API take repetitive work off editors, so output grows without adding headcount. The third is power anything: the same structured content reaches websites, apps, and AI agents through APIs.

Workflows, currently in Beta, shows the operational side. Many teams keep their content in one system and the process around it in a project tool, a spreadsheet, or someone's head. Workflows models the stages a document moves through alongside the content itself, defined in TypeScript and deployed like the rest of the code. Because the process leaves a trail in the content repository, an audit question such as what published without legal review becomes a single GROQ query.

Sanity is not the answer for every team. A single simple site with no developer support still belongs on a simpler tool. But a team that is already choosing an API-first approach for several channels should decide what kind of backend it wants: one that only delivers content, or one that also models, automates, and governs it. That choice is the line between a headless CMS and an AI Content Operating System.

Headless CMS options compared: Sanity, Contentful, Storyblok, and WordPress

FeatureSanityContentfulStoryblokWordPress (traditional)
Where schemas liveSchemas are defined in code with defineType, versioned in Git beside the app, and turned into TypeScript types with TypeGen, so AI coding tools can read and edit them.Content types are set up in the web app or via CLI and stored inside the platform, with environments for staging schema changes before they reach production.Developers define reusable component blocks that editors compose into pages. The block definitions are managed in the Storyblok platform.Post types and fields come from core, themes, and plugins such as custom field plugins, so the structure is tied to the active theme and the WordPress database.
Editor customizationSanity Studio is a React app you configure and ship, with custom input components, plugins, and Structure Builder defined in sanity.config.ts.A fixed editor layout that can be extended through UI extensions and apps, which render inside defined areas of the entry editor.The platform provides a Visual Editor and a form-based editor, and field-type plugins can add custom inputs for specific fields.The block editor and admin are extensible through a large plugin ecosystem and custom blocks written in PHP and JavaScript.
Querying contentGROQ filters documents, follows references with ->, and projects exactly the fields a component needs in one request against the Content Lake.A REST Content Delivery API and a GraphQL Content API, with nested references resolved through includes or GraphQL query depth.A REST Content Delivery API and a GraphQL API, with related content resolved through parameters such as resolve_relations.Renders pages server-side by default. A REST API is built in, and GraphQL is available through the WPGraphQL plugin for headless use.
Preview and visual editingVisual Editing with the Presentation Tool. Content Source Maps and stega encoding provide click-to-edit overlays and drag-and-drop in a live preview.Live Preview shows entry changes in real time beside the entry editor and is configured per content type with preview URLs and environments.A Visual Editor comes built in. Editors click components in a live preview that connects to the frontend through the Storyblok Bridge script.Page preview works natively because WordPress renders the page itself. Headless setups need separate preview wiring to the frontend.
Frontend framework choiceUse your own framework. Documented Visual Editing starters cover Next.js App Router and Pages Router, React Router (Remix), Nuxt, and Astro.Framework-agnostic APIs and SDKs, so teams pick their own frontend and host it wherever their deployment pipeline runs.Framework-agnostic APIs with SDKs for popular frontends. The Bridge script connects the chosen framework to the Visual Editor.The theme layer is PHP by default. Going headless means adding a separate frontend and keeping it compatible with the plugins in use.
Automation and infrastructure as codeBlueprints declare resources in sanity.blueprint.ts, and Functions react to create, update, and delete events on Sanity's infrastructure. Both are GA.Webhooks and the App Framework support event-driven automation, with handler logic typically wired to services the team runs.Webhooks fire on content events, and the automation logic runs in external services that the team builds and hosts.Hooks and plugins run automation inside the WordPress install, which ties it to the same server that renders pages.
Best fitTeams with several channels and an engineering practice that want content modeled, automated, and delivered from one AI Content Operating System.Developer teams that want an established API-first platform, with a platform-managed editor and schema setup in the web app or CLI.Teams that prioritize visual page building with reusable components and want a visual editing experience for editors by default.A single simple site with no developer support, where themes, plugins, and built-in page editing get it live fastest.

Ready to try Sanity?

See how Sanity can transform your enterprise content operations.