Setting up Sanity as a Source

👥

Access Required

Guru Access: Admin, Source Creator, or relevant custom role Sanity Access: Project member with API token generation permissions


Setting up Sanity as a source

Follow these steps to connect Sanity as a Knowledge Agent source in Guru.

  1. Go to Manage > Sources in the Guru web app.
  2. Select Sanity from the list of available source integrations.
  3. Enter your Sanity base URL and Sanity API Token.
  4. Select which Guru Groups should have access to content from this source.
  5. Click Connect Source to begin syncing.

How to get a Sanity API token

  1. Sign in to manage.sanity.io.
  2. Select the project you want to connect.
  3. Click API in the left navigation.
  4. Under Tokens, click Add API token.
  5. Give the token a name (e.g., "Guru Integration") and set the permission to Viewer (read-only access is sufficient).
  6. Click Save and copy the generated token.

Objects synced from Sanity

ObjectWhat You'll See During SetupData Brought In
Document (Primary Object)All published documents matching your configured document typesTitle, body content, slug, document type, and any top-level text fields in your schema
AssetMedia and file references attached to documentsFile name, URL, metadata

Note: Guru generates a search record for each document pulled in. Only published documents are synced — drafts are not included. Sync runs every 2 hours.


Permissions

Content from Sanity is permissioned in Guru, not inherited from Sanity. Users who do not have access to the Guru Group(s) assigned to this source will not see any Sanity content in search results or Knowledge Agent answers.