# API key scopes

> Every scope an API key can hold, the admin scopes, and the areas no key can reach. Generated from the code.

Source: https://docs.ligament.ai/reference/scopes/

How to choose scopes and create keys: [API keys and scopes](https://docs.ligament.ai/developers/api-keys/index.md).

## Scopes

A key created without scopes gets `*`: every scope in this first table. Scopes for one entity add the entity key: `records:read:incident`.

| Scope | Allows |
| --- | --- |
| `records:read` | Read records of any entity (or one entity: records:read:<entity>), exports, search, attachments, reports. |
| `records:write` | Create, update, transition, merge and delete records (or one entity: records:write:<entity>). |
| `schema:read` | Read entity definitions: fields, forms, views, lifecycle, rules. |
| `schema:write` | Change the data model: entities, fields, forms, views, lifecycle, rules. |
| `apps:read` | Read apps, build-studio drafts, plugins, connectors, scripts, widgets, pages, dashboards, reports, templates, prompts, skills, endpoints. |
| `apps:write` | Build and publish apps and their parts (plugins, connectors, scripts, widgets, pages, prompts, skills, endpoints, AI agents, RAG collections). Installing apps into the workspace needs apps:install. |
| `workflows:read` | Read workflow definitions, automations and runs. |
| `workflows:write` | Create, change and delete workflows and automations. |
| `workflows:run` | Start, cancel and replay workflow runs. |
| `spec:read` | Read the app spec: artefacts (pages, access rules, …), their history, JSON Schemas and the catalog; plan changes. |
| `spec:propose` | Propose changes: create and edit changesets for a person to review. Never applies anything. |
| `spec:apply` | Apply spec changes (POST /api/spec/apply, changeset apply), capped by the key creator's build permissions. Key-made access and code changes still wait for a person unless the workspace allows them. |
| `endpoints:invoke` | Call deployed endpoints, API-key webhooks and the MCP server. |
| `ai:use` | Use the AI models and agents, and the local agent runner (ligament agent start). |
| `import:write` | Run data imports (stage, map, promote, discard). |
| `audit:read` | Read and export the audit logs. |
| `esign:read` | Read e-signature envelopes the key's creator may see (status, recipients, audit trail) and download sealed PDFs. |
| `esign:write` | Create, send, remind and void e-signature envelopes. Never signs: signing is done by each recipient in person. |
| `settings:read` | Read workspace settings: members, roles, ACLs, invites, secrets metadata, integrations, domains, portal, notifications rules, SCIM tokens. Never the credentials among them (webhook signing secret, invite and domain verification tokens, integration config): those need the matching admin scope. |

## Admin scopes

`*` never includes these. A key gets one only when it names it, and only an owner or admin can create such a key.

| Scope | Allows |
| --- | --- |
| `settings:write` | Change workspace settings: secrets, integrations, webhooks, embed tokens, portal, AI and notification settings, subsidiaries. |
| `members:write` | Change who is in the workspace and what they can do: members, invites, roles, ACLs. |
| `sso:write` | Change identity provisioning: SCIM tokens and claimed email domains (SSO providers are session-only). |
| `apps:install` | Install, upgrade, uninstall and delete apps, modules and plugins in this workspace. |
| `approvals:decide` | List and decide approvals. |
| `components:approve` | Approve custom component versions and grant them data scopes. The key's creator must also hold the "Approve custom components" role permission (owners do; owners can grant it to a role). |

## Areas no API key can reach

These need a signed-in person in the browser, whatever scopes a key holds.

-   API keys
-   SSO providers
-   Security policy
-   OIDC clients
-   Workspace hierarchy
