Connect Sanity

What you need to connect Sanity to Indrava, and what Sanity allows in a post.

Embed
Preview of the card
<a href="https://indrava.forumulate.com/help/connect-sanity"><img src="https://indrava.forumulate.com/help/_api/public/orgs/e421ace4-3e78-4ed8-9818-7b4899cf3aa0/spaces/eb86896a-9649-48ed-a1a6-566b48188df7/pages/844af6d3-da18-4848-b608-b5395e217ce7/social-card.svg?v=3e7ae33eec8b" alt="Connect Sanity" width="600" height="315"></a>

<!-- Generated by scripts/channel-docs.ts from packages/providers. Do not edit by hand: edit the provider or the notes in the script. -->

Connect

In Indrava, open Channels, choose Connect a channel and pick Sanity. Paste the following. Indrava checks the details with Sanity before saving, and stores them encrypted.

What to paste

Needed

Notes

Project ID

yes

sanity.io/manage → your project.

Dataset

optional

Example: production

API token

yes

sanity.io/manage → API → Tokens → Add API token, with the Editor permission.

Limits

  • Publishes an article: a title and a body of up to 100,000 characters. Links in an article are never shortened.

  • Media: up to 1 file per part.

  • Images: JPEG, PNG, GIF, WEBP.

  • Video: not accepted.

The composer shows the character count for each channel and names any file a channel will not take before you schedule.

Settings on each post

When this channel is selected in the composer, these settings appear:

Setting

Needed

Notes

Document type

optional

Left empty, post. Chosen from a list read from the platform.

Title

yes

Slug

optional

Example: my-post

Excerpt

optional

Body field

optional

The document type's block content field. Left empty, body. Example: body

Image field

optional

Where the post's picture goes. Left empty, mainImage. Example: mainImage

Status

optional

One of: published, draft.

What else works

  • One part only: this channel has no threads or comments to put later parts in.

  • Formatting: the composer offers Markdown for this channel.

  • Analytics: Indrava does not read post numbers from this platform.

Good to know

  • Not yet run against a real Sanity account: this connection was written from Sanity's own documentation and tested against recorded answers only. Try it with one post you can delete before you rely on it.

Updated