# REST API

> Every API route and method, the API-key scope it needs, and what it does. Generated from the code.

Source: https://docs.ligament.ai/reference/rest-api/

Every route below is on your workspace’s origin, for example `https://app.ligament.ai/api/records/incident`. Send an API key as `Authorization: Bearer <key>`. The second column is what a key needs; a signed-in person in the browser is checked against their role instead. Request and response bodies are covered in the [developer guides](https://docs.ligament.ai/developers/index.md). The same table is available as OpenAPI 3.1: [`/openapi.json`](https://docs.ligament.ai/openapi.json).

This page is generated from the product’s route table, so it lists every route the API serves today.

Data

-   [Attachments](#attachments) 2
-   [Dashboards](#dashboards) 4
-   [E-signatures](#e-signatures) 23
-   [Exchange rates](#exchange-rates) 4
-   [Export](#export) 3
-   [Geo](#geo) 1
-   [Identity verification](#identity-verification) 1
-   [Import](#import) 23
-   [Incidents](#incidents) 1
-   [Knowledge](#knowledge) 1
-   [Record search](#record-search) 1
-   [Records](#records) 21
-   [Reports](#reports) 4
-   [Seal verification](#seal-verification) 2
-   [Search](#search) 1

Build

-   [App Sites](#app-sites) 2
-   [App store](#app-store) 6
-   [Apps](#apps) 15
-   [Blocks](#blocks) 2
-   [Build](#build) 19
-   [Business hours](#business-hours) 2
-   [Changesets](#changesets) 9
-   [Connector hooks](#connector-hooks) 2
-   [Connectors](#connectors) 6
-   [Connectors and plugins](#connectors-and-plugins) 22
-   [Custom components](#custom-components) 5
-   [Entities](#entities) 25
-   [Forms](#forms) 2
-   [Modules](#modules) 2
-   [Navigation](#navigation) 10
-   [Page specs](#page-specs) 6
-   [Pages](#pages) 4
-   [Script test](#script-test) 1
-   [Scripts](#scripts) 6
-   [Spec store](#spec-store) 11
-   [Templates](#templates) 2
-   [Widgets](#widgets) 7

Automation and AI

-   [AI](#ai) 20
-   [Approvals](#approvals) 3
-   [Assistant](#assistant) 4
-   [Automations](#automations) 15
-   [Build plans](#build-plans) 8
-   [CLI](#cli) 1
-   [Endpoints](#endpoints) 2
-   [Inbound hooks](#inbound-hooks) 5
-   [Knowledge collections](#knowledge-collections) 7
-   [Local agent runner](#local-agent-runner) 5
-   [MCP](#mcp) 6
-   [Outreach](#outreach) 2
-   [Prompts](#prompts) 5
-   [Prospecting](#prospecting) 2
-   [Skills](#skills) 2
-   [Tunnels](#tunnels) 3
-   [Workflows](#workflows) 8

Access and identity

-   [Access](#access) 56
-   [Access rules](#access-rules) 3
-   [API keys](#api-keys) 2
-   [Audit log](#audit-log) 4
-   [Authentication](#authentication) 2
-   [Domains](#domains) 4
-   [Invites](#invites) 5
-   [Members](#members) 3
-   [OIDC clients](#oidc-clients) 2
-   [Roles](#roles) 4
-   [SCIM](#scim) 18
-   [Security policy](#security-policy) 2
-   [Single sign-on](#single-sign-on) 3

Workspace

-   [Health](#health) 1
-   [Integrations](#integrations) 9
-   [Notifications](#notifications) 27
-   [Secrets](#secrets) 3
-   [Settings](#settings) 17
-   [Workspaces](#workspaces) 3

Channels and embeds

-   [Embed tokens](#embed-tokens) 3
-   [Embeds](#embeds) 13
-   [Inbound email](#inbound-email) 3
-   [Live chat](#live-chat) 11
-   [Notification callbacks](#notification-callbacks) 5
-   [Portal](#portal) 5
-   [Provider webhooks](#provider-webhooks) 4

Other

-   [assets](#assets) 2
-   [compliance](#compliance) 19
-   [demo](#demo) 3
-   [onboard](#onboard) 2
-   [onboarding](#onboarding) 2
-   [x](#x) 6

## Data

### Attachments

Upload and download files.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/attachments/blob/{key…}` | `records:read` |  |
| PUT `/api/attachments/blob/{key…}` | `records:write` |  |

### Dashboards

Dashboards and favourites.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/dashboards` | `apps:read` |  |
| POST `/api/dashboards` | Signed-in session only |  |
| DELETE `/api/dashboards` | Signed-in session only |  |
| POST `/api/dashboards/{id}/favorite` | Signed-in session only | Toggle this dashboard as a favorite for the current user (pins it to the sidebar). |

### E-signatures

Envelopes (create, send, remind, void, legal hold), their audit trails and sealed PDFs, templates, the seal status and the public verification check. People sign in person, never through a key.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/esign/download/{token}` | Own credential | The sealed PDF for a recipient outside the workspace (link in the completion email; 30 days). |
| GET `/api/esign/envelopes` | `esign:read` | Envelopes the caller may read. |
| POST `/api/esign/envelopes` | `esign:write` |  |
| GET `/api/esign/envelopes/{id}` | `esign:read` | Status, recipients, fields. |
| DELETE `/api/esign/envelopes/{id}` | `esign:write` |  |
| GET `/api/esign/envelopes/{id}/audit` | `esign:read` | The hash-chained trail and whether it verifies (chain, head, sealed anchor). |
| GET `/api/esign/envelopes/{id}/documents/{docId}` | `esign:read` | An original PDF as sent (readers of the envelope). |
| POST `/api/esign/envelopes/{id}/legal-hold` | `settings:write` | E-signature admins only; audited. |
| POST `/api/esign/envelopes/{id}/remind` | `esign:write` |  |
| GET `/api/esign/envelopes/{id}/sealed` | `esign:read` | The sealed PDF (readers of the envelope; it also sits on the subject record). |
| POST `/api/esign/envelopes/{id}/send` | `esign:write` | Send a draft (the provider issues links / notices). |
| POST `/api/esign/envelopes/{id}/void` | `esign:write` |  |
| POST `/api/esign/sign/{recipientId}` | Signed-in session only | A MEMBER signs their own envelope in the app. |
| GET `/api/esign/sign/{recipientId}/document/{docId}` | Signed-in session only | A document the signed-in member is asked to sign. |
| GET `/api/esign/status` | `esign:read` | The seal key, its certificate (expiry), the TSA and the last timestamp (e-signature admins). |
| GET `/api/esign/templates` | `esign:read` |  |
| POST `/api/esign/templates` | `esign:write` |  |
| GET `/api/esign/templates/{id}` | `esign:read` | Id (id or key). |
| PATCH `/api/esign/templates/{id}` | `esign:write` |  |
| DELETE `/api/esign/templates/{id}` | `esign:write` |  |
| GET `/api/esign/templates/{id}/document` | `esign:read` | The template's PDF (the field editor renders it). |
| GET `/api/esign/verify` | Own credential |  |
| POST `/api/esign/verify` | Own credential |  |

### Exchange rates

Dated exchange rates and currency conversion that says which rate it used.

| Method and path | API key needs | Does |
| --- | --- | --- |
| POST `/api/fx/convert` | `records:read` |  |
| GET `/api/fx/rates` | `records:read` |  |
| POST `/api/fx/rates` | `settings:write` |  |
| POST `/api/fx/sync` | `settings:write` |  |

### Export

Download records as CSV, or the whole workspace as a ZIP.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/export` | `records:read` | Whole-workspace export as a ZIP of per-entity CSVs (admin). |
| GET `/api/export/{entityKey}` | `records:read:{entityKey}` | That entity's rows as a CSV download (admin). |
| GET `/api/export/schema` | `schema:read` | Runnable DDL + data for the data model (admin). |

### Geo

Location lookups.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/geo` | Signed-in session only |  |

### Identity verification

Verification cases from an identity-verification provider.

| Method and path | API key needs | Does |
| --- | --- | --- |
| POST `/api/verify/{id}/sync` | Signed-in session only | Pull the case's current status from the provider and apply it (manual reconcile / "Refresh from provider"). |

### Import

Stage data from files, map it onto entities and import it.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/import` | `records:read` | List draft staging batches. |
| POST `/api/import` | `import:write` | Create a staging batch. |
| GET `/api/import/{id}` | `records:read` |  |
| PUT `/api/import/{id}` | `import:write` |  |
| DELETE `/api/import/{id}` | `import:write` |  |
| POST `/api/import/{id}/profile` | `import:write` |  |
| POST `/api/import/{id}/promote` | `import:write` | Turn a staged batch into a new app/entity or import into an existing one. |
| GET `/api/import/projects` | `records:read` | List draft multi-source import projects. |
| POST `/api/import/projects` | `import:write` | Start a new project. |
| GET `/api/import/projects/{id}` | `records:read` | The project + its staged source tables + any proposal. |
| DELETE `/api/import/projects/{id}` | `import:write` | Discard the project + its staged batches. |
| POST `/api/import/projects/{id}/commit` | `import:write` | Build entities/fields/records from the (optionally edited) proposal. |
| POST `/api/import/projects/{id}/design` | `import:write` | AI-propose a normalized schema across the source tables. |
| GET `/api/import/runs` | `records:read` | List staging import runs (admin only). |
| GET `/api/import/runs/{id}` | `records:read` |  |
| POST `/api/import/runs/{id}/automap` | `import:write` | Given a source staging entity + a target entity, suggest a field mapping (exact key/label match, then fuzzy). |
| POST `/api/import/runs/{id}/discard` | `import:write` | Delete a run and all of its staged records. |
| POST `/api/import/runs/{id}/new-target` | `import:write` | Create a new real table mirroring a staging entity's columns, to promote into when no suitable table exists yet. |
| POST `/api/import/runs/{id}/promote` | `import:write` | Map a staging entity's records into a target entity and upsert. |
| POST `/api/import/runs/{id}/promote-cascade` | `import:write` |  |
| GET `/api/import/runs/{id}/records` | `records:read` |  |
| POST `/api/import/stage` | `import:write` | Stage a batch's rows into a run + staging entities using the (possibly user-edited) proposal. |
| POST `/api/import/stage/detect` | `import:write` |  |

### Incidents

Major incident handling.

| Method and path | API key needs | Does |
| --- | --- | --- |
| POST `/api/incidents/{id}/major` | Signed-in session only | Declare / update / stand down a major incident. |

### Knowledge

Search published knowledge articles.

| Method and path | API key needs | Does |
| --- | --- | --- |
| POST `/api/knowledge/search` | `records:read` | Published KB articles matching the query (case deflection). |

### Record search

Search records across entities, filtered by what the caller can read.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/search-records` | `records:read` | Deterministic, ACL-scoped record search (the ⌘K command palette). |

### Records

Create, read, update, transition and delete records; comments, attachments and history.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/records/{entityKey}` | `records:read:{entityKey}` | Query records. |
| POST `/api/records/{entityKey}` | `records:write:{entityKey}` | Create a record. |
| GET `/api/records/{entityKey}/{id}` | `records:read:{entityKey}` | Fetch one record. |
| PATCH `/api/records/{entityKey}/{id}` | `records:write:{entityKey}` | Partial update (system fields + ext custom fields). |
| DELETE `/api/records/{entityKey}/{id}` | `records:write:{entityKey}` | Delete one record (ACL + row-ACL + before-delete rules apply). |
| GET `/api/records/{entityKey}/{id}/attachments` | `records:read:{entityKey}` | The record's attachments (confirmed only). |
| POST `/api/records/{entityKey}/{id}/attachments` | `records:write:{entityKey}` |  |
| GET `/api/records/{entityKey}/{id}/attachments/{attId}` | `records:read:{entityKey}` | 302 to a short-lived download URL. |
| PATCH `/api/records/{entityKey}/{id}/attachments/{attId}` | `records:write:{entityKey}` | Confirm the upload completed. |
| DELETE `/api/records/{entityKey}/{id}/attachments/{attId}` | `records:write:{entityKey}` | Remove file + metadata. |
| GET `/api/records/{entityKey}/{id}/comments` | `records:read:{entityKey}` | The record's comments + work notes. |
| POST `/api/records/{entityKey}/{id}/comments` | `records:write:{entityKey}` | Add a comment / work note. |
| GET `/api/records/{entityKey}/{id}/history` | `records:read:{entityKey}` |  |
| GET `/api/records/{entityKey}/{id}/live` | Signed-in session only | Per-record real-time channel (SSE). |
| POST `/api/records/{entityKey}/{id}/merge` | `records:write:{entityKey}` |  |
| POST `/api/records/{entityKey}/{id}/reveal` | `records:read:{entityKey}` | The clear values of fields the caller sees masked on this record. |
| POST `/api/records/{entityKey}/{id}/transition` | `records:write:{entityKey}` | Move a record to a new state. |
| POST `/api/records/{entityKey}/batch` | `records:write:{entityKey}` |  |
| GET `/api/records/{entityKey}/changes` | `records:read:{entityKey}` |  |
| GET `/api/records/{entityKey}/effective-events` | `records:read:{entityKey}` | List the changes that take effect in a period on an effective-dated entity, as JSON or CSV (for payroll). |
| POST `/api/records/batch` | `records:write` |  |

### Reports

Run aggregations over records.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/reports` | `apps:read` |  |
| POST `/api/reports` | Signed-in session only |  |
| DELETE `/api/reports` | Signed-in session only |  |
| POST `/api/reports/run` | `records:read` | Run an ad-hoc aggregation for the builder preview (read-gated). |

### Seal verification

The verification check for sealed PDFs (the same as the e-signature verify endpoint).

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/seal/verify` | Own credential |  |
| POST `/api/seal/verify` | Own credential |  |

### Search

Workspace search.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/search` | Own credential |  |

## Build

### App Sites

Actions on published App Sites.

| Method and path | API key needs | Does |
| --- | --- | --- |
| POST `/api/sites/action` | Signed-in session only | Perform an App Site action-button as the signed-in principal (the write path). |
| POST `/api/sites/intake` | Own credential |  |

### App store

The app catalogue and subscriptions.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/store` | `apps:read` | The app catalog with this workspace's subscription status. |
| POST `/api/store/{appKey}/subscribe` | `apps:install` |  |
| POST `/api/store/{appKey}/unsubscribe` | `apps:install` | Cancel + disable an app (owner/admin). |
| POST `/api/store/publish` | `apps:write` | Re-sync the store catalog from code manifests (owner/admin). |
| GET `/api/store/settings` | `apps:read` |  |
| PUT `/api/store/settings` | `settings:write` |  |

### Apps

Publish, install, upgrade and uninstall apps.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/apps` | `apps:read` | List the API key's workspace's published apps + their versions. |
| POST `/api/apps/delete` | `apps:install` | Remove a custom app (session, admin). |
| GET `/api/apps/dependencies` | `apps:read` | What a delete would touch / block (session, admin). |
| POST `/api/apps/install` | `apps:install` |  |
| GET `/api/apps/install-runs` | `apps:read` | Recent install runs in this workspace (newest first). |
| POST `/api/apps/install-runs` | `apps:install` |  |
| GET `/api/apps/install-runs/{id}` | `apps:read` | One install run of this workspace (another workspace's id answers 404). |
| POST `/api/apps/install-runs/{id}/resume` | `apps:install` | Retry a failed install run from the step that failed (what is installed stays; nothing is redone). |
| POST `/api/apps/install-runs/{id}/step` | `apps:install` | Install the next app of the run (one per call) and return the run. |
| GET `/api/apps/install/plan` | `apps:read` |  |
| POST `/api/apps/publish` | `apps:write` | Publish an immutable AppVersion (the data manifest, with any DSL workflows) owned by the API key's workspace. |
| POST `/api/apps/uninstall` | `apps:install` | Disable an installed app in the API key's workspace. |
| GET `/api/apps/updates` | `apps:read` |  |
| POST `/api/apps/upgrade` | `apps:install` | Assess (and optionally apply) an app version upgrade with a data-loss guard. |
| POST `/api/apps/upgrade/bulk` | `apps:install` | Upgrade several installed apps, dependencies first. |

### Blocks

Reusable page blocks.

| Method and path | API key needs | Does |
| --- | --- | --- |
| POST `/api/blocks/composites/{key}` | `apps:write` |  |
| POST `/api/blocks/custom/{name}` | `apps:write` |  |

### Build

Custom apps: entities, extension fields, workflows, sites and store listings.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/build/apps` | `apps:read` | The workspace's custom apps. |
| POST `/api/build/apps` | `apps:write` | Create a new custom app. |
| POST `/api/build/apps/{appKey}/entities` | `apps:write` | Create an app-scoped entity. |
| GET `/api/build/apps/{appKey}/extend` | `apps:read` | This app's extension fields, grouped by target entity. |
| POST `/api/build/apps/{appKey}/extend` | `apps:write` | Add an app-owned field. |
| DELETE `/api/build/apps/{appKey}/extend` | `apps:write` | Remove one of this app's extension fields. |
| GET `/api/build/apps/{appKey}/metadata` | `apps:read` | Entities/fields/states + members + roles for the flow-builder's pickers. |
| POST `/api/build/apps/{appKey}/publish` | `apps:write` |  |
| GET `/api/build/apps/{appKey}/sites` | `apps:read` | The app's site settings, its routes, and the entities (with fields) available to bind. |
| PUT `/api/build/apps/{appKey}/sites` | `apps:write` | Upsert the site settings (mount / visibility / slug / nav / accent). |
| POST `/api/build/apps/{appKey}/sites/routes` | `apps:write` | Upsert a route. |
| DELETE `/api/build/apps/{appKey}/sites/routes` | `apps:write` | Remove a route. |
| POST `/api/build/apps/{appKey}/store` | `apps:write` |  |
| PUT `/api/build/apps/{appKey}/store` | `apps:write` | Upsert the store listing + plans (monetize). |
| GET `/api/build/apps/{appKey}/workflows` | `apps:read` | The app's workflow drafts. |
| POST `/api/build/apps/{appKey}/workflows` | `apps:write` | Create a new workflow (manual trigger, empty body) to edit on the canvas. |
| GET `/api/build/apps/{appKey}/workflows/{key}` | `apps:read` |  |
| PUT `/api/build/apps/{appKey}/workflows/{key}` | `apps:write` | Save the workflow (validated). |
| DELETE `/api/build/apps/{appKey}/workflows/{key}` | `apps:write` |  |

### Business hours

Working-hours schedules used by SLAs.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/business-hours` | `settings:read` | The workspace's working-hours schedule (or defaults). |
| PUT `/api/business-hours` | `settings:write` | Save the schedule (admins only). |

### Changesets

Propose changes for review, then apply them together.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/changesets` | `spec:read` | Changesets, newest first. |
| POST `/api/changesets` | `spec:propose` |  |
| GET `/api/changesets/{id}` | `spec:read` | The changeset with its items (docs + base hashes) and activity. |
| PATCH `/api/changesets/{id}` | `spec:propose` | Rename, or mark ready for review / reopen. |
| POST `/api/changesets/{id}/apply` | `spec:apply` |  |
| POST `/api/changesets/{id}/discard` | `spec:propose` | Drop the changeset (kept, with its activity, as discarded). |
| PUT `/api/changesets/{id}/items` | `spec:propose` |  |
| DELETE `/api/changesets/{id}/items` | `spec:propose` | Drop one item. |
| POST `/api/changesets/{id}/plan` | `spec:read` | The plan of every item against current (merges, conflicts, permissions). |

### Connector hooks

Inbound calls for connectors.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/connector-hook/{token}` | `endpoints:invoke` |  |
| POST `/api/connector-hook/{token}` | `endpoints:invoke` |  |

### Connectors

Installed connectors and their operations.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/connectors` | `apps:read` |  |
| POST `/api/connectors` | `apps:write` |  |
| GET `/api/connectors/{key}` | `apps:read` |  |
| PUT `/api/connectors/{key}` | `apps:write` |  |
| DELETE `/api/connectors/{key}` | `apps:write` |  |
| POST `/api/connectors/{key}/test` | `apps:write` | Try a connector operation with sample args — powers the editor's Run button. |

### Connectors and plugins

Connectors to other systems: install, configure, OAuth and publishing.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/plugins` | `apps:read` | Every connector (built-in, tenant-authored, shared from a parent org) with this workspace's install state. |
| POST `/api/plugins` | `apps:write` | Create/update a tenant-authored connector. |
| PATCH `/api/plugins/{key}` | `apps:write` | Update connector settings (currently: org sharing of an approved connector). |
| DELETE `/api/plugins/{key}` | `apps:write` | Remove a tenant-authored connector (and its install). |
| PUT `/api/plugins/{key}/functions` | `apps:write` | Replace the named functions of a tenant connector. |
| POST `/api/plugins/{key}/install` | `apps:install` | Install/configure the plugin for this workspace. |
| DELETE `/api/plugins/{key}/install` | `apps:install` | Uninstall the plugin from this workspace. |
| GET `/api/plugins/{key}/oauth/client` | `apps:read` | OAuth connection status (no tokens). |
| POST `/api/plugins/{key}/oauth/client` | `settings:write` | Store the tenant's app-registration creds (workspace admins). |
| DELETE `/api/plugins/{key}/oauth/client` | `settings:write` | Disconnect (clears stored tokens; keeps client creds). |
| GET `/api/plugins/{key}/oauth/start` | `settings:write` | Begin the OAuth2 authorization-code flow. |
| GET `/api/plugins/{key}/publish` | `apps:read` | This connector's store-submission state (if any). |
| POST `/api/plugins/{key}/publish` | `apps:write` | Submit this workspace's connector for public store review (or publish an update). |
| DELETE `/api/plugins/{key}/publish` | `apps:write` | Pull this workspace's connector from the store (existing installs keep their copy). |
| POST `/api/plugins/{key}/update` | `apps:write` | Re-sync a store-installed connector to the publisher's latest version (credentials kept). |
| POST `/api/plugins/import` | `apps:write` |  |
| POST `/api/plugins/inbound/{token}` | Own credential | The generic inbound webhook for conversation-channel connectors (Telegram today). |
| GET `/api/plugins/oauth/callback` | Own credential | Provider redirects here after consent. |
| GET `/api/plugins/wizard/{id}` | `apps:read` | The install spec (fields, capability, current state) for the wizard. |
| POST `/api/plugins/wizard/{id}` | `apps:write` | Perform the install/configure. |
| DELETE `/api/plugins/wizard/{id}` | `apps:write` | Uninstall/deactivate the plugin. |
| POST `/api/plugins/wizard/{id}/test` | `settings:write` | Run a provider's connection test (nothing is stored). |

### Custom components

Upload, approve and revoke custom page components.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/components` | `apps:read` | Every custom component version (status, requested vs approved scopes, hash). |
| POST `/api/components` | `apps:write` | Upload a version (admins; it is code that will run in viewers' browsers, sandboxed). |
| POST `/api/components/{name}/{version}/approve` | `components:approve` | Approve a version and grant a subset of the scopes it requested (default: all requested). |
| POST `/api/components/{name}/{version}/revoke` | `components:approve` | Withdraw a version's approval. |
| POST `/api/components/data` | Signed-in session only | The ONLY data channel of a custom component. |

### Entities

The data model: entities, fields, forms, views, lifecycles and rules.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/entities` | `schema:read` | List this workspace's configurable entity defs (+ fields). |
| POST `/api/entities/{entityKey}/fields` | `schema:write` | Add a custom field (admin only). |
| PATCH `/api/entities/{entityKey}/fields/{fieldId}` | `schema:write` | Edit a field (admin only). |
| DELETE `/api/entities/{entityKey}/fields/{fieldId}` | `schema:write` | Remove a custom field (admin only). |
| GET `/api/entities/{entityKey}/form-layout` | `schema:read` | A named form's layout + available fields. |
| PUT `/api/entities/{entityKey}/form-layout` | `schema:write` | Save one named form (admin only). |
| DELETE `/api/entities/{entityKey}/form-layout` | `schema:write` | Drop a role-specific record layout (that role falls back to the default form). |
| GET `/api/entities/{entityKey}/forms` | `schema:read` | The entity's named forms (default first). |
| POST `/api/entities/{entityKey}/forms` | `schema:write` | Create a new custom form; optionally seeded from another form's layout. |
| PATCH `/api/entities/{entityKey}/forms` | `schema:write` | Rename a form and/or promote it to the entity default. |
| DELETE `/api/entities/{entityKey}/forms` | `schema:write` | Remove a custom form (never the primary 'default'). |
| GET `/api/entities/{entityKey}/lifecycle` | `schema:read` | States + transitions. |
| PUT `/api/entities/{entityKey}/lifecycle` | `schema:write` | Replace the lifecycle (admin only). |
| GET `/api/entities/{entityKey}/list-columns` | `schema:read` | Available columns + the caller's resolved selection. |
| PUT `/api/entities/{entityKey}/list-columns` | `schema:write` | Save personal (default needs admin). |
| DELETE `/api/entities/{entityKey}/list-columns` | Signed-in session only | Clear the caller's personal override. |
| GET `/api/entities/{entityKey}/related-columns` | `schema:read` | The child entity's choosable columns + its current related-list selection. |
| PUT `/api/entities/{entityKey}/related-columns` | `schema:write` | Set the shared related-list columns for this entity (admin only). |
| GET `/api/entities/{entityKey}/rules` | `schema:read` | All rules for the entity + its fields/states (for the editor). |
| PUT `/api/entities/{entityKey}/rules` | `schema:write` | Replace the tenant-authored rules (admin only). |
| GET `/api/entities/{entityKey}/views` | `schema:read` | Built-in + shared (visible to the caller's role) + personal views. |
| POST `/api/entities/{entityKey}/views` | Signed-in session only |  |
| PUT `/api/entities/{entityKey}/views` | Signed-in session only | Replace a view's spec (owner for personal, admin for shared). |
| PATCH `/api/entities/{entityKey}/views` | `schema:write` | Pin as default / toggle nav (admin, shared views). |
| DELETE `/api/entities/{entityKey}/views` | Signed-in session only | Delete a personal (owner) or shared (admin) view. |

### Forms

Forms sent to people during a workflow.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/forms/{id}` | Own credential |  |
| POST `/api/forms/{id}/submit` | Own credential |  |

### Modules

Built-in modules a workspace can turn on.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/modules` | `apps:read` | Available modules + which this workspace has enabled. |
| POST `/api/modules` | `apps:install` | Install a module. |

### Navigation

Navigation preferences and app rail settings.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/nav/apps` | `settings:read` |  |
| DELETE `/api/nav/apps` | `settings:write` |  |
| PUT `/api/nav/apps/{appKey}` | `settings:write` |  |
| DELETE `/api/nav/apps/{appKey}` | `settings:write` |  |
| GET `/api/nav/defaults` | Signed-in session only |  |
| PUT `/api/nav/defaults` | Signed-in session only |  |
| DELETE `/api/nav/defaults` | Signed-in session only |  |
| GET `/api/nav/prefs` | Signed-in session only |  |
| PUT `/api/nav/prefs` | Signed-in session only |  |
| DELETE `/api/nav/prefs` | Signed-in session only |  |

### Page specs

Pages defined as specs: validate, plan and apply.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/page-specs` | `apps:read` | Pages applied from a page spec (key, title, hash, url). |
| GET `/api/page-specs/{key}` | `apps:read` |  |
| POST `/api/page-specs/apply` | `apps:write` |  |
| POST `/api/page-specs/plan` | `apps:read` | Validate, then diff against the applied page. |
| GET `/api/page-specs/schema` | `apps:read` | JSON Schemas (page, per-block props, component manifest) + the block registry and limits. |
| POST `/api/page-specs/validate` | `apps:read` |  |

### Pages

Custom pages.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/pages` | `apps:read` | Custom pages (optionally for one app). |
| POST `/api/pages` | `apps:write` | Create/update a page (admin). |
| GET `/api/pages/{id}` | `apps:read` |  |
| DELETE `/api/pages/{id}` | `apps:write` |  |

### Script test

Run an unsaved script with sample input.

| Method and path | API key needs | Does |
| --- | --- | --- |
| POST `/api/script-test` | `apps:write` | Try a script (unsaved) with a sample input — powers the editor's Run button. |

### Scripts

Sandboxed scripts and their endpoints.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/scripts` | `apps:read` |  |
| POST `/api/scripts` | `apps:write` |  |
| GET `/api/scripts/{key}` | `apps:read` |  |
| PUT `/api/scripts/{key}` | `apps:write` |  |
| PATCH `/api/scripts/{key}` | `apps:write` | Mint a new endpoint URL (revokes the old token). |
| DELETE `/api/scripts/{key}` | `apps:write` |  |

### Spec store

Read, validate, plan and apply app artefacts.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/spec` | `spec:read` | Every artefact in the spec store (effective layer, customised?, conflicts). |
| GET `/api/spec/{address…}` | `spec:read` |  |
| POST `/api/spec/apply` | `spec:apply` |  |
| GET `/api/spec/catalog` | `spec:read` |  |
| GET `/api/spec/conflicts` | `spec:read` | Values an upgrade re-base kept from the workspace's customisation (to review). |
| POST `/api/spec/conflicts` | `spec:apply` | Mark them reviewed (the custom values stay). |
| POST `/api/spec/plan` | `spec:read` |  |
| GET `/api/spec/policy` | `spec:read` |  |
| PUT `/api/spec/policy` | Signed-in session only |  |
| GET `/api/spec/schema/{type}` | `spec:read` | The JSON Schema of one artefact type (the JSON tab, the CLI and MCP use it). |
| POST `/api/spec/validate` | `spec:read` |  |

### Templates

Message and document templates.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/templates` | Signed-in session only | Active templates for the macro/insert pickers. |
| POST `/api/templates/{id}/render` | Signed-in session only |  |

### Widgets

Sandboxed widgets on record pages.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/widgets` | `apps:read` |  |
| POST `/api/widgets` | `apps:write` |  |
| GET `/api/widgets/{key}` | `apps:read` |  |
| PUT `/api/widgets/{key}` | `apps:write` |  |
| DELETE `/api/widgets/{key}` | `apps:write` |  |
| POST `/api/widgets/{key}/render` | `records:read` | Render payload for a widget — the def + its data. |
| POST `/api/widgets/action` | `records:write` | The WRITE channel for widgets. |

## Automation and AI

### AI

Models, agents, knowledge indexing and agent tasks.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/ai/{id}` | Own credential |  |
| POST `/api/ai/{id}/review` | Own credential |  |
| GET `/api/ai/adapters` | `ai:use` | Research source adapters + availability (for the research.enrich picker). |
| GET `/api/ai/agents` | `ai:use` | The workspace's named AI agents. |
| POST `/api/ai/agents` | `apps:write` | Create/update a named agent (admin). |
| GET `/api/ai/agents/{key}` | `ai:use` | One agent. |
| DELETE `/api/ai/agents/{key}` | `apps:write` | Remove an agent (admin). |
| POST `/api/ai/assist/draft` | Signed-in session only | Drafts a customer-facing reply grounded in the ticket + top KB articles. |
| POST `/api/ai/assist/suggest` | Signed-in session only | Semantic KB article suggestions for the agent working a ticket (searches the 'kb' RAG index, keyword fallback). |
| POST `/api/ai/assist/summarize` | Signed-in session only | A concise TL;DR of the ticket + its thread, for reassignment / shift handoff / major-incident bridges. |
| GET `/api/ai/config` | `settings:read` |  |
| PUT `/api/ai/config` | `settings:write` |  |
| GET `/api/ai/knowledge/settings` | `settings:read` | KB index status + auto-sync toggle (any member). |
| PUT `/api/ai/knowledge/settings` | `settings:write` | Toggle scheduled auto-sync (admin). |
| POST `/api/ai/knowledge/sync` | `settings:write` | Rebuild the agent knowledge index from published KB articles (admin). |
| GET `/api/ai/models` | `ai:use` |  |
| GET `/api/ai/tasks` | Signed-in session only | The CURRENT USER's agent task queue (queues are per user, never shared). |
| POST `/api/ai/tasks` | Signed-in session only | Queue a task in the current user's queue. |
| PATCH `/api/ai/tasks/{id}` | Signed-in session only |  |
| GET `/api/ai/tasks/{id}/transcript` | Signed-in session only | The owner's view of what the agent actually did: the task's session transcript. |

### Approvals

List and decide approvals.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/approvals` | `approvals:decide` | Approvals in the workspace, for the CLI and automation. |
| GET `/api/approvals/{id}` | Own credential |  |
| POST `/api/approvals/{id}/decide` | `approvals:decide` |  |

### Assistant

The in-app assistant.

| Method and path | API key needs | Does |
| --- | --- | --- |
| POST `/api/assistant` | Signed-in session only | Stream the assistant's agentic run as SSE; persists the turn + logs usage at the end. |
| GET `/api/assistant/sessions` | Signed-in session only | The caller's recent assistant conversations. |
| GET `/api/assistant/sessions/{id}` | Signed-in session only | One conversation's messages (only if it belongs to the caller). |
| DELETE `/api/assistant/sessions/{id}` | Signed-in session only |  |

### Automations

Automations on entities and overrides of app workflows.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/automations` | `workflows:read` | The tenant's automations. |
| POST `/api/automations` | `workflows:write` |  |
| GET `/api/automations/{key}` | `workflows:read` |  |
| PUT `/api/automations/{key}` | `workflows:write` |  |
| PATCH `/api/automations/{key}` | `workflows:write` |  |
| DELETE `/api/automations/{key}` | `workflows:write` |  |
| POST `/api/automations/{key}/run` | `workflows:run` | Manually run this automation now; returns the run id. |
| GET `/api/automations/metadata` | `workflows:read` | Every workspace entity (+ members/roles) for the automation builder's pickers. |
| POST `/api/automations/on-failure` | `workflows:write` | Set (or clear) the workspace-wide on-failure automation. |
| GET `/api/automations/overrides` | `workflows:read` | Installed apps' shipped workflows, annotated with override state. |
| POST `/api/automations/overrides` | `workflows:write` | Fork a shipped workflow into an editable tenant override. |
| GET `/api/automations/overrides/{appKey}/{key}` | `workflows:read` |  |
| PUT `/api/automations/overrides/{appKey}/{key}` | `workflows:write` | Save the override body. |
| PATCH `/api/automations/overrides/{appKey}/{key}` | `workflows:write` | Disable an app's workflow for this tenant (or re-enable the override). |
| DELETE `/api/automations/overrides/{appKey}/{key}` | `workflows:write` | Drop the override; the app's shipped workflow takes effect again. |

### Build plans

Plans and tasks the build assistant works through.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/plans` | Signed-in session only | The caller's build plans (optionally for one app). |
| POST `/api/plans` | Signed-in session only | Create a plan (usually the agent's propose\_plan tool, but a manual create works too). |
| GET `/api/plans/{id}` | Signed-in session only |  |
| PATCH `/api/plans/{id}` | Signed-in session only | Title / status. |
| DELETE `/api/plans/{id}` | Signed-in session only |  |
| POST `/api/plans/{id}/tasks` | Signed-in session only | Add a task to the plan. |
| PATCH `/api/plans/{id}/tasks/{taskId}` | Signed-in session only | Edit a task: status (check off), title/detail, reorder (afterId), or deps/agent (frame). |
| DELETE `/api/plans/{id}/tasks/{taskId}` | Signed-in session only |  |

### CLI

Endpoints the CLI uses to sign in.

| Method and path | API key needs | Does |
| --- | --- | --- |
| POST `/api/cli/generate` | `ai:use` |  |

### Endpoints

Exposed endpoints.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/endpoints` | `apps:read` |  |
| POST `/api/endpoints/register` | `apps:write` |  |

### Inbound hooks

Call an exposed script endpoint.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/hook/{token}` | `endpoints:invoke` |  |
| POST `/api/hook/{token}` | `endpoints:invoke` |  |
| PUT `/api/hook/{token}` | `endpoints:invoke` |  |
| PATCH `/api/hook/{token}` | `endpoints:invoke` |  |
| DELETE `/api/hook/{token}` | `endpoints:invoke` |  |

### Knowledge collections

Collections of documents agents can search.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/rag/collections` | `ai:use` |  |
| POST `/api/rag/collections` | `apps:write` |  |
| PATCH `/api/rag/collections/{slug}` | `apps:write` |  |
| DELETE `/api/rag/collections/{slug}` | `apps:write` |  |
| GET `/api/rag/collections/{slug}/documents` | `ai:use` |  |
| POST `/api/rag/collections/{slug}/documents` | `apps:write` | Add knowledge. |
| DELETE `/api/rag/collections/{slug}/documents` | `apps:write` |  |

### Local agent runner

Endpoints the local agent runner (CLI) calls.

| Method and path | API key needs | Does |
| --- | --- | --- |
| POST `/api/agent-host/claim` | `ai:use` |  |
| POST `/api/agent-host/complete` | `ai:use` |  |
| POST `/api/agent-host/heartbeat` | `ai:use` |  |
| GET `/api/agent-host/task` | `ai:use` | Status + answer for the runner's cancel checks and ask\_owner answer-polling. |
| POST `/api/agent-host/waiting` | `ai:use` | Local ask\_owner: flip the task to waiting with the question (runner then polls /task). |

### MCP

The MCP server, and MCP servers the workspace's agents use.

| Method and path | API key needs | Does |
| --- | --- | --- |
| POST `/api/mcp` | `endpoints:invoke` or any of `spec:read`, `spec:propose`, `spec:apply`, `records:read`, `members:write`, `apps:read`, `apps:install`, `settings:write` |  |
| GET `/api/mcp/servers` | Signed-in session only | List servers (headers omitted; they're secrets). |
| POST `/api/mcp/servers` | Signed-in session only | Register a server (admin). |
| POST `/api/mcp/servers/{id}` | Signed-in session only | Test the connection + sync the tool list (admin). |
| PATCH `/api/mcp/servers/{id}` | Signed-in session only | Update/enable/disable (admin). |
| DELETE `/api/mcp/servers/{id}` | Signed-in session only | Remove the server (admin). |

### Outreach

Email campaigns.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/outreach/open` | Own credential |  |
| GET `/api/outreach/unsubscribe` | Own credential |  |

### Prompts

Named prompts.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/prompts` | `apps:read` |  |
| POST `/api/prompts` | `apps:write` |  |
| GET `/api/prompts/{slug}` | `apps:read` |  |
| PUT `/api/prompts/{slug}` | `apps:write` |  |
| DELETE `/api/prompts/{slug}` | `apps:write` |  |

### Prospecting

Prospect lists and enrolment.

| Method and path | API key needs | Does |
| --- | --- | --- |
| POST `/api/prospecting/lgm-enroll-selected` | `workflows:run` |  |
| POST `/api/prospecting/research-selected` | `workflows:run` |  |

### Skills

Agent skills.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/skills` | `apps:read` |  |
| POST `/api/skills/register` | `apps:write` |  |

### Tunnels

Private connections from the platform to your machines.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/tunnels` | `apps:read` | List tunnels with live status (session or API key). |
| POST `/api/tunnels` | `apps:write` | Create a tunnel (admins; CLI API keys count as admin). |
| DELETE `/api/tunnels/{id}` | `apps:write` | Remove a tunnel (admins). |

### Workflows

Workflow definitions and runs: start, cancel, replay.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/workflows` | `workflows:read` |  |
| POST `/api/workflows/register` | `workflows:write` |  |
| GET `/api/workflows/runs` | `workflows:read` |  |
| GET `/api/workflows/runs/{runId}` | `workflows:read` |  |
| POST `/api/workflows/runs/{runId}/cancel` | `workflows:run` |  |
| POST `/api/workflows/runs/{runId}/replay` | `workflows:run` | Re-enqueue a terminal (failed/cancelled) run with its original input as a NEW run (dead-letter replay). |
| GET `/api/workflows/runs/{runId}/state` | Signed-in session only |  |
| POST `/api/workflows/trigger` | `workflows:run` |  |

## Access and identity

### Access

Roles, permission sets, restrictions, groups, hierarchies, elevations, delegations, and the explain API.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/access/assignments` | `settings:read` |  |
| POST `/api/access/assignments` | `members:write` | Assign a role (owners/admins, or an app admin for a role built only from their app's sets; audited). |
| DELETE `/api/access/assignments/{id}` | `members:write` |  |
| GET `/api/access/audit` | `settings:read` |  |
| POST `/api/access/break-glass` | Signed-in session only |  |
| PUT `/api/access/classification` | `members:write` |  |
| GET `/api/access/delegations` | `settings:read` |  |
| POST `/api/access/delegations` | `members:write` |  |
| POST `/api/access/delegations/{id}/revoke` | `members:write` | End a delegation early: the delegator, the delegate or an owner/admin. |
| GET `/api/access/effective` | `records:read` |  |
| GET `/api/access/elevations` | `settings:read` |  |
| POST `/api/access/elevations` | `members:write` |  |
| POST `/api/access/elevations/{id}/decide` | `members:write` |  |
| POST `/api/access/elevations/{id}/revoke` | `members:write` | End an elevation early (an admin, or the holder); a pending request is cancelled. |
| GET `/api/access/enforce/readiness` | `settings:read` |  |
| GET `/api/access/evaluator` | `records:read` |  |
| PUT `/api/access/evaluator` | `settings:write` |  |
| GET `/api/access/explain` | `records:read` |  |
| POST `/api/access/explain` | `records:read` |  |
| GET `/api/access/freeze` | `settings:read` |  |
| POST `/api/access/freeze` | `members:write` | Apply the freeze (owners only). |
| POST `/api/access/freeze/open` | `members:write` |  |
| GET `/api/access/group-mappings` | `settings:read` |  |
| POST `/api/access/group-mappings` | `members:write` |  |
| DELETE `/api/access/group-mappings/{id}` | `members:write` |  |
| GET `/api/access/groups` | `settings:read` |  |
| POST `/api/access/groups` | `members:write` |  |
| GET `/api/access/groups/{id}` | `settings:read` | One group with its members and mappings (owners/admins). |
| PATCH `/api/access/groups/{id}` | `members:write` |  |
| DELETE `/api/access/groups/{id}` | `members:write` | Delete a manual group (SCIM groups are deleted by the IdP). |
| POST `/api/access/groups/{id}/members` | `members:write` |  |
| DELETE `/api/access/groups/{id}/members` | `members:write` |  |
| GET `/api/access/hierarchies` | `records:read` |  |
| GET `/api/access/hierarchies/{key}` | `records:read` |  |
| POST `/api/access/hierarchies/{key}` | `settings:write` |  |
| POST `/api/access/hierarchies/{key}/reparent` | `settings:write` |  |
| GET `/api/access/permission-sets` | `settings:read` |  |
| POST `/api/access/permission-sets` | `members:write` | Create or replace a workspace permission set (owners/admins, or an app admin for their app's sets; audited). |
| GET `/api/access/permission-sets/{key}` | `settings:read` | One set (owners/admins; an app admin: their app's sets only, others answer 404 like a missing one). |
| PUT `/api/access/permission-sets/{key}` | `members:write` |  |
| PATCH `/api/access/permission-sets/{key}` | `members:write` |  |
| DELETE `/api/access/permission-sets/{key}` | `members:write` |  |
| GET `/api/access/restrictions` | `settings:read` |  |
| POST `/api/access/restrictions` | `members:write` |  |
| PUT `/api/access/restrictions/{key}` | `members:write` |  |
| DELETE `/api/access/restrictions/{key}` | `members:write` |  |
| GET `/api/access/roles/{key}` | `settings:read` |  |
| PUT `/api/access/roles/{key}` | `members:write` |  |
| PATCH `/api/access/roles/{key}` | `members:write` |  |
| DELETE `/api/access/roles/{key}` | `members:write` | Delete a custom role nobody holds as their seat (owners/admins; app admins: their app's roles). |
| GET `/api/access/shadow` | `settings:read` |  |
| GET `/api/access/view-as` | Signed-in session only |  |
| POST `/api/access/view-as` | Signed-in session only |  |
| DELETE `/api/access/view-as` | Signed-in session only |  |
| GET `/api/access/who` | `settings:read` |  |
| GET `/api/access/whoami` | `records:read` |  |

### Access rules

Per-entity access rules.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/acls` | `settings:read` | List ACL rules for the workspace (admin only). |
| POST `/api/acls` | `members:write` | Upsert a rule (admin only). |
| DELETE `/api/acls/{id}` | `members:write` | Remove an ACL rule (admin only, workspace-scoped). |

### API keys

Create and revoke API keys (signed-in session only).

| Method and path | API key needs | Does |
| --- | --- | --- |
| POST `/api/keys` | Signed-in session only |  |
| DELETE `/api/keys/{id}` | Signed-in session only | Revoke an API key. |

### Audit log

Record changes and security events.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/audit` | `audit:read` | Admin-only audit list. |
| GET `/api/audit/export` | `audit:read` | Admin-only download of the audit log. |
| GET `/api/audit/security` | `audit:read` | Admin-only auth-event list. |
| GET `/api/audit/security/export` | `audit:read` | Admin-only auth-event download. |

### Authentication

Sign-in endpoints.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/auth/{all…}` | Own credential |  |
| POST `/api/auth/{all…}` | Own credential |  |

### Domains

Claim and verify email domains.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/domains` | `settings:read` | Claimed email domains for the workspace (+ the TXT record that verifies a pending one; admin keys and sessions only). |
| POST `/api/domains` | `sso:write` | Claim a domain (admins). |
| DELETE `/api/domains` | `sso:write` | Unclaim a domain (admins). |
| POST `/api/domains/verify` | `sso:write` |  |

### Invites

Invite people to the workspace.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/invites` | `settings:read` | Pending invites, expired ones included (admin only; invite tokens only for sessions and members:write keys). |
| POST `/api/invites` | `members:write` | Invite someone (admin only). |
| DELETE `/api/invites/{id}` | `members:write` | Revoke a pending invite (admin only). |
| POST `/api/invites/{id}/resend` | `members:write` |  |
| POST `/api/invites/accept` | Signed-in session only |  |

### Members

People in the workspace.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/members` | `settings:read` | Workspace members. |
| PATCH `/api/members/{userId}` | `members:write` | Change a member's role, subtree scope, and/or app allowlist (admin only). |
| DELETE `/api/members/{userId}` | `members:write` | Remove a member (admin only; not the owner). |

### OIDC clients

Apps that sign people in with this workspace.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/oidc/clients` | Signed-in session only | Register / list OIDC client applications (Ligament-as-IdP). |
| POST `/api/oidc/clients` | Signed-in session only |  |

### Roles

Built-in and custom roles.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/roles` | `settings:read` | Workspace roles (built-in + custom). |
| POST `/api/roles` | `members:write` | Add a custom role (build:access: owners/admins). |
| PATCH `/api/roles/{key}` | Signed-in session only |  |
| DELETE `/api/roles/{key}` | `members:write` | Remove a custom role (build:access; built-ins + in-use blocked). |

### SCIM

SCIM 2.0 users and groups, and the tokens your identity provider uses.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/scim/tokens` | `settings:read` | List this workspace's SCIM tokens (metadata only, never the secret). |
| POST `/api/scim/tokens` | `sso:write` | Mint a SCIM bearer token. |
| DELETE `/api/scim/tokens/{id}` | `sso:write` | Revoke a SCIM token (scoped to the caller's workspace). |
| GET `/api/scim/v2/Groups` | Own credential |  |
| POST `/api/scim/v2/Groups` | Own credential | Create a group (members optional; each must be a user of this workspace). |
| GET `/api/scim/v2/Groups/{id}` | Own credential |  |
| PUT `/api/scim/v2/Groups/{id}` | Own credential | Replace displayName and members. |
| PATCH `/api/scim/v2/Groups/{id}` | Own credential |  |
| DELETE `/api/scim/v2/Groups/{id}` | Own credential | The group goes (its members and role mappings with it). |
| GET `/api/scim/v2/ResourceTypes` | Own credential | The resource types we expose (User, Group). |
| GET `/api/scim/v2/Schemas` | Own credential | The core User and Group schemas (enough for Entra/Okta attribute mapping). |
| GET `/api/scim/v2/ServiceProviderConfig` | Own credential |  |
| GET `/api/scim/v2/Users` | Own credential |  |
| POST `/api/scim/v2/Users` | Own credential | Provision a user into the token's workspace. |
| GET `/api/scim/v2/Users/{id}` | Own credential |  |
| PUT `/api/scim/v2/Users/{id}` | Own credential | Full replace (name + active). |
| PATCH `/api/scim/v2/Users/{id}` | Own credential | The deactivation + attribute-edit path (Entra/Okta). |
| DELETE `/api/scim/v2/Users/{id}` | Own credential | Deprovision (remove membership). |

### Security policy

Allowed sign-in methods and two-factor requirements.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/security-policy` | Signed-in session only | Per-workspace auth security policy. |
| PUT `/api/security-policy` | Signed-in session only |  |

### Single sign-on

SSO identity providers (signed-in session only).

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/sso/providers` | Signed-in session only |  |
| POST `/api/sso/providers` | Signed-in session only |  |
| DELETE `/api/sso/providers` | Signed-in session only |  |

## Workspace

### Health

Liveness probe.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/health` | Own credential | Public liveness/readiness probe. |

### Integrations

Email and other integrations.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/integrations` | `settings:read` |  |
| POST `/api/integrations` | `settings:write` |  |
| GET `/api/integrations/{id}` | `settings:read` |  |
| PUT `/api/integrations/{id}` | `settings:write` |  |
| DELETE `/api/integrations/{id}` | `settings:write` |  |
| POST `/api/integrations/{id}/test` | `settings:write` |  |
| POST `/api/integrations/{id}/test-email` | `settings:write` | Actually send a test message via this email integration, to confirm real delivery (beyond the connection test). |
| GET `/api/integrations/options` | `records:read` | The integrations of one type that a record field's provider picker offers. |
| GET `/api/integrations/plugins` | Own credential |  |

### Notifications

Notifications, preferences, routing rules, workspace policy, provider connections, linked accounts and the delivery log.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/notifications` | Signed-in session only | Recent notifications + unread count for the current user/workspace. |
| POST `/api/notifications` | Signed-in session only | Mark one (id) or all (no id) notifications read. |
| GET `/api/notifications/action-log` | `settings:read` | Every Approve / Reject press from a message, newest first (admins). |
| GET `/api/notifications/connections` | `settings:read` | Slack, Teams and Twilio connections (admins). |
| GET `/api/notifications/connections/{provider}` | `settings:read` | One connection (admins). |
| PUT `/api/notifications/connections/{provider}` | `settings:write` | Create or update (admins). |
| DELETE `/api/notifications/connections/{provider}` | `settings:write` | Disconnect (admins). |
| POST `/api/notifications/connections/{provider}/test` | `settings:write` | A sanity call with the stored credentials (admins). |
| GET `/api/notifications/deliveries` | `settings:read` |  |
| GET `/api/notifications/deliveries/{id}` | `settings:read` | One delivery: the rendered message, its log and button presses (admins). |
| POST `/api/notifications/deliveries/{id}/retry` | `settings:write` | Put a dead (or failed) delivery back in the queue now (admins). |
| GET `/api/notifications/identities` | `settings:read` | Every member and their linked account (admins). |
| PUT `/api/notifications/identities` | `settings:write` | Link or unlink one member by hand (admins). |
| POST `/api/notifications/identities/sync` | `settings:write` | Auto-link members by their account email (admins). |
| GET `/api/notifications/prefs` | Signed-in session only |  |
| PUT `/api/notifications/prefs` | Signed-in session only | Save the caller's own prefs (self only). |
| POST `/api/notifications/preview` | `settings:read` | Render a message the way the channel would send it, as YOU (your field access), for the template editor (admins). |
| GET `/api/notifications/push-subscriptions` | Signed-in session only | The caller's own push devices in this workspace. |
| POST `/api/notifications/push-subscriptions` | Signed-in session only |  |
| DELETE `/api/notifications/push-subscriptions/{id}` | Signed-in session only | Turn push off for one of the caller's own devices. |
| POST `/api/notifications/push-subscriptions/test` | Signed-in session only |  |
| GET `/api/notifications/push/key` | Signed-in session only | The instance VAPID public key (applicationServerKey for pushManager.subscribe). |
| GET `/api/notifications/rules` | `settings:read` | The workspace's shared routing rules. |
| PUT `/api/notifications/rules` | `settings:write` | Replace the rule set (admins only). |
| GET `/api/notifications/settings` | `settings:read` |  |
| PUT `/api/notifications/settings` | `settings:write` | Replace the policy (admins). |
| GET `/api/notifications/stream` | Signed-in session only |  |

### Secrets

Secrets workflows and connectors use (values are never returned).

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/secrets` | `settings:read` | List secret key names (values never returned). |
| POST `/api/secrets` | `settings:write` | Create/update a secret (admins only; CLI API keys count as admin). |
| DELETE `/api/secrets/{key}` | `settings:write` | Remove a secret (admins only; CLI API keys count as admin). |

### Settings

Workspace settings: time zone, embed domains, support email, webhook signing secret.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/settings/ai-resolver` | `settings:read` |  |
| PUT `/api/settings/ai-resolver` | `settings:write` |  |
| GET `/api/settings/embed-domains` | `settings:read` |  |
| PUT `/api/settings/embed-domains` | `settings:write` |  |
| GET `/api/settings/invites` | `settings:read` | Invite settings (admins; Settings › Members › Invite member). |
| PUT `/api/settings/invites` | `settings:write` |  |
| GET `/api/settings/money-fields` | `settings:write` |  |
| POST `/api/settings/money-fields/apply` | `settings:write` |  |
| POST `/api/settings/money-fields/plan` | `settings:write` |  |
| GET `/api/settings/support-email` | `settings:read` | Support-email identity for ticket-conversation mail. |
| PUT `/api/settings/support-email` | `settings:write` |  |
| GET `/api/settings/time-zone` | `settings:read` |  |
| PUT `/api/settings/time-zone` | `settings:write` |  |
| GET `/api/settings/verify` | `settings:read` |  |
| PUT `/api/settings/verify` | `settings:write` |  |
| GET `/api/settings/webhook` | `settings:write` | Reveal the current signing secret. |
| POST `/api/settings/webhook` | `settings:write` | Rotate the signing secret. |

### Workspaces

Subsidiaries and switching workspaces.

| Method and path | API key needs | Does |
| --- | --- | --- |
| PATCH `/api/workspace/{id}/parent` | Signed-in session only |  |
| POST `/api/workspace/subsidiaries` | `settings:write` | Create a child workspace under the active one (admin only). |
| POST `/api/workspace/switch` | Signed-in session only | Set the active workspace cookie (reachability-checked). |

## Channels and embeds

### Embed tokens

Tokens for embeds.

| Method and path | API key needs | Does |
| --- | --- | --- |
| POST `/api/embed-tokens` | `settings:write` | Mint an embed token (admin only). |
| PATCH `/api/embed-tokens/{id}` | `settings:write` | Edit a token (admin). |
| DELETE `/api/embed-tokens/{id}` | `settings:write` | Revoke (delete) a token (admin). |

### Embeds

Embedded forms, chat and actions on your own site.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/embed/chat` | Own credential |  |
| POST `/api/embed/chat` | Own credential | Start a chat. |
| POST `/api/embed/chat/{id}/close` | Own credential | The visitor ends the chat. |
| GET `/api/embed/chat/{id}/messages` | Own credential | The transcript so far (resume after a reload) + current state. |
| POST `/api/embed/chat/{id}/messages` | Own credential | The visitor says something. |
| GET `/api/embed/chat/{id}/stream` | Own credential | Server-Sent Events for one chat. |
| GET `/api/embed/config` | Own credential | The browser SDK's discovery call. |
| POST `/api/embed/ingest` | Own credential | Form-capture ingest. |
| POST `/api/embed/records/{entityKey}` | Own credential | Create a record from an embedded form / captured submit. |
| GET `/api/embed/verify` | Own credential | Poll a case's status/decision. |
| POST `/api/embed/verify` | Own credential |  |
| POST `/api/embed/verify/token` | Own credential |  |
| POST `/api/embed/workflows/trigger` | Own credential | Fire a workflow from an embedded action button. |

### Inbound email

Email intake.

| Method and path | API key needs | Does |
| --- | --- | --- |
| POST `/api/inbound/email` | Own credential | Generic inbound-email webhook. |
| GET `/api/inbound/mailbox` | `settings:read` | The workspace's inbound address + enabled state. |
| POST `/api/inbound/mailbox` | `settings:write` | Enable/disable email intake (admins). |

### Live chat

The live-chat inbox and settings.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/chat/inbox` | Signed-in session only | Open chats (needing an answer first) + the last day's closed ones. |
| GET `/api/chat/inbox/{id}` | Signed-in session only |  |
| POST `/api/chat/inbox/{id}/close` | Signed-in session only | End the chat from Ligament. |
| POST `/api/chat/inbox/{id}/reply` | Signed-in session only | Answer from Ligament (claims the chat if unanswered). |
| GET `/api/chat/inbox/stream` | Signed-in session only |  |
| GET `/api/chat/settings` | `settings:read` |  |
| PUT `/api/chat/settings` | `settings:write` |  |
| POST `/api/chat/settings/connect` | `settings:write` | Check the channel and register its inbound webhook (admin only). |
| GET `/api/chat/settings/staff` | `settings:read` | The staff-name directory (admin only). |
| PUT `/api/chat/settings/staff` | `settings:write` |  |
| POST `/api/chat/settings/test` | `settings:write` | Post a test message to the staff channel (admin only). |

### Notification callbacks

Button presses from messages, Slack and Teams callbacks, push receipts and SMS status callbacks. Each verifies its own signature.

| Method and path | API key needs | Does |
| --- | --- | --- |
| POST `/api/notify/actions` | Own credential | An Approve / Reject press from an email (via its confirmation page) or a web-push notification. |
| POST `/api/notify/push/receipt` | Own credential | The service worker showed a push notification. |
| POST `/api/notify/slack/interactions` | Own credential | Receive an Approve or Reject press from a Slack notification. |
| POST `/api/notify/teams/messages` | Own credential | The messaging endpoint of the Microsoft Teams bot (Bot Framework). |
| POST `/api/notify/twilio/status/{id}` | Own credential | Twilio's StatusCallback for one message. |

### Portal

The self-service portal.

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/portal` | `settings:read` | The workspace's portal config (any authed user). |
| PUT `/api/portal` | `settings:write` | Save the portal config (admins). |
| POST `/api/portal/confirm-resolution` | `records:write` | The requester's verdict on the AI Resolver's proposed fix, from the portal button. |
| GET `/api/portal/search` | Signed-in session only |  |
| POST `/api/portal/survey` | Signed-in session only | Portal survey submission. |

### Provider webhooks

Webhooks from third-party providers.

| Method and path | API key needs | Does |
| --- | --- | --- |
| POST `/api/webhooks/attest` | Own credential |  |
| POST `/api/webhooks/didit` | Own credential | Public Didit webhook receiver. |
| POST `/api/webhooks/stripe` | Own credential |  |
| POST `/api/webhooks/sumsub` | Own credential | Public Sumsub webhook receiver. |

## Other

### assets

| Method and path | API key needs | Does |
| --- | --- | --- |
| POST `/api/assets/checkouts/{id}/ack-link` | `records:write` |  |
| POST `/api/assets/checkouts/{id}/acknowledge` | Signed-in session only | The signed-in recipient confirms they received the kit. |

### compliance

| Method and path | API key needs | Does |
| --- | --- | --- |
| POST `/api/compliance/assignments/{id}/complete` | Signed-in session only | The signed-in assignee completes their OWN assignment. |
| GET `/api/compliance/assignments/{id}/document` | Signed-in session only |  |
| POST `/api/compliance/assignments/{id}/external-link` | `records:write` |  |
| POST `/api/compliance/assignments/{id}/progress` | Signed-in session only |  |
| POST `/api/compliance/assignments/{id}/quiz` | Signed-in session only | The signed-in assignee's quiz. |
| POST `/api/compliance/campaigns/{id}/launch` | `records:write` | Assign the campaign's obligation to its audience with its due date. |
| POST `/api/compliance/channel` | Signed-in session only | Publish the public speak-up form (an App Site with the anonymous intake blocks) or take it down. |
| POST `/api/compliance/completions/{id}/correct` | Signed-in session only | A correction: a new record pointing at the original (which never changes). |
| POST `/api/compliance/completions/{id}/review` | Signed-in session only | A compliance admin verifies or rejects submitted evidence (an uploaded signed copy, a certificate) or countersigns it. |
| POST `/api/compliance/exemptions/{id}/request` | `records:write` | Send a draft exemption for approval (Compliance admins). |
| POST `/api/compliance/governance/{id}/evidence` | `records:write` | Use an attached file as the task's evidence (owner or admin). |
| GET `/api/compliance/me` | `records:read` | The caller's own assignments (session or an API key acting as its owner, scope records:read:cmp\_assignment). |
| GET `/api/compliance/obligations/{id}/preview` | `records:read` | Who this obligation assigns to today, why, and the next due dates. |
| GET `/api/compliance/pack` | `records:read` |  |
| POST `/api/compliance/sync` | `records:write` |  |
| GET `/api/compliance/templates` | `records:read` | The catalog and what's installed. |
| POST `/api/compliance/templates` | `records:write` |  |
| POST `/api/compliance/versions/{id}/publish` | `records:write` | Publish an approved document version (the document's owner or a Compliance admin). |
| POST `/api/compliance/versions/{id}/submit` | `records:write` | Submit a draft document version for approval (the document's owner or a Compliance admin). |

### demo

| Method and path | API key needs | Does |
| --- | --- | --- |
| GET `/api/demo` | Signed-in session only |  |
| POST `/api/demo/load` | Signed-in session only |  |
| POST `/api/demo/remove` | Signed-in session only |  |

### onboard

| Method and path | API key needs | Does |
| --- | --- | --- |
| POST `/api/onboard/{action}` | Own credential | The new hire's portal (guest session cookie; the request never names a journey: the session does). |
| POST `/api/onboard/upload` | Own credential |  |

### onboarding

| Method and path | API key needs | Does |
| --- | --- | --- |
| POST `/api/onboarding/journeys/{id}/{action}` | Signed-in session only | The back office's journey actions. |
| GET `/api/onboarding/payroll-csv` | Signed-in session only | Payroll's bank-details CSV. |

### x

| Method and path | API key needs | Does |
| --- | --- | --- |
| POST `/api/x/asset-ack/{token}` | Own credential | Someone without a login confirms they received their kit through the link IT sent them. |
| POST `/api/x/esign/{token}` | Own credential | Someone signs through the link we emailed them. |
| GET `/api/x/esign/{token}/document/{docId}` | Own credential | A document to sign; needs the link's signing session (x-esign-session). |
| POST `/api/x/onboard/{token}` | Own credential |  |
| POST `/api/x/sign/{token}` | Own credential | An external signer signs through their link. |
| GET `/api/x/sign/{token}/document` | Own credential | The document to read, for a valid (unused, unexpired) external signing link. |
