The Sanity Agent Actions API runs schema-aware LLM instructions against documents in a Sanity dataset. Generate writes new content into an existing or new document from an instruction, Transform rewrites a source document's fields, and Translate converts a document into another language with an optional style guide and protected phrases. Prompt returns a plain or JSON LLM response without touching documents, and Patch applies validated, schema-checked changes without using an LLM. By default the actions write to drafts rather than published documents, and noWrite lets you preview a result without saving it.
The Sanity Embeddings Index API builds vector embeddings indexes over the documents in a Sanity dataset and runs semantic search queries against them. An index is defined by a GROQ filter that selects documents, such as _type=='movie', and a GROQ projection that picks the fields to embed, and a query returns matching documentId and type pairs with a relevance score between 0 and 1. Every operation in this spec is marked deprecated, and the API is described as a beta available on the Growth plan and above. Using it sends document data to OpenAI and Pinecone to store the vectors.
BOOK A DEMO
Browse thousands of APIs and connect them all to your agent with Jentic One. One layer, one credential — every API your agent needs.
Step 1: Jentic One Host machine
# On the machine that will host your Jentic One instance:
curl -fsSL "https://jentic.com/install.sh?src=apis&api=%2Fapis%2Fsanity.io" | shStep 2: Agent machine
# On the machine where your agent runs (keep this separate from the instance):
curl -fsSL "https://jentic.com/install.sh?src=apis&api=%2Fapis%2Fsanity.io" | sh
jentic register # connects your agent to your Jentic One instanceJentic One is in public beta. The setup above keeps your agent separate from the instance, which is what you want before using real credentials: an agent running as the same OS user as Jentic One can read its stored keys directly. Just evaluating? A single local install is fine to start. See the secure deployment guide for the tiers.