Can AI agents automate Sanity?

Sanity · saas · documentsdeveloper-tools

Sanity is automatable today through the Content Lake HTTP APIs on https://{projectId}.api.sanity.io/{apiVersion}. The Query API runs GROQ over GET or POST at /data/query/{dataset}, with an API CDN at {projectId}.apicdn.sanity.io. Published documents in public datasets are readable without a token; drafts, versions, private datasets, and all writes require Authorization: Bearer. Personal tokens come from sanity login and last one year by default. Robot tokens are created per project or organization in manage or via the Access API, last until deleted unless expiresAt is set, and are the documented path for applications. The Mutation API POSTs a transactional mutations array to /data/mutate/{dataset} (create, createOrReplace, createIfNotExists, delete, patch). Query-selected mutations cap at 10,000 documents. The Actions API is the higher-level Studio write path for document, version, and release operations. GraphQL is a separately deployed, schema-generated query API; mutations are not exposed through GraphQL. Official clients are @sanity/client (JavaScript, v8 requires Node.js 22.12+) and sanity/sanity-php. GROQ-powered outgoing webhooks support create, update, and delete with filters, projections, retries, and HMAC secrets. Sanity hosts a first-party remote MCP server at https://mcp.sanity.io (GA from 2025-12-11; vendor changelog through v2.30.1 on 2026-08-24). MCP authenticates with OAuth by default or a Bearer API token. Tools cover GROQ, document create and patch, publish, releases, schema and Studio deploy, datasets, CORS, documentation search, and a limited CLI runner. generate_image, transform_image, and create_version with instruction consume AI credits. OAuth MCP sessions typically expire after 7 days. The official sanity CLI can call the HTTP API, query and mutate documents, export or import NDJSON and tar.gz datasets, manage tokens and webhooks, and run sanity mcp configure. It needs Node.js and npm. Zapier /apps/sanity, Make apps.make.com/sanity, Microsoft /connectors/sanity/, and n8n's built-in Sanity node path all returned catalog 404s on 2026-09-01. Computer-use viability is unassessed. API, MCP, and CLI all score 8; API is the best path because robot tokens work unattended from any HTTP client without an MCP session or a local Node toolchain, and GraphQL writes still go through the Mutation or Actions APIs.

Best path today: api · Overall automatability: 8/10

Modalities

ModalityStatusDetail
APIyesrestgraphqlopenapipersonal-tokenrobot-token
coverage: partial · docs
SDKyesjavascriptphp
official: yes
MCPyes
verdict: official
Integrationsno
CLIyes
Extensibilityyessanity-functionsstudio-pluginsblueprints
webhooks: True
Data access
export: ndjson, tar-gz · import: ndjson, tar-gz
RPA / UI automationunknownweb-dom
No repeatable UI probe was run. Content Lake HTTP APIs, official clients, the Sanity CLI, GROQ-powered webhooks, and the hosted MCP server cover query, mutation, schema, and project work without driving Studio in a browser.
Computer useunknown
measured verdicts only — "unknown" means not yet probed by us

Scores

apimcpintegrationsclirpacomputer useoverall
88088

Evidence

FactTierSourceDate
homepagedeclaredsource2026-09-01
vendordeclaredsource2026-09-01
deploymentdeclaredsource2026-09-01
platforms[0]declaredsource2026-09-01
licensedeclaredsource2026-09-01
statusdeclaredsource2026-09-01
modalities.api.existsdeclaredsource2026-09-01
modalities.api.kinds[0]declaredsource2026-09-01
modalities.api.kinds[1]declaredsource2026-09-01
modalities.api.kinds[2]declaredsource2026-09-01
modalities.api.auth[0]declaredsource2026-09-01
modalities.api.auth[1]declaredsource2026-09-01
modalities.api.coveragedeclaredsource2026-09-01
modalities.api.docsdeclaredsource2026-09-01
modalities.sdk.existsdeclaredsource2026-09-01
modalities.sdk.officialdeclaredsource2026-09-01
modalities.sdk.languages[0]declaredsource2026-09-01
modalities.sdk.languages[1]declaredsource2026-09-01
modalities.mcp.first_partydeclaredsource2026-09-01
modalities.mcp.verdictdeclaredsource2026-09-01
modalities.integrations.zapierscrapedsource2026-09-01
modalities.integrations.makescrapedsource2026-09-01
modalities.integrations.power_automatescrapedsource2026-09-01
modalities.integrations.n8nscrapedsource2026-09-01
modalities.cli.existsdeclaredsource2026-09-01
modalities.extensibility.scripting[0]declaredsource2026-09-01
modalities.extensibility.scripting[1]declaredsource2026-09-01
modalities.extensibility.scripting[2]declaredsource2026-09-01
modalities.extensibility.webhooksdeclaredsource2026-09-01
modalities.data_access.export[0]declaredsource2026-09-01
modalities.data_access.export[1]declaredsource2026-09-01
modalities.data_access.import[0]declaredsource2026-09-01
modalities.data_access.import[1]declaredsource2026-09-01
modalities.agent_docs.llms_txtdeclaredsource2026-09-01
verdict.scores.apideclaredsource2026-09-01
verdict.scores.mcpdeclaredsource2026-09-01
verdict.scores.clideclaredsource2026-09-01
verdict.scores.integrationsscrapedsource2026-09-01
freshness.watch[0].urldeclaredsource2026-09-01
freshness.watch[1].urldeclaredsource2026-09-01
freshness.watch[2].urldeclaredsource2026-09-01
freshness.watch[3].urldeclaredsource2026-09-01

Related tools

Other products in this database that share a category with Sanity.

Last verified 2026-09-01 · volatility high · JSON record