Sanity logo
AI agent integrationSanity

Sanity integration for multiplayer collaboration with AI agents using Claude Code or Codex

One governed connection your whole team and its AI agents can share, with approved actions and human review, so working in Sanity never means pasting credentials into a prompt.

Use Sanity from Claude Code

Bring Sanity context into engineering work while Type keeps app access attached to the teammate and workspace.

Automate Sanity with Codex

Let coding agents ask for the right app action, preserve conversation context, and keep humans in the approval loop.

Connect open agent workflows

Use Type as the collaboration layer around OpenClaw and other LLM workflows that need app access.

Developer Tools & IT

What the Sanity integration exposes

Sanity is a headless CMS platform that provides structured content storage and APIs for modern applications

One connection, many teammates

Connect Sanity once, then decide which teammates can use it for threads, automations, skills, and coding work.

Representative actions

  • Add Default Role to Users

    Apply organization default role to all users. Use when you need to assign the organization's default role to all existing users in the organization. Requires the resource ID of the organization.

  • Create Attribute Definition

    Tool to create a new user attribute definition in Sanity. Use when you need to define a custom attribute (like 'customer-tier' or 'subscription-level') that can be attached to resources. The key must be unique within the resource. The attribute can have a type of 'string', 'number', or 'boolean' and can optionally be a list of values or read-only.

  • Create Prompt Post

    Send a one-shot prompt to the Sanity Content Agent. Stateless one-shot prompt endpoint. No thread management or message persistence. Ideal for simple, single-turn interactions. Use when you need to send a single prompt and receive a response without maintaining conversation context.

  • Delete User Attribute Definition

    Delete a user attribute definition. Use when you need to remove a custom attribute definition from an organization or project in Sanity. The attribute definition controls how user attributes are structured and validated for a given resource. Deleting a definition does not delete existing user attribute values, but users will no longer be able to set values for that attribute.

  • Delete User Attributes

    Delete custom attributes from a Sanity user within an organization. Use this tool when you need to remove specific custom attributes from a user account. The action deletes the attributes specified in the request and returns the updated attribute list for the user. Example use case: Removing outdated metadata like 'location' or 'year_started' from a user profile.

Connection

API and auth details

Sanity provides structured-content APIs for headless CMS workflows. Integrations can query GROQ, mutate documents, manage assets, datasets, projects, webhooks, releases, perspectives, and content lake data using API tokens with scoped permissions.

FAQ

Questions people ask before connecting Sanity

Can Claude Code use Sanity?

Yes. Type lets an AI teammate use connected Sanity actions from a governed workspace context, so Claude Code work can reference the app without copying credentials into a local prompt.

Can Codex work with Sanity through Type?

Yes. Codex can collaborate through Type with app context, skills, and approved actions. The Sanity catalog entry includes public integration details and example capabilities where available.

Is this the same as a Sanity MCP server?

Type exposes connected app capabilities to AI teammates and coding agents through Type's integration layer. Teams use it when they want shared app access, human review, and teammate-level permissions around agent work.

More developer tools & it apps for AI teammates