---
title: "Sanity integration for LuumenAI"
url: "https://www.luumen.ai/integrations/sanity/"
entity: SoftwareIntegration
category: "Source control & CI/CD"
audience: "SRE, DevOps, platform engineering, IT operations"
---

# Sanity integration for LuumenAI

Read Sanity projects, roles, and documents, then change access as approved steps

## What LuumenAI can do with Sanity

LuumenAI connects to Sanity with an API token and exposes 21 tools (14 read-only · 4 write · 3 destructive). For connected tools, admins configure which actions may run automatically and which require approval, within the access granted to the user.

## Key facts

- Authentication: API token
- Tools available: 21 tools (14 read-only · 4 write · 3 destructive)
- Deployment: scoped as part of your Pilot, Platform, or Managed rollout
- Category: Source control & CI/CD

## About Sanity with LuumenAI

Connect Sanity and your team can ask who has access to a project, what roles exist in the organization, and what a given document contains — answered from the live API. Changes to roles, user attributes, and documents run as previewed steps you approve first. Luumen authenticates with an API key.

## Example tools

Read-only (14 in total):

- `SANITY_CREATE_PROMPT_POST` — Send a one-shot prompt to the Sanity Content Agent.
- `SANITY_GET_DOCUMENT` — Fetch a single document by its ID from Sanity.
- `SANITY_GET_INVITE_BY_TOKEN` — Retrieve an invite by its public token.
- `SANITY_GET_ORG_ROLE` — Retrieve a specific organization role by its ID.
- `SANITY_GET_PERMISSION` — Get a permission for a specific resource.
- `SANITY_GET_PROJECT` — Retrieve full details for a specific Sanity project by its ID.
- `SANITY_GET_ROBOTS` — Get robots with access to a resource.
- `SANITY_GET_ROLE` — Retrieve a specific role for a given resource type and resource ID.

Write and destructive (7 in total, subject to configured approval policy):

- `SANITY_ADD_DEFAULT_ROLE_TO_USERS` — Apply organization default role to all users.
- `SANITY_CREATE_ATTR_DEFINITION` — Create a new user attribute definition in Sanity.
- `SANITY_DELETE_ATTR_DEFINITION` — Delete a user attribute definition.
- `SANITY_DELETE_DOCUMENT` — Delete a document from Sanity by ID or query.
- `SANITY_DELETE_USER_ATTRIBUTES` — Delete custom attributes from a Sanity user within an organization.
- `SANITY_UPDATE_ORG_ACL` — Assign a role to a member in a Sanity organization.
- `SANITY_UPDATE_USER_ATTRIBUTES_VALUES` — Update user attribute values for a resource.

## Frequently asked questions

### How does LuumenAI connect to Sanity?

Authorize once with API token. Luumen lists the scopes each action needs before you approve the connection, and credentials never appear in the chat.

### Can LuumenAI change things in Sanity on its own?

For connected tools, admins configure which actions may run automatically and which require approval, within the access granted to the user.

### Is there an audit trail?

Every call to Sanity — read or write, approved or declined — is recorded with the actor, the input, and the result.

Full page: https://www.luumen.ai/integrations/sanity/
