For the complete documentation index, see llms.txt. This page is also available as Markdown.

Sanity

Send finished articles from Frase into your Sanity project as a draft or a published document.

Connect Sanity

1

Open your project's API tab in Sanity

Log into Sanity, open your Organization Settings, pick the project you want to connect, and go to the API tab. Each Sanity project is usually one site.

2

Create an API token and copy your project ID

  1. Under Tokens, click Add API token.

  2. Name it (for example, Frase Integration) and set permissions to Read + Write.

  3. Save and copy the token value.

  4. Copy your Project ID from the top of the project page.

Sanity API tab with tokens and project ID
3

Connect Sanity in Frase

Go to Settings → Integrations, select Sanity under CMS Publishing, paste your API token and project ID, choose the document type to publish to (usually Post), and save.

4

Add a public URL template (optional)

This tells Frase where each post lives on your site, like https://yoursite.com/blog/{slug}. Frase swaps {slug} for each post's slug.

Without it, you can still publish, but Frase can't track the post's search performance, protect it with Content Guard, or republish updates to it.

Publish to Sanity

In the article editor, click Publish, choose Sanity, and send it as a draft or a published document.

Publishing to Sanity from Frase

Need custom fields filled in when you publish? Connect the Frase MCP and Sanity's MCP server to the same AI assistant, like Claude. Then ask it to publish your article with the fields you need.

Last updated