Connect Sanity
What you need to connect Sanity to Indrava, and what Sanity allows in a post.
<!-- 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: |
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: |
Excerpt | optional | |
Body field | optional | The document type's block content field. Left empty, body. Example: |
Image field | optional | Where the post's picture goes. Left empty, mainImage. Example: |
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.