# XTM One API

> Every route of the XTM One REST API in this version, its method, its path and what it does, generated from the source code.

- URL: https://filigran.io/docs/reference/xtm-one/api/
- Products: XTM One 1.261119.1
- For: developers
- Type: Reference
- Generated from the XTM One 1.261119.1 source code

**Diagram: A script calls the routes the interface calls, with an API key, and gets the rights of the key's user**

- Client: Script or app (API key fcp-...), XTM One interface (Calls the same routes)
- XTM One API: Reads (GET /api/v1/...), Changes (POST, PUT, PATCH, DELETE)
- Access: The key's user (Their rights apply)

Connections:

- Script or app → Reads: Bearer key
- Script or app → Changes: unless read-only
- XTM One interface → Reads
- XTM One interface → Changes
- Reads → The key's user: runs as
- Changes → The key's user: runs as

The interface of XTM One calls these routes, so a script can do what a person does on screen, with the rights of the user whose API key it sends. A user creates a key in **My Profile** > **API Keys**, with the **Platform API** surface. A read-only key sends only `GET`, `HEAD` and `OPTIONS` requests: any other method is refused, even a `POST` that only searches.

[Script OpenAEV and XTM One with their REST APIs](https://filigran.io/docs/develop/apis/rest/) shows a first request and how to read the errors. To talk to an agent from your code, see [XTM One chat API](https://filigran.io/docs/develop/apis/chat/).

Every route of the XTM One REST API: 1062 in 70 areas. The interface calls the same routes, so a script does what a person does on screen, with the rights of the user whose API key it sends: see [Script OpenAEV and XTM One with their REST APIs](https://filigran.io/docs/develop/apis/rest/). Your platform serves the same list with the fields of each route at `/api/reference`, and as an OpenAPI document at `/api/openapi.json`.

## A2A admin {#a2a-admin}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/agents/{agent_id}/a2a` | Whether agent is currently reachable, and on what terms. |

## A2A client {#a2a-client}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/a2a/client/{integration_id}` | What this partner declares, and whether we can currently reach each agent. |
| `POST` | `/api/v1/a2a/client/{integration_id}/accept-card` | Accept a partner's changed card and resume delegation (FR-019). |
| `GET` | `/api/v1/a2a/client/{integration_id}/delegations` | What this partner was asked to do, newest first. |
| `POST` | `/api/v1/a2a/client/{integration_id}/verify` | Re-verify this partner's card now. |

## A2A liaisons {#a2a-liaisons}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/a2a/liaisons` | Partner nodes and directed edges of the caller's visible A2A bindings. |

## Activity {#activity}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/activity` |  |
| `GET` | `/api/v1/activity/adoption` | Time series data for platform adoption metrics. |
| `GET` | `/api/v1/activity/stats` | Get dashboard statistics. |
| `GET` | `/api/v1/activity/stream` | SSE stream for real-time activity updates. |
| `GET` | `/api/v1/activity/traces` | Return recent platform flow traces for the dashboard flow visualization. |

## Admin objects {#admin-objects}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/admin/objects` | List all platform objects (admin-only). |

## Agent accounts {#agent-accounts}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/agent-accounts` | The caller's accounts (every account for an administrator with `scope=all`). |
| `POST` | `/api/v1/agent-accounts` | Create an account for the caller, starting from its mode's preset. |
| `GET` | `/api/v1/agent-accounts/{account_id}` |  |
| `PUT` | `/api/v1/agent-accounts/{account_id}` | Edit an account; a changed integration or agent is checked against the account's owner. |
| `DELETE` | `/api/v1/agent-accounts/{account_id}` | Delete an account, its subscriptions at the provider first. |
| `GET` | `/api/v1/agent-accounts/{account_id}/activity` | What the account did over the period: totals, timeline, where, for whom, why, how fast. |
| `GET` | `/api/v1/agent-accounts/{account_id}/decisions` | Every message the account heard and every message the agent sent on its own through it. |
| `GET` | `/api/v1/agent-accounts/{account_id}/replies` | Every message the account sent, newest first unless `sort` says otherwise, filtered and paged. |
| `POST` | `/api/v1/agent-accounts/{account_id}/sync` | Re-read the account's identity and bring its subscriptions up to date, in the background. |
| `GET` | `/api/v1/agent-accounts/catalog` | The providers an account can operate, and the two modes' starting points on each. |
| `POST` | `/api/v1/agent-accounts/notifications/{provider_key}` | A provider's push delivery: validated, verified entry by entry, processed in the background. |
| `GET` | `/api/v1/agent-accounts/pickers/{provider_key}/conversations` | The chats and channels of the account an integration is signed in as. |
| `GET` | `/api/v1/agent-accounts/pickers/{provider_key}/identity` | The account an integration is signed in as, and whether an agent account already operates it. |
| `GET` | `/api/v1/agent-accounts/pickers/{provider_key}/people` | People of the account's directory, for a rule's focus or exclusion list. |
| `GET` | `/api/v1/agent-accounts/replies` | The replies of the caller's accounts, newest first. |
| `POST` | `/api/v1/agent-accounts/replies/{reply_id}/approve` | Post a pending (or shadow) reply as the account, as drafted or as edited. |
| `POST` | `/api/v1/agent-accounts/replies/{reply_id}/reject` | Drop a pending reply: nothing is posted. |
| `POST` | `/api/v1/agent-accounts/simulate` | What the rule engine decides on a sample message: nothing is sent, nothing written. |

## Agents {#agents}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/agents` |  |
| `POST` | `/api/v1/agents` |  |
| `GET` | `/api/v1/agents/{agent_id}` |  |
| `PUT` | `/api/v1/agents/{agent_id}` |  |
| `DELETE` | `/api/v1/agents/{agent_id}` |  |
| `POST` | `/api/v1/agents/{agent_id}/builtin-tools/notice` | Dismiss built-in functions a release shipped that the agent's allowlist leaves out. |
| `DELETE` | `/api/v1/agents/{agent_id}/channel-config/{channel_type}` | Admin-only: remove a channel_config entry from an agent. |
| `GET` | `/api/v1/agents/{agent_id}/chats` | List all conversations for an agent (web, external channels, embedded). |
| `DELETE` | `/api/v1/agents/{agent_id}/chats` | Delete all conversations for an agent. |
| `GET` | `/api/v1/agents/{agent_id}/chats/{conversation_id}` | Get conversation detail with paginated messages (newest first). |
| `GET` | `/api/v1/agents/{agent_id}/chats/conversations/{conversation_id}/messages` | One page of one of the agent's conversations, older than `before`, as the chat panel pages a thread. |
| `GET` | `/api/v1/agents/{agent_id}/chats/panel-agents` | The agent itself, as the read-only panel's one-entry agent list. |
| `POST` | `/api/v1/agents/{agent_id}/chats/sessions` | The latest messages of one of the agent's conversations, as the chat panel restores a session. |
| `GET` | `/api/v1/agents/{agent_id}/config-versions/{field_name}` | List version history for one tracked config field of an agent. |
| `GET` | `/api/v1/agents/{agent_id}/config-versions/{field_name}/{version_number}` | Get one specific version for one tracked config field. |
| `DELETE` | `/api/v1/agents/{agent_id}/config-versions/{field_name}/{version_number}` | Delete a config-field version. |
| `POST` | `/api/v1/agents/{agent_id}/config-versions/{field_name}/{version_number}/lock` | Lock a config-field version. |
| `POST` | `/api/v1/agents/{agent_id}/config-versions/{field_name}/{version_number}/rollback` | Rollback one tracked config field to a previous version as a new head. |
| `POST` | `/api/v1/agents/{agent_id}/config-versions/{field_name}/{version_number}/unlock` | Unlock a config-field version. |
| `GET` | `/api/v1/agents/{agent_id}/config-versions/{field_name}/diff` | Compute line-by-line diff between two versions of one config field. |
| `POST` | `/api/v1/agents/{agent_id}/duplicate` | Duplicate an agent (including its assignments) as a private copy for the current user. |
| `GET` | `/api/v1/agents/{agent_id}/email-signatures` | Each email-sending binding of the agent the viewer can see: its override, what it inherits, the result. |
| `GET` | `/api/v1/agents/{agent_id}/export` | Export an agent in the requested portable format. |
| `GET` | `/api/v1/agents/{agent_id}/export/portability` | Report what exporting this agent to `format` would not carry. |
| `GET` | `/api/v1/agents/{agent_id}/feedback-comments` | List user feedback comments for one agent. |
| `POST` | `/api/v1/agents/{agent_id}/generate-suggested-prompts` | Use LLM to generate suggested prompts based on the agent's persona. |
| `GET` | `/api/v1/agents/{agent_id}/memory` | List persistent memory entries for an agent. |
| `POST` | `/api/v1/agents/{agent_id}/memory` | Recreate exported persistent memory entries on an agent. |
| `DELETE` | `/api/v1/agents/{agent_id}/memory` | Delete all persistent memory entries for an agent. |
| `PUT` | `/api/v1/agents/{agent_id}/memory/{entry_id}` | Update the content of a single persistent memory entry. |
| `DELETE` | `/api/v1/agents/{agent_id}/memory/{entry_id}` | Delete a single persistent memory entry. |
| `GET` | `/api/v1/agents/{agent_id}/memory/consolidations` | The consolidations of the agent's own memory lane, newest first. |
| `POST` | `/api/v1/agents/{agent_id}/memory/consolidations/{consolidation_id}/undo` | Undo one consolidation of the agent's own memory lane. |
| `GET` | `/api/v1/agents/{agent_id}/memory/health` | Return memory statistics and health indicators for an agent. |
| `POST` | `/api/v1/agents/{agent_id}/memory/maintain` | Trigger on-demand memory maintenance for a specific agent. |
| `GET` | `/api/v1/agents/{agent_id}/memory/search` | Combined semantic + text search over an agent's persistent memory. |
| `GET` | `/api/v1/agents/{agent_id}/missing-variables` | The variables this agent references that have no value yet, then the ones that no longer exist. |
| `GET` | `/api/v1/agents/{agent_id}/persona/versions` | List persona versions for an agent ordered by latest first. |
| `GET` | `/api/v1/agents/{agent_id}/persona/versions/{version_number}` | Get a specific persona version by number. |
| `DELETE` | `/api/v1/agents/{agent_id}/persona/versions/{version_number}` | Delete a persona version. |
| `POST` | `/api/v1/agents/{agent_id}/persona/versions/{version_number}/lock` | Lock a persona version to protect it from deletion. |
| `POST` | `/api/v1/agents/{agent_id}/persona/versions/{version_number}/rollback` | Rollback agent persona to a previous version as a new head version. |
| `POST` | `/api/v1/agents/{agent_id}/persona/versions/{version_number}/unlock` | Unlock a persona version. |
| `GET` | `/api/v1/agents/{agent_id}/persona/versions/diff` | Compute line-by-line diff between two persona versions. |
| `GET` | `/api/v1/agents/budget-policy` | The platform run-budget configuration, and whether the caller may exceed it. |
| `GET` | `/api/v1/agents/channel-routing` | Admin-only: return all agents grouped by which channel they are routed to. |
| `POST` | `/api/v1/agents/import` | Import an agent from a native export bundle supplied as a JSON body. |
| `POST` | `/api/v1/agents/import-file` | Import an agent from an uploaded file, detecting its format automatically. |
| `POST` | `/api/v1/agents/import-file/check` | Dry-run the import verification loop on an uploaded file. |
| `POST` | `/api/v1/agents/import-file/suggest` | Ask the platform assistant how to finish setting up an imported agent. |
| `POST` | `/api/v1/agents/import/confirm` | Import a bundle previously checked by `POST /agents/import-file/check`. |
| `GET` | `/api/v1/agents/pipeline-tools` | Return tools eligible for pipeline Prepare and Finalize stages. |
| `GET` | `/api/v1/agents/platform` | Admin-only: return a lightweight list of ALL agents across the platform. |
| `GET` | `/api/v1/agents/templates` | List available agent templates (enabled ones for users, all for admins). |
| `POST` | `/api/v1/agents/templates` | Create a new agent template (admin only). |
| `PUT` | `/api/v1/agents/templates/{slug}` | Update an agent template (admin only). |
| `DELETE` | `/api/v1/agents/templates/{slug}` | Delete an agent template (admin only). |

## AI {#ai}

| Method | Path | What it does |
| --- | --- | --- |
| `POST` | `/api/v1/ai/generate-prompt` | Use the configured LLM to generate a system prompt from a description. |
| `POST` | `/api/v1/ai/generate-template` | Draft a complete template container from a plain-language brief. |

## AI adoption {#ai-adoption}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/ai-adoption/gaps` | The users not adopting agentic AI: inactive, low-activity, and the trend. |
| `GET` | `/api/v1/ai-adoption/overview` | Active users, their previous-period count and the top users of the period. |

## Annotations {#annotations}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/annotations` | Every rating of one agent's work across target types, newest first unless sort says otherwise. |
| `GET` | `/api/v1/annotations/{target_type}/{target_id}` | The caller's own rating of the target, or `null` when they have none. |
| `POST` | `/api/v1/annotations/{target_type}/{target_id}` | Set the caller's rating of the target (re-rating replaces it). |
| `DELETE` | `/api/v1/annotations/{target_type}/{target_id}` | Retract the caller's rating of the target. |
| `GET` | `/api/v1/annotations/{target_type}/{target_id}/stats` | How everyone rated the target: counts only, never who or what they wrote. |
| `GET` | `/api/v1/annotations/mine` | The caller's own ratings of many targets at once - a list page's rows in one request instead of one each. |
| `GET` | `/api/v1/annotations/summary` | Positive / negative counts of one agent's work, per target type and overall. |
| `GET` | `/api/v1/feedback-criteria` | The criteria the rating dialog offers; an admin may ask for the disabled ones. |
| `POST` | `/api/v1/feedback-criteria` |  |
| `PUT` | `/api/v1/feedback-criteria/{criterion_id}` |  |
| `DELETE` | `/api/v1/feedback-criteria/{criterion_id}` | Delete a criterion and every score given on it. |

## API keys {#api-keys}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/admin/api-keys` | Every personal API key of the platform with its owner, scopes, expiry and last use (admin). |
| `POST` | `/api/v1/admin/api-keys/{key_id}/revoke` | Revoke a key (admin): it stops authenticating at once and its owner is told. |
| `GET` | `/api/v1/api-keys` | List all API keys for the current user. |
| `POST` | `/api/v1/api-keys` | Create a new API key. |
| `PATCH` | `/api/v1/api-keys/{key_id}` | Change a key's name, scopes, expiry or limits. |
| `DELETE` | `/api/v1/api-keys/{key_id}` | Delete an API key (must belong to the current user). |
| `GET` | `/api/v1/api-keys/policy` | What a new key may be given on this deployment: the surfaces it serves and the bounds. |

## Arcade {#arcade}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/arcade/leaderboard` |  |
| `GET` | `/api/v1/arcade/profile` |  |
| `PUT` | `/api/v1/arcade/profile` |  |
| `POST` | `/api/v1/arcade/sessions` |  |
| `POST` | `/api/v1/arcade/sessions/{session_id}/finish` | Record a finished run. |
| `POST` | `/api/v1/arcade/sessions/{session_id}/heartbeat` | Tell the room this player is still at it; answer with who else is. |

## Assignments {#assignments}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/assignments` |  |
| `POST` | `/api/v1/assignments` |  |
| `GET` | `/api/v1/assignments/{assignment_id}` |  |
| `PUT` | `/api/v1/assignments/{assignment_id}` |  |
| `DELETE` | `/api/v1/assignments/{assignment_id}` |  |
| `GET` | `/api/v1/assignments/{assignment_id}/runs` |  |
| `DELETE` | `/api/v1/assignments/{assignment_id}/runs` | Delete all runs for a specific assignment. |
| `POST` | `/api/v1/assignments/{assignment_id}/trigger` | Manually trigger a assignment execution. |
| `GET` | `/api/v1/assignments/platform-event-watches` | The caller's one-off watches that wake a background task. |
| `POST` | `/api/v1/assignments/platform-event-watches` | Arm a one-off watch: the first matching event starts one background task of `agent_id`. |
| `DELETE` | `/api/v1/assignments/platform-event-watches/{watch_id}` | Cancel one of the caller's armed watches; a fired or expired one is returned as it is. |
| `GET` | `/api/v1/assignments/platform-events` | The platform events a `platform_event` trigger can name, with their filter keys. |
| `GET` | `/api/v1/assignments/runs/{run_id}` | Get a single assignment run with full details. |
| `DELETE` | `/api/v1/assignments/runs/{run_id}` | Delete a single assignment run. |
| `GET` | `/api/v1/assignments/runs/{run_id}/action-requests` | The open requests to act on a paused run, for the people who may answer it. |
| `POST` | `/api/v1/assignments/runs/{run_id}/action-requests/{request_id}/dismiss` | Close one open request to act on a run, as someone who may answer it. |
| `GET` | `/api/v1/assignments/runs/{run_id}/descendants` | Return ALL descendants of a run as a flat list (recursive). |
| `POST` | `/api/v1/assignments/runs/{run_id}/dismiss` | Dismiss a assignment run that is awaiting human input. |
| `POST` | `/api/v1/assignments/runs/{run_id}/followup` | Create a follow-up run based on a completed/failed/skipped run. |
| `POST` | `/api/v1/assignments/runs/{run_id}/followup-chat` | Open an interactive chat seeded from a terminal run. |
| `GET` | `/api/v1/assignments/runs/{run_id}/pending-approvals` | Return the structured proposals awaiting a decision on a paused run. |
| `POST` | `/api/v1/assignments/runs/{run_id}/respond` | Respond to a assignment run that is awaiting human input. |
| `GET` | `/api/v1/assignments/runs/active-agents` | Return agent IDs that are currently active (assignment runs OR chat processing). |
| `GET` | `/api/v1/assignments/runs/all` | List all assignment runs across all assignments, with agent/assignment names. |
| `POST` | `/api/v1/assignments/runs/approvals/batch` | Answer approvals across several runs in one action (FR-031). |
| `POST` | `/api/v1/assignments/runs/approvals/by-tool` | Answer every paused run whose calls are all among the named tools. |
| `GET` | `/api/v1/assignments/runs/approvals/pending-by-tool` | What is waiting, grouped by tool, across every page. |
| `POST` | `/api/v1/assignments/runs/approvals/release-covered` | Answer the named runs that the caller's standing approvals already cover. |
| `POST` | `/api/v1/assignments/runs/bulk-cancel` | Cancel every run that has not started and matches the filter. |
| `POST` | `/api/v1/assignments/runs/bulk-delete` | Delete multiple assignment runs at once. |
| `POST` | `/api/v1/assignments/runs/cleanup-stale` | Immediately recover stale orchestration executions across all adapters. |
| `GET` | `/api/v1/assignments/runs/count` | Return the total number of runs matching the given filters. |
| `DELETE` | `/api/v1/assignments/runs/purge` | Delete all assignment runs visible to the admin. |
| `GET` | `/api/v1/assignments/runs/segment-counts` | How many runs each visibility segment holds under the feed's other filters. |
| `GET` | `/api/v1/assignments/runs/status-counts` | How many runs each status holds under the feed's other filters. |
| `GET` | `/api/v1/assignments/schedule` | Trigger + next-run summary for every visible, enabled assignment. |

## Audit logs {#audit-logs}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/audit-logs` | List audit logs with search and filtering (admin-only). |
| `GET` | `/api/v1/audit-logs/actions` | List distinct action types for filter dropdowns. |
| `GET` | `/api/v1/audit-logs/entity-types` | List distinct entity types for filter dropdowns. |

## Auth {#auth}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/auth/config` | Return which login methods are enabled (called by frontend login page). |
| `POST` | `/api/v1/auth/forgot-password` | Self-service password reset request (no auth required). |
| `POST` | `/api/v1/auth/login` |  |
| `GET` | `/api/v1/auth/me` |  |
| `POST` | `/api/v1/auth/mfa/disable` | Turn MFA off. |
| `POST` | `/api/v1/auth/mfa/enable` | Confirm enrollment with a live code, then activate MFA. |
| `POST` | `/api/v1/auth/mfa/recovery-codes` | Issue a fresh set of recovery codes, invalidating the previous one. |
| `POST` | `/api/v1/auth/mfa/setup` | Begin TOTP enrollment: mint a secret and return the QR to scan. |
| `POST` | `/api/v1/auth/mfa/verify` | Exchange a login challenge token plus a code for a real session token. |
| `PUT` | `/api/v1/auth/password` | Change the current user's password (local accounts only). |
| `POST` | `/api/v1/auth/register` |  |
| `POST` | `/api/v1/auth/register-with-invitation` | Register a new account by consuming an admin-generated invitation. |
| `POST` | `/api/v1/auth/reset-password` | Consume a password reset token and set a new password (no auth required). |
| `GET` | `/api/v1/auth/reset-password/{token}` | Validate a password reset token (no auth required). |
| `GET` | `/api/v1/auth/session` | When the caller's session ends. |
| `POST` | `/api/v1/auth/session/activity` | The person did something in the web app: their session's idle deadline moves on. |
| `GET` | `/api/v1/auth/terms` | Return the current Terms of Use state for the calling user. |
| `POST` | `/api/v1/auth/terms/accept` | Record platform-wide acceptance of the current Terms of Use. |
| `POST` | `/api/v1/auth/terms/decline` | Record that the user declined the current Terms of Use. |

## Browser profiles {#browser-profiles}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/browser-profiles` |  |
| `POST` | `/api/v1/browser-profiles` |  |
| `GET` | `/api/v1/browser-profiles/{profile_id}` |  |
| `PUT` | `/api/v1/browser-profiles/{profile_id}` |  |
| `DELETE` | `/api/v1/browser-profiles/{profile_id}` |  |
| `POST` | `/api/v1/browser-profiles/{profile_id}/check` | Probe the saved session; when it has expired and the profile renews unattended (a valid TOTP secret, or a saved identity-provider session), sign in again by itself. |
| `GET` | `/api/v1/browser-profiles/{profile_id}/mfa-screenshot` | The screenshot of the profile's open MFA prompt, for whoever may use the profile. |
| `POST` | `/api/v1/browser-profiles/{profile_id}/sign-in` |  |
| `POST` | `/api/v1/browser-profiles/{profile_id}/sign-out` |  |
| `POST` | `/api/v1/browser-profiles/{profile_id}/test-sign-in` | Run the whole sign-in once as a dry run: save nothing, and return the trace so the operator sees where it stalls. |
| `GET` | `/api/v1/browser-profiles/mfa/{challenge_id}` |  |
| `POST` | `/api/v1/browser-profiles/mfa/{challenge_id}` |  |

## Channel bots {#channel-bots}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/channel-bots` | List all channel bots visible to the current user. |
| `POST` | `/api/v1/channel-bots` | Create a new channel bot. |
| `PUT` | `/api/v1/channel-bots/{bot_id}` | Update a channel bot's credentials or whitelists. |
| `DELETE` | `/api/v1/channel-bots/{bot_id}` | Delete a channel bot. |
| `GET` | `/api/v1/channel-bots/{bot_id}/channels` | List all available channels from the messaging platform. |
| `POST` | `/api/v1/channel-bots/{bot_id}/test-tool` | Test a single channel bot tool by executing it with provided arguments. |
| `GET` | `/api/v1/channel-bots/{bot_id}/tools` | List available tools for a channel bot. |
| `GET` | `/api/v1/channel-bots/catalog` | List available channel bot provider types. |

## Channels {#channels}

| Method | Path | What it does |
| --- | --- | --- |
| `POST` | `/api/channels/discord/interactions` | Handle Discord Interaction endpoint (slash commands). |
| `POST` | `/api/channels/googlechat/webhook` | Receive Google Chat events via webhook. |
| `POST` | `/api/channels/slack/events` |  |
| `POST` | `/api/channels/teams/graph-notifications` | Receive Graph API change and lifecycle notifications for private/shared channels. |
| `POST` | `/api/channels/teams/messages` |  |
| `GET` | `/api/channels/teams/tab` | Minimal personal tab page for the Teams app. |
| `POST` | `/api/channels/telegram/webhook` | Receive Telegram Bot API updates via webhook. |
| `GET` | `/api/channels/whatsapp/gateway/{integration_id}` | A browser opening the gateway webhook URL: say it takes POST, so a 404 is not misread. |
| `POST` | `/api/channels/whatsapp/gateway/{integration_id}` | Inbound webhook of a `whatsapp` integration on the linked-device gateway backend. |
| `GET` | `/api/channels/whatsapp/webhook` |  |
| `POST` | `/api/channels/whatsapp/webhook` |  |

## Chat {#chat}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/chat/commands` |  |
| `POST` | `/api/v1/chat/commands/run` |  |
| `GET` | `/api/v1/chat/conversation-references` | The conversations the composer's @ menu offers. |
| `GET` | `/api/v1/chat/conversations` |  |
| `POST` | `/api/v1/chat/conversations` |  |
| `DELETE` | `/api/v1/chat/conversations` | Archive all non-archived conversations for the current user. |
| `GET` | `/api/v1/chat/conversations/{conversation_id}` |  |
| `PATCH` | `/api/v1/chat/conversations/{conversation_id}` | Rename a conversation, or file it into a workspace. |
| `DELETE` | `/api/v1/chat/conversations/{conversation_id}` |  |
| `PUT` | `/api/v1/chat/conversations/{conversation_id}/agent` | Continue an EXISTING conversation with another agent, in place. |
| `GET` | `/api/v1/chat/conversations/{conversation_id}/awaited-work` | The work that resumes the conversation once it ends. |
| `GET` | `/api/v1/chat/conversations/{conversation_id}/channel-bindings` | Where the conversation is continued, and where it can be. |
| `POST` | `/api/v1/chat/conversations/{conversation_id}/channel-bindings` | Continue the conversation in the owner's direct messages with the bot. |
| `DELETE` | `/api/v1/chat/conversations/{conversation_id}/channel-bindings/{channel}` | Stop continuing the conversation in channel: its thread starts afresh. |
| `PUT` | `/api/v1/chat/conversations/{conversation_id}/dashboard` | Bind an EXISTING conversation to a custom dashboard (Dashboard Studio). |
| `GET` | `/api/v1/chat/conversations/{conversation_id}/export` |  |
| `GET` | `/api/v1/chat/conversations/{conversation_id}/files` | List every file attached to or produced inside a conversation. |
| `POST` | `/api/v1/chat/conversations/{conversation_id}/files/access-ack` | Record an admin's confidentiality acknowledgement ("break the glass"). |
| `PUT` | `/api/v1/chat/conversations/{conversation_id}/fleet` | Bind an EXISTING conversation to a fleet (fleet page Modify with AI). |
| `DELETE` | `/api/v1/chat/conversations/{conversation_id}/interrupted-turn` | Stop showing the conversation's interrupted turn, owner only. |
| `PUT` | `/api/v1/chat/conversations/{conversation_id}/link-access` | Set how far the conversation URL reaches on its own. |
| `GET` | `/api/v1/chat/conversations/{conversation_id}/messages` | Cursor-paginated message history for a conversation. |
| `POST` | `/api/v1/chat/conversations/{conversation_id}/messages` |  |
| `GET` | `/api/v1/chat/conversations/{conversation_id}/messages/{message_id}/feedback` |  |
| `POST` | `/api/v1/chat/conversations/{conversation_id}/messages/{message_id}/feedback` |  |
| `DELETE` | `/api/v1/chat/conversations/{conversation_id}/messages/{message_id}/feedback` |  |
| `GET` | `/api/v1/chat/conversations/{conversation_id}/messages/{message_id}/files/{file_id}/download` |  |
| `PUT` | `/api/v1/chat/conversations/{conversation_id}/presentation` | Bind an EXISTING conversation to a deck (Presentation Studio). |
| `POST` | `/api/v1/chat/conversations/{conversation_id}/return-to-source` | Return the conversation to the agent it was at before the last transfer. |
| `GET` | `/api/v1/chat/conversations/{conversation_id}/sandbox-workspace` | The conversation's sandbox workspace, owner only: anyone else reads the conversation's 404. |
| `GET` | `/api/v1/chat/conversations/{conversation_id}/shares` | List who this conversation is shared with, and its link tier. |
| `POST` | `/api/v1/chat/conversations/{conversation_id}/shares` | Grant read access to one user or one group. |
| `DELETE` | `/api/v1/chat/conversations/{conversation_id}/shares/{share_id}` | Revoke one grant. |
| `POST` | `/api/v1/chat/conversations/{conversation_id}/upload` | Upload a file to a conversation. |
| `PUT` | `/api/v1/chat/conversations/{conversation_id}/video` | Bind an EXISTING conversation to a video (Video Studio). |
| `GET` | `/api/v1/chat/delegations` | List agent delegations (consult, transfer, background_task). |
| `GET` | `/api/v1/chat/delegations/{delegation_id}` | Get a specific delegation - any user's for an admin, audited on the delegating agent when it is another user's. |
| `GET` | `/api/v1/chat/files/{file_id}/download` | Download a file attachment by ID. |
| `GET` | `/api/v1/chat/files/{file_id}/info` | Get file attachment metadata without downloading the binary. |
| `GET` | `/api/v1/chat/files/{file_id}/public` | Serve an S3-stored file via time-limited signed token. |
| `GET` | `/api/v1/chat/images/{image_id}` | Serve a generated chat image by ID. |
| `GET` | `/api/v1/chat/images/{image_id}/public` | Serve a generated chat image via time-limited signed token. |
| `GET` | `/api/v1/chat/share-targets` | Search users and groups the caller can share a conversation with. |
| `POST` | `/api/v1/chat/stt` | Transcribe audio to text with the platform's speech-to-text (`app.llm.transcription`). |
| `GET` | `/api/v1/chat/sub-agent-tasks` | List background sub-agent tasks (enriched with agent names + run linkage). |
| `GET` | `/api/v1/chat/sub-agent-tasks/{task_id}` | Get details of a specific sub-agent task (legacy). |
| `DELETE` | `/api/v1/chat/sub-agent-tasks/{task_id}` | Delete a single background task (owner or admin). |
| `POST` | `/api/v1/chat/sub-agent-tasks/{task_id}/cancel` | Cancel a background sub-agent task (owner or admin). |
| `POST` | `/api/v1/chat/sub-agent-tasks/bulk-delete` | Delete multiple background tasks at once (owner or admin). |
| `GET` | `/api/v1/chat/sub-agent-tasks/count` | Return the number of background tasks matching the given filters. |
| `GET` | `/api/v1/chat/sub-agent-tasks/segment-counts` | How many background tasks each visibility segment holds under the list's other filters. |
| `GET` | `/api/v1/chat/sub-agent-tasks/status-counts` | How many background tasks each status holds under the list's other filters. |
| `GET` | `/api/v1/chat/suggestions` | Suggested opening actions for the chat welcome screen. |
| `POST` | `/api/v1/chat/tts` | Speak text with the platform's speech model. |

## CTEM cases {#ctem-cases}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/ctem-cases` | One page of the cases the caller sees and their counts by state (the board and the list). |
| `GET` | `/api/v1/ctem-cases/{case_id}` | One case as the caller sees it: its fix, their visible issues, Restricted rows, its history. |
| `PATCH` | `/api/v1/ctem-cases/{case_id}` | Change the owner, due date, a note or the state; 422 with the rule when it is refused. |
| `POST` | `/api/v1/ctem-cases/bulk` | Apply one change to several cases (the list's bulk actions). |
| `POST` | `/api/v1/ctem-cases/merge` | Merge cases the caller sees into the surviving one; answers the survivor. |
| `POST` | `/api/v1/ctem-cases/recompute` | Merge the open issues the caller sees into the shared cases now (one per minute per user). |
| `POST` | `/api/v1/ctem-cases/split` | Split open issues the caller sees out of their cases into a new manual case; answers it. |

## CTEM metrics {#ctem-metrics}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/ctem-metrics/briefing` | The current user's AI exposure briefing - per user + per vertical, EE-gated. |
| `POST` | `/api/v1/ctem-metrics/briefing/refresh` | Generate the current user's exposure briefing on demand (as that user). |
| `GET` | `/api/v1/ctem-metrics/my-stage-agents` | The current user's CTEM analyst overrides for vertical. |
| `PUT` | `/api/v1/ctem-metrics/my-stage-agents` | Set the current user's personal CTEM analyst overrides for a vertical (Agentic AI). |
| `GET` | `/api/v1/ctem-metrics/posture` | Cross-product Exposure Posture for the current user (live, scoped, cached). |
| `GET` | `/api/v1/ctem-metrics/posture/history` | Historical posture for the current user + vertical (oldest first). |
| `GET` | `/api/v1/ctem-metrics/posture/movers` | The briefing's risk movers for the current user + vertical. |
| `GET` | `/api/v1/ctem-metrics/stage-agents` | Platform (admin) CTEM analyst defaults for vertical: per stage + the Exposure Briefing Analyst, each with the seeded default, the active override and the effective agent. |
| `PUT` | `/api/v1/ctem-metrics/stage-agents` | Set the platform CTEM analyst defaults for a vertical (Agentic AI, admin). |
| `GET` | `/api/v1/ctem-metrics/stages/{stage}` | Live, per-user facts + display payload for a single CTEM stage. |
| `GET` | `/api/v1/ctem-metrics/stages/{stage}/assessment` | The current user's AI assessment for one CTEM stage (per user, EE-gated). |
| `POST` | `/api/v1/ctem-metrics/stages/{stage}/assessment/refresh` | Generate the current user's assessment for one stage on demand (as them). |
| `POST` | `/api/v1/ctem-metrics/sync` | Force a live rebuild of the user's posture for the ACTIVE vertical. |

## Custom tool sources {#custom-tool-sources}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/custom-tool-sources` | The sources the caller sees: their own (admins: all). |
| `POST` | `/api/v1/custom-tool-sources` | Create a source. |
| `GET` | `/api/v1/custom-tool-sources/{source_id}` |  |
| `PUT` | `/api/v1/custom-tool-sources/{source_id}` | Update a source. |
| `DELETE` | `/api/v1/custom-tool-sources/{source_id}` | Delete a source. |
| `POST` | `/api/v1/custom-tool-sources/{source_id}/sync` | Sync the source now: read the repository, run the tests of every new or changed tool, and activate the versions that pass. |

## Custom tools {#custom-tools}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/custom-tools` | List custom tools visible to the current user (own + group-shared + company-managed). |
| `POST` | `/api/v1/custom-tools` | Create a new custom tool. |
| `GET` | `/api/v1/custom-tools/{tool_id}` | Get a single custom tool (must be own, group-shared, company-managed, or admin). |
| `PUT` | `/api/v1/custom-tools/{tool_id}` | Update a custom tool (creator or admin only). |
| `DELETE` | `/api/v1/custom-tools/{tool_id}` | Delete a custom tool (creator or admin only). |
| `POST` | `/api/v1/custom-tools/{tool_id}/detach` | Detach a synced tool from its repository source: it becomes an ordinary, editable tool, and the source no longer creates or updates it. |
| `GET` | `/api/v1/custom-tools/{tool_id}/export` | Export a custom tool as a portable JSON bundle. |
| `POST` | `/api/v1/custom-tools/{tool_id}/run-tests` | Run the tool's declared tests (data cases and test code) and keep the report. |
| `GET` | `/api/v1/custom-tools/{tool_id}/skills` | List visible skills linked as origin creators of this custom tool. |
| `POST` | `/api/v1/custom-tools/{tool_id}/test` | Test a custom tool by executing its JavaScript function with sample inputs. |
| `POST` | `/api/v1/custom-tools/{tool_id}/test/cleanup` | Purge test files uploaded during custom tool testing. |
| `POST` | `/api/v1/custom-tools/{tool_id}/test/upload` | Upload a file for use during custom tool testing. |
| `POST` | `/api/v1/custom-tools/generate-code` | Draft or rework a tool's code with the caller's model. |
| `POST` | `/api/v1/custom-tools/import` | Import a custom tool from an export bundle. |
| `POST` | `/api/v1/custom-tools/lint` | Syntax-check a script WITHOUT executing it. |

## Extension {#extension}

| Method | Path | What it does |
| --- | --- | --- |
| `POST` | `/api/v1/extension/execute-task` | Execute a browser-extension task statelessly. |

## Files {#files}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/files` | Every file the requester can download, newest first, across contexts. |
| `DELETE` | `/api/v1/files/{file_id}` | Delete one file — its row and its S3 object. |
| `GET` | `/api/v1/files/segment-counts` | How many files each visibility segment holds under the list's other filters. |

## Fleets {#fleets}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/fleet-member-presets` | The built-in presets, then the company's, by name. |
| `POST` | `/api/v1/fleet-member-presets` | Store a company preset; 409 on a name taken, 422 names a value refused. |
| `PATCH` | `/api/v1/fleet-member-presets/{preset_id}` | Rename a stored preset or replace its values; a built-in answers 403. |
| `DELETE` | `/api/v1/fleet-member-presets/{preset_id}` | Delete a stored preset; no fleet changes. |
| `GET` | `/api/v1/fleets` | List the fleets visible to the caller. |
| `POST` | `/api/v1/fleets` | Create a fleet bound to a workspace (one is created with it when none is named). |
| `GET` | `/api/v1/fleets/{fleet_id}` | One fleet the caller can see. |
| `PUT` | `/api/v1/fleets/{fleet_id}` | Update a fleet (owner, `config` grantee or admin). |
| `DELETE` | `/api/v1/fleets/{fleet_id}` | Delete a fleet. |
| `GET` | `/api/v1/fleets/{fleet_id}/activity` | The members' latest runs the caller may see and the caller's own delegations from or to a member, newest first (`limit` each). |
| `GET` | `/api/v1/fleets/{fleet_id}/approval-gates` | A fleet's approval gate catalog and the gates proposed from its configuration. |
| `PUT` | `/api/v1/fleets/{fleet_id}/approval-gates` | Store a custom fleet's approval gate catalog: the gates its autonomy level acts on. |
| `PUT` | `/api/v1/fleets/{fleet_id}/autonomy` | Apply a level and the per-action pins in one transaction: one click of the cursor. |
| `GET` | `/api/v1/fleets/{fleet_id}/boundary-violations` | Configured handovers from outside the fleet to a member it does not expose. |
| `GET` | `/api/v1/fleets/{fleet_id}/card` | The Fleet Card: what another fleet needs to call this one. |
| `GET` | `/api/v1/fleets/{fleet_id}/cost` | The cost of the runs attributed to the fleet over the last `days`, by agent. |
| `GET` | `/api/v1/fleets/{fleet_id}/documentation` | A fleet's documentation, built-in or custom; read only, starts no run. |
| `GET` | `/api/v1/fleets/{fleet_id}/documentation/datasheet.pdf` | The fleet's one-page A4 datasheet: the stored documentation and live state (automations, prerequisites, members) rendered server-side. |
| `POST` | `/api/v1/fleets/{fleet_id}/documentation/findings/{finding_id}/apply` | Apply a good-practice suggestion a person clicked; no model call. |
| `POST` | `/api/v1/fleets/{fleet_id}/documentation/findings/{finding_id}/dismiss` | Hide one configuration suggestion while its member is unchanged; no model call. |
| `POST` | `/api/v1/fleets/{fleet_id}/documentation/findings/dismiss` | Dismiss several suggestions, or every visible one (`ids` null), with an optional reason. |
| `POST` | `/api/v1/fleets/{fleet_id}/documentation/findings/restore` | Bring back dismissed suggestions, or every one (`ids` null); no model call. |
| `GET` | `/api/v1/fleets/{fleet_id}/documentation/history` | The versions of a fleet's documentation, current first, without their texts; read only. |
| `POST` | `/api/v1/fleets/{fleet_id}/documentation/prerequisites/confirm` | Confirm or undo one manual prerequisite of the About page; no model call. |
| `POST` | `/api/v1/fleets/{fleet_id}/documentation/regenerate` | Regenerate a fleet's documentation with AI and save it as its next version. |
| `POST` | `/api/v1/fleets/{fleet_id}/documentation/restore` | Bring a kept version of a fleet's documentation back as its next version; no model call. |
| `POST` | `/api/v1/fleets/{fleet_id}/documentation/restore-shipped` | Bring back a built-in fleet's shipped documentation as its next version; no model call. |
| `POST` | `/api/v1/fleets/{fleet_id}/enable` | Enable fleet: switch on the automations of the fleet that are off, the seeded fleet automations as `run_as_user_id` (the caller by default); every one, or the `assignment_ids` picked in the setup dialog (partial enable, #9173 S5). |
| `PUT` | `/api/v1/fleets/{fleet_id}/exposure` | Replace the exposed home members; answers the exposed ids, orchestrator first. |
| `GET` | `/api/v1/fleets/{fleet_id}/flow` | The fleet's data flow: what starts each home member, what it writes to. |
| `POST` | `/api/v1/fleets/{fleet_id}/fork` | Fork any fleet the caller sees, a built-in one included, as a personal copy. |
| `GET` | `/api/v1/fleets/{fleet_id}/graph` | The handover graph around the fleet, cross-fleet edges included. |
| `GET` | `/api/v1/fleets/{fleet_id}/health` | Whether the fleet is set up (`automations`: its automations, on and paused, #9566), then per member: enabled, last run, runs in flight, the run verdict (`run_outcome.member_verdict`: interruptions by the platform never count as failing), o… |
| `GET` | `/api/v1/fleets/{fleet_id}/hierarchy` | The declared tree of the home members, depth first, orchestrator first. |
| `PUT` | `/api/v1/fleets/{fleet_id}/instructions-position` | Set where a fleet's instructions put it on the four-level scale. |
| `GET` | `/api/v1/fleets/{fleet_id}/members` | The fleet's rows: home members, then connected agents and fleets. |
| `POST` | `/api/v1/fleets/{fleet_id}/members` | Add a home member (manage rights on the agent) or a connected agent or fleet (the right to see it). |
| `PATCH` | `/api/v1/fleets/{fleet_id}/members/{member_id}` | Move a member in the hierarchy, expose it, or edit a connected link. |
| `DELETE` | `/api/v1/fleets/{fleet_id}/members/{member_id}` | Remove a row. |
| `POST` | `/api/v1/fleets/{fleet_id}/members/{member_id}/instruction-draft` | An AI draft of a connected member's collaboration instruction, nothing saved. |
| `POST` | `/api/v1/fleets/{fleet_id}/members/{member_id}/move` | Move a home member to another fleet in one transaction. |
| `POST` | `/api/v1/fleets/{fleet_id}/members/bulk` | Set the member settings of several connected rows in one transaction. |
| `POST` | `/api/v1/fleets/{fleet_id}/pause` | Pause all: switch off every automation of the fleet that is on (`paused_reason = fleet_pause`), so Resume restores exactly those. |
| `POST` | `/api/v1/fleets/{fleet_id}/resume` | Resume: switch back on exactly the automations the fleet's Pause all switched off; one a person paused before, an emergency stop holds or the platform quarantined stays off. |
| `GET` | `/api/v1/fleets/{fleet_id}/run-estimate` | Expected runs per month of the fleet's home members, per organization of a scope. |
| `GET` | `/api/v1/fleets/{fleet_id}/source-changes` | Whether the source of a fork changed since the fork, and the structural diff. |
| `GET` | `/api/v1/fleets/{fleet_id}/spec` | The fleet spec (`xtm-one/fleet/v1`): members as agent bundles, no secrets. |
| `POST` | `/api/v1/fleets/{fleet_id}/unset` | Back to not set up: every automation of the fleet off, stamped `created_disabled` (one an emergency stop holds left as it is), so the fleet reads "Not set up". |
| `POST` | `/api/v1/fleets/apply` | Apply a fleet spec, idempotent by fleet slug and member key; `dry_run` by default. |
| `POST` | `/api/v1/fleets/bulk` | Pause all, Resume or set the autonomy level on several fleets at once. |
| `GET` | `/api/v1/fleets/by-agent/{agent_id}` | Where an agent sits: its home fleet and the fleets that connect it. |
| `POST` | `/api/v1/fleets/generate` | Create a fleet from a prompt, step one: a spec and its dry-run plan, nothing written. |

## Groups {#groups}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/groups` | List groups with member counts (any authenticated user). |
| `POST` | `/api/v1/groups` | Create a new user group (admin-only). |
| `GET` | `/api/v1/groups/{group_id}` | Get group details (admin-only). |
| `PUT` | `/api/v1/groups/{group_id}` | Update a group's name, description, quotas, AI switch or kind (admin-only). |
| `DELETE` | `/api/v1/groups/{group_id}` | Delete a group and clean up shared_group_ids references (admin-only). |
| `GET` | `/api/v1/groups/{group_id}/managers` | The group's managers (admin-only), by name. |
| `POST` | `/api/v1/groups/{group_id}/managers` | Elect one or more users manager of a group (admin-only). |
| `DELETE` | `/api/v1/groups/{group_id}/managers/{user_id}` | Remove a user from a group's managers (admin-only). |
| `GET` | `/api/v1/groups/{group_id}/members` | List group members with search, filters, sort and pagination (admin-only). |
| `POST` | `/api/v1/groups/{group_id}/members` | Add one or more users to a group (admin-only). |
| `DELETE` | `/api/v1/groups/{group_id}/members/{user_id}` | Remove a user from a group (admin-only). |
| `GET` | `/api/v1/groups/count` | How many groups match the filters of `GET /groups`: the table's total. |
| `GET` | `/api/v1/groups/managed` | The groups the caller manages, whose members' LLM Analytics they read. |

## HITL whitelist {#hitl-whitelist}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/hitl-whitelist` | The effective whitelist, with each entry attributed to its layer. |
| `POST` | `/api/v1/hitl-whitelist` | Exempt a tool from human approval. |
| `DELETE` | `/api/v1/hitl-whitelist/{tool_key}` | Re-gate a tool, so it pauses for approval again. |
| `GET` | `/api/v1/hitl-whitelist/catalog` | Every tool this deployment can name, and whether it pauses. |
| `POST` | `/api/v1/hitl-whitelist/platform-reads/{provider}/require-approval` | Re-gate every read tool one platform contributes. |
| `POST` | `/api/v1/hitl-whitelist/platform-reads/{provider}/restore-default` | Undo a bulk re-gate, returning this platform's reads to the default. |

## Hooks {#hooks}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/hooks` | List all registered webhook hooks (admin-only). |
| `POST` | `/api/v1/hooks` | Register a new webhook hook for platform events (admin-only). |
| `DELETE` | `/api/v1/hooks/{hook_id}` | Remove a registered webhook hook (admin-only). |
| `GET` | `/api/v1/hooks/events` | List all available event types that can be subscribed to. |

## Insights {#insights}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/insights/analytics/export` | The CSV of an analytics read (`query_platform_analytics`'s arguments, lists comma-separated). |
| `GET` | `/api/v1/insights/departments` | The department mapping (admin-only). |
| `PUT` | `/api/v1/insights/departments` | Replace the department mapping (admin-only). |
| `POST` | `/api/v1/insights/departments/directory` | Set people's directory department from an HR export, by email (admin-only). |
| `POST` | `/api/v1/insights/departments/history` | Resolve the department of every stored usage again from the current mapping (admin-only). |
| `GET` | `/api/v1/insights/departments/preview` | Who the saved mapping resolves to each department today, over the active people (admin-only). |

## Integrations {#integrations}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/integrations` |  |
| `POST` | `/api/v1/integrations` | Create a new integration with all credentials configured via the UI. |
| `GET` | `/api/v1/integrations/{integration_id}` | Get a single integration (must be own, group-shared, company-managed, or admin). |
| `PUT` | `/api/v1/integrations/{integration_id}` |  |
| `DELETE` | `/api/v1/integrations/{integration_id}` |  |
| `GET` | `/api/v1/integrations/{integration_id}/a2a-activity` | When THIS partner last submitted work through this integration. |
| `POST` | `/api/v1/integrations/{integration_id}/a2a-credential` | Generate, or rotate, the partner credential of an `oauth_a2a` integration. |
| `GET` | `/api/v1/integrations/{integration_id}/authorize` | Start OAuth flow using the integration's own client_id/client_secret. |
| `GET` | `/api/v1/integrations/{integration_id}/credentials` | Who connected their own account to a `per_user` integration (its managers). |
| `DELETE` | `/api/v1/integrations/{integration_id}/credentials/{user_id}` | Disconnect someone's own account from a `per_user` integration (its managers). |
| `GET` | `/api/v1/integrations/{integration_id}/elements` | List selectable elements for an integration (e.g. Teams channels, Slack channels, GitHub repos). |
| `GET` | `/api/v1/integrations/{integration_id}/email-signature` | The integration's Email signature setting and what it resolves to; 404 when it sends no email. |
| `GET` | `/api/v1/integrations/{integration_id}/exposure` | Every way this integration's credential reaches people, and why. |
| `GET` | `/api/v1/integrations/{integration_id}/github-webhooks` | Return the list of GitHub repo webhooks managed by this integration. |
| `POST` | `/api/v1/integrations/{integration_id}/github-webhooks` | Create a GitHub repository webhook pointing to this integration (or a specific assignment). |
| `DELETE` | `/api/v1/integrations/{integration_id}/github-webhooks/{hook_id}` | Delete a managed GitHub repository webhook. |
| `POST` | `/api/v1/integrations/{integration_id}/lmstudio/downloads` | Start downloading a model onto the server; its job, to follow with the status route. |
| `GET` | `/api/v1/integrations/{integration_id}/lmstudio/downloads/{job_id}` | Where a download stands. |
| `POST` | `/api/v1/integrations/{integration_id}/lmstudio/llm-provider` | Create the platform LM Studio provider from this integration, or adopt an unlinked one. |
| `DELETE` | `/api/v1/integrations/{integration_id}/lmstudio/llm-provider/{config_id}` | Stop feeding the provider from this integration: it refuses every request until fed again. |
| `PUT` | `/api/v1/integrations/{integration_id}/lmstudio/llm-provider/{config_id}/models` | The models the platform provider fed by this integration offers. |
| `GET` | `/api/v1/integrations/{integration_id}/lmstudio/models` | The models on the server, each with its loaded instances and whether the platform offers it. |
| `POST` | `/api/v1/integrations/{integration_id}/lmstudio/models/load` | Load a model into the server's memory, with its load options. |
| `POST` | `/api/v1/integrations/{integration_id}/lmstudio/models/unload` | Unload one loaded instance. |
| `GET` | `/api/v1/integrations/{integration_id}/lmstudio/overview` | How the server is reached, and the platform provider this integration feeds. |
| `DELETE` | `/api/v1/integrations/{integration_id}/my-credential` | Disconnect the caller's own account from a `per_user` integration. |
| `GET` | `/api/v1/integrations/{integration_id}/openapi` | The integration's spec: source, operations (with selection), auth option. |
| `PUT` | `/api/v1/integrations/{integration_id}/openapi` | Replace the spec with a new URL or file (and a new selection). |
| `PUT` | `/api/v1/integrations/{integration_id}/openapi/client-certificate` | Set (or replace) the client certificate every call presents. |
| `DELETE` | `/api/v1/integrations/{integration_id}/openapi/client-certificate` | Stop presenting a client certificate. |
| `DELETE` | `/api/v1/integrations/{integration_id}/openapi/device/{flow_id}` | Abandon a pending device-code sign-in. |
| `POST` | `/api/v1/integrations/{integration_id}/openapi/device/poll` | Whether the user entered the device code and approved the sign-in. |
| `PUT` | `/api/v1/integrations/{integration_id}/openapi/operations` | Choose which operations are tools (no re-import needed). |
| `POST` | `/api/v1/integrations/{integration_id}/openapi/refresh` | Re-fetch a URL-sourced spec, keeping the selection and the auth option. |
| `GET` | `/api/v1/integrations/{integration_id}/opencrq/compatibility` | The version the OpenCRQ reported, the state of its manifest, the tools it hides and the fields it refuses. |
| `GET` | `/api/v1/integrations/{integration_id}/openrouter/activity` | Spend per day, model and provider over the last 30 completed UTC days (management key). |
| `GET` | `/api/v1/integrations/{integration_id}/openrouter/keys` |  |
| `POST` | `/api/v1/integrations/{integration_id}/openrouter/keys` | Create an API key on the account. |
| `PATCH` | `/api/v1/integrations/{integration_id}/openrouter/keys/{key_hash}` | Rename, disable, re-limit a key. |
| `DELETE` | `/api/v1/integrations/{integration_id}/openrouter/keys/{key_hash}` |  |
| `POST` | `/api/v1/integrations/{integration_id}/openrouter/llm-provider` | Create the platform OpenRouter provider from this integration, or adopt one. |
| `DELETE` | `/api/v1/integrations/{integration_id}/openrouter/llm-provider/{config_id}` | Stop feeding the provider from this integration; it keeps its key and models. |
| `PUT` | `/api/v1/integrations/{integration_id}/openrouter/llm-provider/{config_id}/models` | The models the platform provider fed by this integration offers. |
| `GET` | `/api/v1/integrations/{integration_id}/openrouter/model-endpoints` | The providers serving `model_id`, with their price, uptime and speed. |
| `GET` | `/api/v1/integrations/{integration_id}/openrouter/models` | The models the integration's key may use: text models, or embedding models. |
| `GET` | `/api/v1/integrations/{integration_id}/openrouter/overview` | The key's limit and spend, the account's credits, and the providers this integration feeds. |
| `POST` | `/api/v1/integrations/{integration_id}/supabase/probe` | The projects, roles, connections, databases and functions a database role is set from. |
| `POST` | `/api/v1/integrations/{integration_id}/test` | Quick connectivity test for an integration. |
| `POST` | `/api/v1/integrations/{integration_id}/test-tool` | Test a single integration tool by executing it with provided arguments. |
| `GET` | `/api/v1/integrations/{integration_id}/tools` | List available tools for an integration (based on its provider). |
| `GET` | `/api/v1/integrations/{integration_id}/whatsapp/pairing` | The live pairing state of the gateway, its login QR and the webhook path for a manager. |
| `DELETE` | `/api/v1/integrations/admin/custom/{provider_key}` | Uninstall an imported custom provider and clean dependent integrations. |
| `PUT` | `/api/v1/integrations/admin/custom/{provider_key}/enabled/{enabled}` | Enable or disable an imported custom provider in the catalog. |
| `GET` | `/api/v1/integrations/admin/export/{provider_key}` | Export a native or imported integration provider as a ZIP bundle. |
| `POST` | `/api/v1/integrations/admin/import` | Import a custom integration provider from a ZIP bundle. |
| `POST` | `/api/v1/integrations/admin/import/validate` | Validate an integration bundle ZIP and return metadata preview. |
| `GET` | `/api/v1/integrations/catalog` | List available provider types. |
| `GET` | `/api/v1/integrations/events` | List all available integration events grouped by provider. |
| `POST` | `/api/v1/integrations/exposure/preview` | Whose stored credentials the proposed change lets new people act with. |
| `GET` | `/api/v1/integrations/exposure/summary` | How many ways each integration the caller manages is shared (list cards). |
| `GET` | `/api/v1/integrations/notifications/linkedin` | Handle LinkedIn webhook challenge-response validation. |
| `POST` | `/api/v1/integrations/notifications/linkedin` | Receive LinkedIn Organization Social Action webhook notifications. |
| `POST` | `/api/v1/integrations/notifications/microsoft` | Receive Microsoft Graph change notifications (webhooks). |
| `POST` | `/api/v1/integrations/notifications/slack` | Receive Slack Events API notifications for integration-level events. |
| `POST` | `/api/v1/integrations/openapi/oauth/implicit` | Store the token of an OAuth2 implicit sign-in. |
| `POST` | `/api/v1/integrations/openapi/preview` | Parse a Swagger / OpenAPI document (JSON or YAML) and list its operations. |
| `GET` | `/api/v1/integrations/per-user-readiness` | Report, per provider, whether "resolved per user at runtime" will work. |
| `GET` | `/api/v1/integrations/types` | List integration categories (email, calendar, messaging, etc.). |

## Intents {#intents}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/intents` | List all intents with optional filters. |
| `POST` | `/api/v1/intents` | Create a custom intent (admin only). |
| `GET` | `/api/v1/intents/{intent_id}` | Get a single intent with its bindings. |
| `PUT` | `/api/v1/intents/{intent_id}` | Update intent metadata (admin only). |
| `DELETE` | `/api/v1/intents/{intent_id}` | Delete an unused intent (admin only). |
| `PUT` | `/api/v1/intents/{intent_id}/bind` | Upsert an intent binding. |
| `DELETE` | `/api/v1/intents/{intent_id}/bind/{binding_id}` | Remove an intent binding. |
| `GET` | `/api/v1/intents/catalog` | Return a lean intent catalog scoped to agents visible to the current user. |
| `GET` | `/api/v1/verticals` | List all verticals with binding counts. |
| `POST` | `/api/v1/verticals` | Create a custom vertical (admin only). |
| `PUT` | `/api/v1/verticals/{vertical_id}` | Rename a vertical (admin only). |
| `DELETE` | `/api/v1/verticals/{vertical_id}` | Delete a vertical (blocked if in use by bindings). |

## Invitations {#invitations}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/invitations` | List pending invitations (admin-only). |
| `POST` | `/api/v1/invitations` | Generate a single-use, email-bound invitation link (admin-only). |
| `DELETE` | `/api/v1/invitations/{invitation_id}` | Revoke a pending invitation by id (admin-only). |
| `GET` | `/api/v1/invitations/validate/{token}` | Validate an invitation token; return its bound email + role (no auth). |

## Knowledge bases {#knowledge-bases}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/knowledge-bases` |  |
| `POST` | `/api/v1/knowledge-bases` |  |
| `GET` | `/api/v1/knowledge-bases/{kb_id}` |  |
| `PUT` | `/api/v1/knowledge-bases/{kb_id}` |  |
| `DELETE` | `/api/v1/knowledge-bases/{kb_id}` |  |
| `GET` | `/api/v1/knowledge-bases/{kb_id}/activity` | List activity logs for a knowledge base (most recent first). |
| `GET` | `/api/v1/knowledge-bases/{kb_id}/activity/count` | Return the total number of activity logs matching the given filters. |
| `GET` | `/api/v1/knowledge-bases/{kb_id}/documents` |  |
| `GET` | `/api/v1/knowledge-bases/{kb_id}/documents/{doc_id}` | Return one document with its complete, verbatim stored source. |
| `PUT` | `/api/v1/knowledge-bases/{kb_id}/documents/{doc_id}` | Replace (or append to) a document's source and re-embed it. |
| `DELETE` | `/api/v1/knowledge-bases/{kb_id}/documents/{doc_id}` |  |
| `GET` | `/api/v1/knowledge-bases/{kb_id}/documents/{doc_id}/download` | Download the stored content of a document as a file. |
| `POST` | `/api/v1/knowledge-bases/{kb_id}/documents/{doc_id}/reprocess` | Re-enqueue a single document for embedding. |
| `GET` | `/api/v1/knowledge-bases/{kb_id}/documents/count` | Return the total number of documents in a knowledge base. |
| `POST` | `/api/v1/knowledge-bases/{kb_id}/documents/crawl` | Crawl a URL, extract text, and add as a document to the knowledge base. |
| `POST` | `/api/v1/knowledge-bases/{kb_id}/documents/reprocess` | Re-enqueue KB documents for embedding. |
| `POST` | `/api/v1/knowledge-bases/{kb_id}/documents/text` | Add a text or markdown document to the knowledge base. |
| `POST` | `/api/v1/knowledge-bases/{kb_id}/documents/upload` | Upload a file to the knowledge base. |
| `GET` | `/api/v1/knowledge-bases/{kb_id}/embedding-stats` | List stored embedding stats grouped by provider+model+dimension. |
| `DELETE` | `/api/v1/knowledge-bases/{kb_id}/embeddings/dimension/{dimension}` | Delete KB embeddings for a dimension (optionally scoped by provider/model). |
| `POST` | `/api/v1/knowledge-bases/{kb_id}/export` | Export a knowledge base to one or multiple ZIP package parts. |
| `GET` | `/api/v1/knowledge-bases/{kb_id}/exports` | List active export packages generated by the current user for a KB. |
| `GET` | `/api/v1/knowledge-bases/{kb_id}/sync-sources` | List all configured sync sources for a knowledge base. |
| `POST` | `/api/v1/knowledge-bases/{kb_id}/sync-sources` | Create a new sync source with optional schedule. |
| `PUT` | `/api/v1/knowledge-bases/{kb_id}/sync-sources/{source_id}` | Update a sync source configuration or schedule. |
| `DELETE` | `/api/v1/knowledge-bases/{kb_id}/sync-sources/{source_id}` | Remove a sync source. |
| `POST` | `/api/v1/knowledge-bases/{kb_id}/sync-sources/{source_id}/force-resync` | Force re-sync: reset stuck status, purge synced documents, start fresh. |
| `POST` | `/api/v1/knowledge-bases/{kb_id}/sync-sources/{source_id}/trigger` | Manually trigger a configured sync source (runs in background). |
| `POST` | `/api/v1/knowledge-bases/{kb_id}/sync/github` | Import files from a GitHub repository into the knowledge base. |
| `POST` | `/api/v1/knowledge-bases/{kb_id}/sync/google-drive` | Import files from Google Drive into the knowledge base. |
| `POST` | `/api/v1/knowledge-bases/{kb_id}/sync/microsoft-drive` | Import files from OneDrive or SharePoint into the knowledge base. |
| `POST` | `/api/v1/knowledge-bases/{kb_id}/sync/notion` | Import pages from Notion into the knowledge base. |
| `POST` | `/api/v1/knowledge-bases/{kb_id}/test-search` | Test RAG search against this knowledge base. |
| `GET` | `/api/v1/knowledge-bases/exports/{package_id}/download` | Serve an exported KB package part as an authenticated ZIP download. |
| `GET` | `/api/v1/knowledge-bases/global/documents` | Every document of the knowledge bases the caller sees, one page at a time. |
| `POST` | `/api/v1/knowledge-bases/global/reprocess-stale` | Re-enqueue all documents in KBs that have stale embedding tuples. |
| `POST` | `/api/v1/knowledge-bases/global/test-search` | Test semantic search against currently visible KBs, optionally filtered by IDs. |
| `POST` | `/api/v1/knowledge-bases/import` | Import a KB package ZIP (single or multipart) with zip-bomb defenses. |

## Learning {#learning}

| Method | Path | What it does |
| --- | --- | --- |
| `POST` | `/api/v1/learning/email-style` | Analyze sent emails to learn the user's writing style. |
| `POST` | `/api/v1/learning/ingest` | Ingest documents into a knowledge base or agent's vector store. |

## MCP servers {#mcp-servers}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/mcp-servers` | List MCP servers visible to the current user (own + group-shared + company-managed). |
| `POST` | `/api/v1/mcp-servers` | Create a new MCP server configuration. |
| `GET` | `/api/v1/mcp-servers/{server_id}` | Get a single MCP server (must be own, group-shared, company-managed, or admin). |
| `PUT` | `/api/v1/mcp-servers/{server_id}` | Update an MCP server (creator or admin only). |
| `DELETE` | `/api/v1/mcp-servers/{server_id}` | Delete an MCP server (creator or admin only). |
| `GET` | `/api/v1/mcp-servers/{server_id}/authorize` | Start the OAuth authorization-code flow for an MCP server. |
| `GET` | `/api/v1/mcp-servers/{server_id}/export` | Export an MCP server as a portable JSON bundle. |
| `DELETE` | `/api/v1/mcp-servers/{server_id}/my-credential` | Disconnect one's own account from a `per_user` MCP server (idempotent). |
| `POST` | `/api/v1/mcp-servers/{server_id}/refresh-tools` | Connect to the MCP server, rediscover tools, and persist them. |
| `POST` | `/api/v1/mcp-servers/{server_id}/test` | Test connectivity to an MCP server and persist discovered tools. |
| `POST` | `/api/v1/mcp-servers/{server_id}/test-tool` | Test a single MCP tool by executing it with provided arguments. |
| `POST` | `/api/v1/mcp-servers/import` | Import an MCP server from an export bundle. |
| `POST` | `/api/v1/mcp-servers/import/config` | Create the servers the user picked out of a previewed configuration. |
| `POST` | `/api/v1/mcp-servers/import/config/preview` | Read a configuration document and report what could be imported. |
| `POST` | `/api/v1/mcp-servers/oauth/discover` | Probe a remote MCP server for its OAuth metadata. |

## Notifications {#notifications}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/notifications` | The person's notifications: waiting ones first, then the newest. |
| `POST` | `/api/v1/notifications/{notification_id}/dismiss` | Mark one notification read. |
| `POST` | `/api/v1/notifications/read` |  |

## Nova rules {#nova-rules}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/nova-rules` | List Nova rules visible to the caller (own + group-shared + company). |
| `POST` | `/api/v1/nova-rules` | Create a Nova rule (admins only for company-managed). |
| `GET` | `/api/v1/nova-rules/{rule_id}` | Get a single Nova rule (own, group-shared, company-managed, or admin). |
| `PUT` | `/api/v1/nova-rules/{rule_id}` | Update a Nova rule (creator or admin only). |
| `DELETE` | `/api/v1/nova-rules/{rule_id}` | Delete a Nova rule (creator or admin only). |
| `GET` | `/api/v1/nova-rules/engine-status` | Which rule tiers can actually fire, and on which models. |
| `PUT` | `/api/v1/nova-rules/models` | Set the models the semantics:/llm: tiers use (admin). |
| `GET` | `/api/v1/nova-rules/sources` | List the Nova rule-sync sources (admin). |
| `PUT` | `/api/v1/nova-rules/sources/{source_id}` | Update a source's sync interval / enabled flag (admin). |
| `POST` | `/api/v1/nova-rules/sources/{source_id}/sync` | Run a source's sync immediately (admin). |
| `POST` | `/api/v1/nova-rules/validate` | Dry-parse a `.nov` rule for live builder feedback (no write). |

## OAuth {#oauth}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/oauth/callback` | Unified OAuth callback for all providers and entity types. |

## Organization context {#organization-context}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/organization-context` | The current profile (empty with every field missing before the first save). |
| `PUT` | `/api/v1/organization-context` | Save body.profile as the next version (administrators); 422 names the bad field. |
| `POST` | `/api/v1/organization-context/ai-draft` | Per-field proposals from a model over the inputs given (administrators); nothing is saved. |
| `POST` | `/api/v1/organization-context/assets/import` | Assets and exposure from a CSV (administrators, #11543): a preview, then `apply=true` saves. |
| `POST` | `/api/v1/organization-context/draft` | Propose a profile from what OpenCTI, OpenAEV and OpenCRQ hold (administrators). |
| `GET` | `/api/v1/organization-context/enterprise-knowledge` | The knowledge bases the profile links as enterprise knowledge, each readable or not for the caller. |
| `POST` | `/api/v1/organization-context/fill-agent` | An agent that fills the assets from one connected integration, and its optional sync. |
| `POST` | `/api/v1/organization-context/import/apply` | Import one section from one platform and save the next profile version. |
| `GET` | `/api/v1/organization-context/import/options` | The values each import filter offers in that platform, so the dialog picks instead of typing. |
| `POST` | `/api/v1/organization-context/import/preview` | What importing one section from one platform would do, before anything is written. |
| `GET` | `/api/v1/organization-context/import/sources` | Which platform can feed each profile section for this administrator, and why not. |
| `GET` | `/api/v1/organization-context/injection` | The platform default of the cascade assignment > agent > platform. |
| `PUT` | `/api/v1/organization-context/injection` | Turn the organization summary on or off for every agent that inherits (administrators, audited). |
| `POST` | `/api/v1/organization-context/opencrq-sync` | Reconcile the crown jewels with OpenCRQ's supporting assets both ways (administrators). |
| `GET` | `/api/v1/organization-context/pirs` | The connected OpenCTI's PIRs, by name, for the PIR picker (administrators). |
| `GET` | `/api/v1/organization-context/proposals` | The changes proposed from chat, newest first (administrators; #9484, S-a2). |
| `POST` | `/api/v1/organization-context/proposals/{proposal_id}/decide` | Accept the named entries of a pending proposal, or reject it with none (administrators). |
| `GET` | `/api/v1/organization-context/readers` | The fleets and seeded agents that read each part of the profile. |
| `GET` | `/api/v1/organization-context/setup-prompt` | Whether the first-login organization setup is proposed to the caller. |
| `POST` | `/api/v1/organization-context/setup-prompt` | Record the instance's answer to the setup proposal, once (administrators, audited). |
| `GET` | `/api/v1/organization-context/syncs` | The scheduled syncs of the profile sections, global first. |
| `POST` | `/api/v1/organization-context/syncs` | Keep one section in sync with one platform on a schedule, or schedule them all. |
| `PUT` | `/api/v1/organization-context/syncs/{sync_id}` | Change a sync; saving it again also resumes a paused one with this administrator's token. |
| `DELETE` | `/api/v1/organization-context/syncs/{sync_id}` | Stop and remove a sync; the profile rows it wrote stay. |
| `POST` | `/api/v1/organization-context/syncs/{sync_id}/run` | Run a sync now, outside its schedule; its next scheduled run is unchanged. |
| `GET` | `/api/v1/organization-context/versions` | The saved versions, newest first (administrators). |

## Organizations {#organizations}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/organizations` | The primary organization first, then the tracked ones by name. |
| `POST` | `/api/v1/organizations` | Add a tracked organization (administrators); monitoring starts off. |
| `PATCH` | `/api/v1/organizations/{organization_id}` | Edit an organization (administrators); the primary keeps its role and no relationship. |
| `POST` | `/api/v1/organizations/{organization_id}/archive` | Archive a tracked organization (administrators): kept with its versions, out of the list. |
| `GET` | `/api/v1/organizations/{organization_id}/context` | The current profile of one organization (empty, every field missing, before its first save). |
| `PUT` | `/api/v1/organizations/{organization_id}/context` | Save the next version of one organization's profile (administrators); 422 names the bad field. |
| `POST` | `/api/v1/organizations/{organization_id}/opencti-identity` | Link a tracked organization to its OpenCTI Organization (administrators). |
| `GET` | `/api/v1/organizations/{organization_id}/run-estimate` | Expected runs per month before monitoring is switched on (administrators, M6). |
| `GET` | `/api/v1/organizations/opencti-identities` | OpenCTI Organizations matching search by name or alias, exact matches first (administrators). |
| `GET` | `/api/v1/organizations/opencti-identities/{identity_id}` | One OpenCTI Organization by id, so a linked organization is named, never shown as its id (administrators). |
| `POST` | `/api/v1/organizations/opencti-pirs` | Plan the PIRs of the tracked organizations (D2 = A); `apply` writes them and each profile's `pir_ids`. |
| `POST` | `/api/v1/organizations/tracked/ai-draft` | Draft tracked organizations with a model (administrators); nothing is created. |
| `GET` | `/api/v1/organizations/tracked/ai-draft/{proposal_id}` | One tracked-organizations draft by its proposal id, for the review page (administrators). |

## Panic {#panic}

| Method | Path | What it does |
| --- | --- | --- |
| `POST` | `/api/v1/panic/emergency` | Press the emergency stop with the API token — no session needed. |
| `POST` | `/api/v1/panic/resume` | Re-enable what an emergency stop paused in scope (and, for the platform scope, lift the AI kill switch). |
| `GET` | `/api/v1/panic/status` | What a resume would touch — lets the menu offer "resume" only when relevant. |
| `POST` | `/api/v1/panic/stop` | Halt every agentic activity in scope and pause its assignments. |
| `POST` | `/api/v1/panic/stop/{audit_id}/reason` | Record why a stop was pressed, after the fact. |
| `GET` | `/api/v1/panic/token` | Whether an emergency stop API token exists (never the token itself). |
| `POST` | `/api/v1/panic/token` | Generate — or rotate — the emergency stop API token (admin only). |
| `DELETE` | `/api/v1/panic/token` | Revoke the emergency stop API token (admin only). |

## Platform {#platform}

| Method | Path | What it does |
| --- | --- | --- |
| `POST` | `/api/v1/platform/access-notices` | Tell the recipient that the calling platform gave them access to scope_name. |
| `POST` | `/api/v1/platform/autonomous/runs` | Enqueue a durable autonomous attack-path orchestration run. |
| `POST` | `/api/v1/platform/autonomous/runs/{openaev_run_id}/cancel` | Terminally stop a running / parked autonomous run's orchestration. |
| `POST` | `/api/v1/platform/autonomous/runs/{openaev_run_id}/wake` | Wake a parked autonomous run (event-driven resume from OpenAEV). |
| `GET` | `/api/v1/platform/branding/asset/{kind}` | Return the raw bytes of an admin-uploaded branding asset. |
| `GET` | `/api/v1/platform/chat/agents` | List agents available for platform chat. |
| `GET` | `/api/v1/platform/chat/artifacts/{kind}/{artifact_id}` | A deck, report or video an answer showed, described as of now. |
| `POST` | `/api/v1/platform/chat/artifacts/{kind}/{artifact_id}/download` | The file of a deck, report or video an answer showed. |
| `GET` | `/api/v1/platform/chat/conversation-references` | The web chat's `GET /chat/conversation-references`, for the panel. |
| `POST` | `/api/v1/platform/chat/conversations/{conversation_id}/messages/{message_id}/feedback` | Rate an answer of the embedded chat: the web chat's thumbs. |
| `DELETE` | `/api/v1/platform/chat/conversations/{conversation_id}/messages/{message_id}/feedback` | Retract the caller's rating of an answer; nothing to retract is a 204 too. |
| `GET` | `/api/v1/platform/chat/conversations/{conversation_id}/pending-approvals` | What a paused turn in this conversation is still waiting on. |
| `POST` | `/api/v1/platform/chat/messages` | Send a message as the authenticated user and get the agent's streamed response. |
| `POST` | `/api/v1/platform/chat/messages/approve` | Answer a running turn that paused for tool approval, or for a page's answer. |
| `POST` | `/api/v1/platform/chat/messages/steer` | Inject a user message into a conversation's RUNNING agent loop. |
| `GET` | `/api/v1/platform/chat/prompts` | The prompts the embedded chat's picker offers. |
| `GET` | `/api/v1/platform/chat/quota` | The caller's agentic quota, for the embedded chat's quota indicator. |
| `GET` | `/api/v1/platform/chat/sessions` | List the caller's platform-chat conversations (chatbot history menu). |
| `POST` | `/api/v1/platform/chat/sessions` | Create or retrieve a chat session for the authenticated user. |
| `PATCH` | `/api/v1/platform/chat/sessions/{conversation_id}` | Rename an embedded-chat conversation, or file it into a workspace. |
| `DELETE` | `/api/v1/platform/chat/sessions/{conversation_id}` | Remove a conversation from the chatbot history menu. |
| `GET` | `/api/v1/platform/chat/suggestions` | Suggested opening actions for the embedded chat welcome screen. |
| `GET` | `/api/v1/platform/chat/workspaces` | The caller's workspaces, archived ones left out (they take no conversation). |
| `POST` | `/api/v1/platform/chat/workspaces` | Create a personal workspace for the caller. |
| `PATCH` | `/api/v1/platform/chat/workspaces/{workspace_id}` | Rename a workspace, or change its description (whoever may manage it). |
| `DELETE` | `/api/v1/platform/chat/workspaces/{workspace_id}` | Delete a workspace: its conversations are kept, in no workspace. |
| `GET` | `/api/v1/platform/config` | Return platform mode, branding, license status, and feature flags. |
| `GET` | `/api/v1/platform/manifest.webmanifest` | Return a dynamic Web App Manifest reflecting current branding settings. |
| `GET` | `/api/v1/platform/mcp-servers` | Describe the MCP servers XTM One hosts. |
| `POST` | `/api/v1/platform/mcp-servers/xtm/package` | Download an installer package for the `/mcp/xtm` server. |
| `POST` | `/api/v1/platform/mcp-servers/xtm/snippet` | Config fragment for a client that installs by file, not by package. |
| `POST` | `/api/v1/platform/register` | Register an OpenCTI, OpenAEV, or OpenCRQ platform with XTM One. |
| `DELETE` | `/api/v1/platform/register/{platform_identifier}` | Unregister a platform. |
| `GET` | `/api/v1/platform/registration-token` | Return the platform registration token and its state. |
| `GET` | `/api/v1/platform/registrations` | List all registered platforms. |
| `PATCH` | `/api/v1/platform/registrations/{registration_id}/approval` | Decide whether a registered platform's tools ask for approval. |
| `DELETE` | `/api/v1/platform/registrations/{registration_id}/purge` | Purge a platform registration and ALL integrations for ALL users of that provider. |

## Presentations {#presentations}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/presentations` | The decks visible to the caller, a page at a time, the last changed first. |
| `GET` | `/api/v1/presentations/{presentation_id}` | Return one deck's spec plus its resolved template theme overrides. |
| `PATCH` | `/api/v1/presentations/{presentation_id}` | Edit a deck's content (validated pieces) and / or its sharing. |
| `DELETE` | `/api/v1/presentations/{presentation_id}` | Delete a deck (owner, `config` grantee, or admin). |
| `GET` | `/api/v1/presentations/{presentation_id}/clicker` | Who presents the deck and who holds its clicker. |
| `PUT` | `/api/v1/presentations/{presentation_id}/clicker` | Hand the clicker to a person who can already read the deck. |
| `DELETE` | `/api/v1/presentations/{presentation_id}/clicker` | Take the clicker back (presenter) or give it back (holder). |
| `POST` | `/api/v1/presentations/{presentation_id}/clicker/command` | The holder moves the presenter's deck: next, previous or a slide. |
| `GET` | `/api/v1/presentations/{presentation_id}/comments` | Every comment on the deck, oldest first; threads are rebuilt client-side. |
| `POST` | `/api/v1/presentations/{presentation_id}/comments` | Leave a review note on a slide (or on the whole deck), or reply to one. |
| `PATCH` | `/api/v1/presentations/{presentation_id}/comments/{comment_id}` | Edit a comment's text and / or resolve or reopen its thread. |
| `DELETE` | `/api/v1/presentations/{presentation_id}/comments/{comment_id}` | Delete a comment (author or deck manager); deleting a root takes its replies. |
| `POST` | `/api/v1/presentations/{presentation_id}/comments/draft` | Draft a review note with the caller's model — "Generate with AI" in the composer. |
| `POST` | `/api/v1/presentations/{presentation_id}/duplicate` | Copy a deck the caller can read into a new deck they own. |
| `POST` | `/api/v1/presentations/{presentation_id}/export` | Render the deck server-side and return it as a PDF or PPTX download. |
| `POST` | `/api/v1/presentations/{presentation_id}/layout-check` | Render the deck headless and report what the audience would see go wrong. |
| `GET` | `/api/v1/presentations/{presentation_id}/package` | Download the deck as a portable JSON package (`<title>.presentation.json`). |
| `GET` | `/api/v1/presentations/{presentation_id}/polls` | The live state and results of every poll of the deck, for anyone who can read it. |
| `POST` | `/api/v1/presentations/{presentation_id}/polls/{poll_id}/control` | Open a question, lock, reveal or reset a poll (owner or editor). |
| `POST` | `/api/v1/presentations/{presentation_id}/presence` | Say "I have this deck open" and get back who else does. |
| `DELETE` | `/api/v1/presentations/{presentation_id}/presence` | Leave the room now rather than after the TTL (viewer closed). |
| `GET` | `/api/v1/presentations/{presentation_id}/public-link` | The deck's public link, for whoever may share the deck (owner, editor, admin). |
| `POST` | `/api/v1/presentations/{presentation_id}/public-link` | Turn the deck's public link on, or hand back the one it has. |
| `PATCH` | `/api/v1/presentations/{presentation_id}/public-link` | What the deck's public link offers besides the slides: its PDF download. |
| `DELETE` | `/api/v1/presentations/{presentation_id}/public-link` | Turn the deck's public link off: its URL stops answering at once. |
| `GET` | `/api/v1/presentations/{presentation_id}/render-asset/{file_id}` | One file the deck references, for the static render page (render token only). |
| `GET` | `/api/v1/presentations/{presentation_id}/render-polls` | The live polls of the deck as the export snapshots them (render token only, #10157). |
| `GET` | `/api/v1/presentations/{presentation_id}/render-spec` | The deck as the static render page consumes it (render token only). |
| `POST` | `/api/v1/presentations/{presentation_id}/slide-layout` | Rebuild ONE slide as another layout, deterministically. |
| `GET` | `/api/v1/presentations/{presentation_id}/versions` | The deck's revision history, newest first — headlines only, no specs. |
| `GET` | `/api/v1/presentations/{presentation_id}/versions/{revision}` | One version WITH its spec — what the history panel previews. |
| `POST` | `/api/v1/presentations/{presentation_id}/versions/{revision}/restore` | Bring a past revision back as a NEW revision (never a rewind). |
| `POST` | `/api/v1/presentations/import` | Create a deck owned by the caller from an exported package. |
| `GET` | `/api/v1/presentations/segment-counts` | How many decks each visibility segment holds under the list's other filters. |
| `GET` | `/api/v1/public/polls/{code}` | The open question of one poll (and its results when the presenter shows them). |
| `POST` | `/api/v1/public/polls/{code}/votes` | One anonymous answer; a second answer from the same device to the same question is ignored. |
| `GET` | `/api/v1/public/presentations/{token}` | The deck a public link opens: its slides as the audience sees them, without speaker notes. |
| `GET` | `/api/v1/public/presentations/{token}/assets/{file_id}` | One picture or logo the deck shows, iff the deck references it. |
| `GET` | `/api/v1/public/presentations/{token}/pdf` | The PDF of the deck as the link shows it, iff the link offers a download. |

## Prompts {#prompts}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/prompts` | List prompts visible to the current user (own + group-shared + company-managed). |
| `POST` | `/api/v1/prompts` | Create a new prompt. |
| `GET` | `/api/v1/prompts/{prompt_id}` | Get a single prompt (must be own, group-shared, company-managed, or admin). |
| `PUT` | `/api/v1/prompts/{prompt_id}` | Update a prompt (creator or admin only). |
| `DELETE` | `/api/v1/prompts/{prompt_id}` | Delete a prompt (creator or admin only). |
| `GET` | `/api/v1/prompts/{prompt_id}/export` | Export a prompt as a portable JSON bundle. |
| `GET` | `/api/v1/prompts/{prompt_id}/versions` | List prompt versions ordered by latest first. |
| `GET` | `/api/v1/prompts/{prompt_id}/versions/{version_number}` | Get a specific prompt version by number. |
| `DELETE` | `/api/v1/prompts/{prompt_id}/versions/{version_number}` | Delete a prompt version. |
| `POST` | `/api/v1/prompts/{prompt_id}/versions/{version_number}/lock` | Lock a prompt version to protect it from deletion. |
| `POST` | `/api/v1/prompts/{prompt_id}/versions/{version_number}/rollback` | Rollback prompt content to a previous version as a new head version. |
| `POST` | `/api/v1/prompts/{prompt_id}/versions/{version_number}/unlock` | Unlock a prompt version. |
| `GET` | `/api/v1/prompts/{prompt_id}/versions/diff` | Compute line-by-line diff between two prompt versions. |
| `POST` | `/api/v1/prompts/import` | Import a prompt from an export bundle. |

## Public chat {#public-chat}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/public/chat/{web_token}/config` | Return public info about the agent (no auth required). |
| `POST` | `/api/v1/public/chat/{web_token}/sessions` | Create a new anonymous chat session with the agent. |
| `GET` | `/api/v1/public/chat/{web_token}/sessions/{session_id}` | Return all messages for an existing session. |
| `POST` | `/api/v1/public/chat/{web_token}/sessions/{session_id}/files` | Attach a file to this widget session, when the widget allows it. |
| `GET` | `/api/v1/public/chat/{web_token}/sessions/{session_id}/files/{file_id}` | Download a file an answer of this widget session showed. |
| `GET` | `/api/v1/public/chat/{web_token}/sessions/{session_id}/images/{image_id}` | Serve an image the platform generated for this widget session. |
| `POST` | `/api/v1/public/chat/{web_token}/sessions/{session_id}/messages` | Send a message in a public chat session and get the agent's response. |
| `POST` | `/api/v1/public/chat/{web_token}/sessions/{session_id}/messages/stream` | Send a message with SSE streaming — tokens arrive as they are generated. |
| `GET` | `/api/v1/public/chat/{web_token}/visitor/{visitor_id}/latest` | Find the most recent session for a returning visitor. |
| `GET` | `/api/v1/public/logo.svg` | Serve the Filigran logo for the widget button. |
| `GET` | `/api/v1/public/widget.js` | Serve the embeddable chat widget script. |

## Relays {#relays}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/relays/{relay_id}` |  |
| `PATCH` | `/api/v1/relays/{relay_id}` |  |
| `DELETE` | `/api/v1/relays/{relay_id}` |  |
| `POST` | `/api/v1/relays/{relay_id}/revoke` | Revoke a relay's credential now; its socket is closed after the commit. |
| `DELETE` | `/api/v1/relays/enrollment-keys/{key_id}` |  |
| `POST` | `/api/v1/relays/frames` | Response frames from a long-polling relay (concatenated, each with `len`). |
| `GET` | `/api/v1/relays/groups` |  |
| `POST` | `/api/v1/relays/groups` | Create a relay group (admins only: a group names a customer network). |
| `GET` | `/api/v1/relays/groups/{group_id}` |  |
| `PATCH` | `/api/v1/relays/groups/{group_id}` |  |
| `DELETE` | `/api/v1/relays/groups/{group_id}` | Delete a group and its relays; refused while anything routes through it. |
| `GET` | `/api/v1/relays/groups/{group_id}/enrollment-keys` |  |
| `POST` | `/api/v1/relays/groups/{group_id}/enrollment-keys` | Create an enrollment key for the group. |
| `GET` | `/api/v1/relays/groups/{group_id}/relays` |  |
| `GET` | `/api/v1/relays/groups/{group_id}/requests` | The request log of a group: metadata only, never a header or a body. |
| `GET` | `/api/v1/relays/groups/{group_id}/routed` | What routes through the group: by name what the reader sees, else a count. |
| `GET` | `/api/v1/relays/groups/{group_id}/stats` |  |
| `POST` | `/api/v1/relays/groups/{group_id}/test` | Send one `GET` to url from the customer's network and say what happened. |
| `POST` | `/api/v1/relays/heartbeat` | Long-poll keepalive while requests are in flight. |
| `POST` | `/api/v1/relays/hello` | The long-poll transport's hello: the same contract as the WS first frame. |
| `GET` | `/api/v1/relays/meta` | What the UI needs to explain and enroll relays. |
| `GET` | `/api/v1/relays/poll` | One long poll: opens to start and frames for the requests the relay holds. |
| `GET` | `/api/v1/relays/update-manifest` | Archives + self-update decision for the embedded relay build. |

## Reports {#reports}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/reports` | List the caller's reports, most recently updated first. |
| `GET` | `/api/v1/reports/{report_id}` | Return one report's spec plus its resolved template palette overrides. |
| `POST` | `/api/v1/reports/{report_id}/export` | Render the report server-side and return it as a PDF download. |
| `GET` | `/api/v1/reports/{report_id}/render-spec` | The report as the static render page consumes it (render token only). |

## ROI {#roi}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/roi` | The report of window: every record (`platform`), one agent's or one fleet's, with their assumptions. |
| `GET` | `/api/v1/roi/baselines` | The unit catalog with the organization's overrides applied, each figure labelled. |
| `PUT` | `/api/v1/roi/baselines/{unit}` | Set the organization's minutes for unit; 422 names what is wrong. |
| `DELETE` | `/api/v1/roi/baselines/{unit}` | Drop the organization's override of unit: the catalog default applies again. |
| `GET` | `/api/v1/roi/chat` | The "From chat, estimated" series of window, separate from the automation report. |
| `POST` | `/api/v1/roi/chat/backfill` | Record every past chat deliverable that has no record yet. |
| `GET` | `/api/v1/roi/chat/backfill-preview` | The dry run of the one-off pass over past chat deliverables, written nothing. |
| `PUT` | `/api/v1/roi/chat/records/{record_id}` | Raise or lower one chat line. |
| `GET` | `/api/v1/roi/declarations` | The subject's own declaration, `null` when it declares none. |
| `PUT` | `/api/v1/roi/declarations` | Set the unit the subject declares and how it is counted; 422 names a bad field. |
| `DELETE` | `/api/v1/roi/declarations` | Drop the subject's declaration: resolution falls through to the next level. |
| `GET` | `/api/v1/roi/declarations/backfill-preview` | What a retroactive pass would write for the subject's current declarations, written nothing. |
| `GET` | `/api/v1/roi/export` | The ledger's figures of a scope as CSV, or as the PDF value report. |
| `GET` | `/api/v1/roi/rates` | The organization's hourly rates by role, and the built-in roles they layer over. |
| `PUT` | `/api/v1/roi/rates/{role}` | Set the organization's hourly rate of role in a currency; 422 names what is wrong. |
| `DELETE` | `/api/v1/roi/rates/{role}` | Drop the organization's rate of role in currency; 404 when it has none. |
| `GET` | `/api/v1/roi/records` | The ROI records, newest first (`direction=asc`: oldest first), runs and work items alike, each with its `kind` and `title`. |
| `PUT` | `/api/v1/roi/records/{record_id}/outcome` | Review a run's or a work item's ROI record: accepted, modified, rejected or `null`. |
| `GET` | `/api/v1/roi/records/count` | How many records `GET /roi/records` pages through under the same filter. |
| `GET` | `/api/v1/roi/settings` | The organization's ROI settings, read by every user: they only say what the Value page shows. |
| `PUT` | `/api/v1/roi/settings` | Set the ROI settings (administrators): the organization totals for every user, the k of the anonymity rule and the "By person" breakdown. |
| `GET` | `/api/v1/roi/suggest` | The unit of work suggested for a custom agent, `suggestion` null when none fits. |
| `GET` | `/api/v1/roi/summary` | The figures of each listed agent or fleet over window, for the list column. |
| `GET` | `/api/v1/roi/units` | Every unit of work: the built-ins (read-only, overrides applied), then the custom units. |
| `POST` | `/api/v1/roi/units` | Add a custom unit; 409 when the key is taken, 422 names a bad field. |
| `PUT` | `/api/v1/roi/units/{key}` | Change a custom unit (a new version); a built-in unit is refused (409). |
| `POST` | `/api/v1/roi/units/{key}/archive` | Archive a custom unit: no longer declarable, its records keep their figures. |
| `GET` | `/api/v1/roi/units/{key}/versions` | Every version of a custom unit, newest first. |

## Runners {#runners}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/desktop-login/{login_id}` | What the browser's confirmation page shows: which machine is asking. |
| `DELETE` | `/api/v1/desktop-login/{login_id}` | The Desktop app gave up (the person cancelled): drop the pending login. |
| `POST` | `/api/v1/desktop-login/{login_id}/complete` | Hand the browser's session to the Desktop app (the person confirmed). |
| `POST` | `/api/v1/desktop-login/{login_id}/decline` | "Not my machine": the person refused to hand their session over. |
| `POST` | `/api/v1/desktop-login/exchange` | The Desktop app's poll: the session once it is there, `202` until then. |
| `POST` | `/api/v1/desktop-login/start` | Open a pending browser sign-in for the calling Desktop app. |
| `GET` | `/api/v1/runners` |  |
| `GET` | `/api/v1/runners/{runner_id}` |  |
| `PATCH` | `/api/v1/runners/{runner_id}` |  |
| `DELETE` | `/api/v1/runners/{runner_id}` |  |
| `GET` | `/api/v1/runners/{runner_id}/commands` | Audit trail: the most recent commands dispatched to a runner. |
| `GET` | `/api/v1/runners/{runner_id}/jobs` | The background shell jobs a machine holds (the Machines page). |
| `POST` | `/api/v1/runners/{runner_id}/revoke` | Instantly revoke a runner's credential (it can no longer authenticate). |
| `GET` | `/api/v1/runners/capabilities` | Static vocabulary for the Profile UI (capabilities + modes + platforms). |
| `POST` | `/api/v1/runners/commands/{command_id}/approve` | Approve a command held for human review, dispatching it to the runner. |
| `POST` | `/api/v1/runners/commands/{command_id}/reject` | Reject a command held for human review. |
| `POST` | `/api/v1/runners/commands/{command_id}/result` | Runner uploads a command's terminal result: the JSON `meta` field and an optional binary `file`. |
| `POST` | `/api/v1/runners/commands/{command_id}/stop` | Stop a shell command running on its machine (the Stop on its chat card). |
| `GET` | `/api/v1/runners/download/manifest` | Alias of `/update-manifest` kept for API stability. |
| `GET` | `/api/v1/runners/enrollment-keys` |  |
| `POST` | `/api/v1/runners/enrollment-keys` | Create an enrollment key. |
| `DELETE` | `/api/v1/runners/enrollment-keys/{key_id}` |  |
| `POST` | `/api/v1/runners/heartbeat` | Long-poll transport keepalive + host-facts refresh. |
| `GET` | `/api/v1/runners/poll` | HTTP long-poll fallback: block until a command is available or timeout. |
| `GET` | `/api/v1/runners/update-manifest` | Downloads + self-update manifest for the embedded runner build. |
| `GET` | `/api/v1/runners/updater/{target}/{arch}/{current_version}` | Tauri v2 updater endpoint the GUI app's bundle updater polls. |

## Scim {#scim}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/scim/tokens` | The SCIM endpoint URL and every token, never a raw value. |
| `POST` | `/api/v1/scim/tokens` | Generate a token: its raw value is in this answer and nowhere else. |
| `DELETE` | `/api/v1/scim/tokens/{token_id}` |  |
| `GET` | `/api/v1/scim/tokens/activity` | The latest SCIM writes, newest first: every SCIM write is audited under `system:scim:<token name>` (reads and refused calls are not audited). |
| `GET` | `/api/v1/scim/v2/Groups` |  |
| `POST` | `/api/v1/scim/v2/Groups` |  |
| `GET` | `/api/v1/scim/v2/Groups/{group_id}` |  |
| `PUT` | `/api/v1/scim/v2/Groups/{group_id}` |  |
| `PATCH` | `/api/v1/scim/v2/Groups/{group_id}` |  |
| `DELETE` | `/api/v1/scim/v2/Groups/{group_id}` | Delete the group the way an administrator does (`api/v1/groups.py`): refused while an LLM provider excludes it, its grants pruned first. |
| `GET` | `/api/v1/scim/v2/ResourceTypes` |  |
| `GET` | `/api/v1/scim/v2/ResourceTypes/{type_id}` |  |
| `GET` | `/api/v1/scim/v2/Schemas` |  |
| `GET` | `/api/v1/scim/v2/Schemas/{schema_id}` |  |
| `GET` | `/api/v1/scim/v2/ServiceProviderConfig` |  |
| `GET` | `/api/v1/scim/v2/Users` |  |
| `POST` | `/api/v1/scim/v2/Users` |  |
| `GET` | `/api/v1/scim/v2/Users/{user_id}` |  |
| `PUT` | `/api/v1/scim/v2/Users/{user_id}` |  |
| `PATCH` | `/api/v1/scim/v2/Users/{user_id}` |  |
| `DELETE` | `/api/v1/scim/v2/Users/{user_id}` | Deprovision: the cascade's deactivation plus `deprovisioned_at`. |

## Search {#search}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/search` | One ranked page of matches: exact name, then name prefix, then the rest. |
| `GET` | `/api/v1/search/counts` | Matches per entity type the caller may open, every type listed. |

## Secret vaults {#secret-vaults}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/secret-vaults` | The providers the caller may pick a secret from, with the paths they may use. |
| `GET` | `/api/v1/secret-vaults/{name}/keys` | The entry names of the secret at path (read on the server, its values dropped); never a value. |
| `GET` | `/api/v1/secret-vaults/{name}/secrets` | The secret names and folders under prefix the caller may see; never a value. |
| `POST` | `/api/v1/secret-vaults/check` | Resolve one reference on the server and say whether it works, never its value. |
| `GET` | `/api/v1/settings/secret-vaults` | Every provider: connected here first, then declared in the environment, with status and use count. |
| `POST` | `/api/v1/settings/secret-vaults` |  |
| `PATCH` | `/api/v1/settings/secret-vaults/{provider_id}` |  |
| `DELETE` | `/api/v1/settings/secret-vaults/{provider_id}` |  |
| `POST` | `/api/v1/settings/secret-vaults/{provider_id}/test` | Test a stored provider as it is, and record the result as its status. |
| `POST` | `/api/v1/settings/secret-vaults/environment/{name}/test` | Test a provider declared in the environment, with this process's own client. |
| `POST` | `/api/v1/settings/secret-vaults/test` | Test the settings of the create or edit form before they are saved; nothing is stored. |
| `GET` | `/api/v1/settings/secret-vaults/usage/{name}` | The secret fields referencing provider name: the entity and the field, never the path. |

## Security audit {#security-audit}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/security-audit` | Run a comprehensive security audit of the platform configuration. |
| `PUT` | `/api/v1/security-audit/findings/{finding_id}/dismissal` | Accept a finding the audit reports now: it leaves the counts and is never notified. |
| `DELETE` | `/api/v1/security-audit/findings/{finding_id}/dismissal` | Undo a dismissal: the finding counts again. 404 when it is not dismissed. |

## Settings {#settings}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/settings/available-decision-models` | Return the decision models (CLMs) the providers the caller may use report. |
| `GET` | `/api/v1/settings/available-embedding-models` | Return available embedding models across all configured providers. |
| `GET` | `/api/v1/settings/available-image-models` | Return available image generation models across all configured providers. |
| `GET` | `/api/v1/settings/available-models` | Return all chat-capable models across all configured providers. |
| `GET` | `/api/v1/settings/available-music-models` | Return available music generation models across all configured providers. |
| `GET` | `/api/v1/settings/available-speech-models` | Return available text-to-speech models across all configured providers. |
| `GET` | `/api/v1/settings/available-video-models` | Return available video generation models across all configured providers. |
| `GET` | `/api/v1/settings/brand-asset-source` | The brand asset source (admin only): the GitHub folder of more brand packs. |
| `PUT` | `/api/v1/settings/brand-asset-source` | Set or clear the brand asset source (admin only), then download it and seed. |
| `POST` | `/api/v1/settings/brand-asset-source/sync` | Download the brand asset source again and run the asset seed (admin only). |
| `GET` | `/api/v1/settings/builtin-tools/catalog` | Return sub-tool definitions for every built-in tool. |
| `GET` | `/api/v1/settings/builtin-tools/groups` | The built-in tool groups every picker and the Tools page render. |
| `GET` | `/api/v1/settings/disabled-providers` | List providers that are globally disabled from the integration catalog (admin only). |
| `PUT` | `/api/v1/settings/disabled-providers` | Set the list of globally disabled integration providers (admin only). |
| `PUT` | `/api/v1/settings/disabled-providers/{provider}` | Disable ONE provider, leaving every other entry alone (admin only). |
| `DELETE` | `/api/v1/settings/disabled-providers/{provider}` | Re-enable ONE provider, leaving every other entry alone (admin only). |
| `GET` | `/api/v1/settings/file-retention` | Every file retention rule, with what each category holds today (administrators). |
| `PUT` | `/api/v1/settings/file-retention` | Change the days of the categories given (administrators); an audit entry names each change. |
| `POST` | `/api/v1/settings/file-retention/preview` | What the next sweep would delete per category under body (the stored days elsewhere); nothing written. |
| `GET` | `/api/v1/settings/file-retention/rules` | The rules alone (days per category), for any signed-in person or agent: what a file's card says. |
| `GET` | `/api/v1/settings/general-assistant` | Get the General Assistant configuration (any authenticated user). |
| `PUT` | `/api/v1/settings/general-assistant` | Create or update the General Assistant configuration (admin only). |
| `GET` | `/api/v1/settings/langfuse` | Get current Langfuse configuration (admin only). |
| `PUT` | `/api/v1/settings/langfuse` | Create or update Langfuse configuration (admin only). |
| `POST` | `/api/v1/settings/langfuse/test` | Test the Langfuse connection using saved credentials (admin only). |
| `GET` | `/api/v1/settings/llm-providers` | List the LLM providers: every one for an admin, the ones they may use for anyone else. |
| `POST` | `/api/v1/settings/llm-providers` |  |
| `PUT` | `/api/v1/settings/llm-providers/{provider_id}` | Update an LLM provider's available models and/or default model. |
| `DELETE` | `/api/v1/settings/llm-providers/{provider_id}` | Delete a platform LLM provider config (admin only). |
| `POST` | `/api/v1/settings/llm-providers/{provider_id}/context-windows/scan` | Look up the context window of some of a provider's models. |
| `GET` | `/api/v1/settings/llm-providers/{provider_id}/deletion-impact` | Preview what deleting a provider config does to every route that uses it. |
| `GET` | `/api/v1/settings/llm-providers/{provider_id}/models` | Fetch the chat models of an already-configured provider (uses stored key). |
| `POST` | `/api/v1/settings/llm-providers/resolve-models` | Resolve available models by providing a provider name and API key (before saving). |
| `POST` | `/api/v1/settings/llm-providers/validate` | Validate provider credentials for a target capability before saving. |
| `POST` | `/api/v1/settings/mcp-endpoint/generate-key` | Generate a new global MCP API key (admin only). |
| `DELETE` | `/api/v1/settings/mcp-endpoint/revoke-key` | Revoke the global MCP API key (admin only). |
| `GET` | `/api/v1/settings/me/memory` | Get the authenticated user's memory across all agents. |
| `DELETE` | `/api/v1/settings/me/memory` | Purge ALL of the authenticated user's memories. |
| `DELETE` | `/api/v1/settings/me/memory/agent/{agent_id}` | Purge the user's memory with a specific agent. |
| `GET` | `/api/v1/settings/me/memory/consolidations` | The consolidations of the caller's own memory lanes, newest first. |
| `POST` | `/api/v1/settings/me/memory/consolidations/{consolidation_id}/undo` | Undo one consolidation of the caller's own lanes. |
| `DELETE` | `/api/v1/settings/me/memory/user-profile` | Purge only the cross-agent user profile memory (user_mem). |
| `GET` | `/api/v1/settings/model-announcements` |  |
| `POST` | `/api/v1/settings/model-announcements` | Queue the announcement of the current default model for every user. |
| `GET` | `/api/v1/settings/model-announcements/catalogs` | The chat models every configured provider serves that the users cannot pick. |
| `POST` | `/api/v1/settings/model-announcements/model-changes` | Queue, for every user, the email of the models the admin chose as new and as retired. |
| `POST` | `/api/v1/settings/model-announcements/preview` | The email the users would get for `body`, greeting the calling admin. |
| `POST` | `/api/v1/settings/model-announcements/test` | Email the calling admin the announcement the users would get. |
| `GET` | `/api/v1/settings/model-pricing` | Describe active model-pricing seed source and available example files. |
| `POST` | `/api/v1/settings/model-pricing/import` | Import model pricing from uploaded JSON content and sync into DB. |
| `POST` | `/api/v1/settings/model-pricing/reprice` | Backfill costs for traces/spans whose cost was never resolved. |
| `GET` | `/api/v1/settings/model-pricing/rows` | List all pricing rows for manual review and editing. |
| `POST` | `/api/v1/settings/model-pricing/rows` | Create a model-pricing row for a provider/model pair. |
| `PUT` | `/api/v1/settings/model-pricing/rows/{row_id}` | Update an existing model-pricing row. |
| `POST` | `/api/v1/settings/model-pricing/sync` | Sync model pricing from the detected seed path or an explicit source path. |
| `GET` | `/api/v1/settings/model-pricing/unpriced-models` | List every observed model that still has unresolved pricing. |
| `GET` | `/api/v1/settings/my-quotas` | Get the authenticated user's resolved quota config and current usage. |
| `GET` | `/api/v1/settings/oauth-defaults` | List all OAuth defaults. |
| `POST` | `/api/v1/settings/oauth-defaults` | Create or update admin OAuth defaults for a provider (admin only). |
| `DELETE` | `/api/v1/settings/oauth-defaults/{provider}` | Remove admin OAuth defaults for a provider (admin only). |
| `GET` | `/api/v1/settings/observability` | Get current observability configuration (admin only). |
| `PUT` | `/api/v1/settings/observability` | Update observability configuration (admin only). |
| `GET` | `/api/v1/settings/platform` | Get platform branding / parameter settings (any authenticated user). |
| `PUT` | `/api/v1/settings/platform` | Update platform branding / parameter settings (admin only). |
| `PUT` | `/api/v1/settings/preferences` |  |
| `POST` | `/api/v1/settings/purge-all-memories` | Purge ALL agent memories across the platform (admin emergency action). |
| `GET` | `/api/v1/settings/quotas` | Get platform-level quota configuration (admin only). |
| `PUT` | `/api/v1/settings/quotas` | Update platform-level quota configuration (admin only). |
| `GET` | `/api/v1/settings/quotas/agent-failure-pool` | Agent failure pool state: window, per-agent consumption, code history. |
| `POST` | `/api/v1/settings/quotas/agent-failure-pool/redeem` | Redeem a Filigran support code to recharge every agent failure pool. |
| `GET` | `/api/v1/settings/quotas/monitoring` | Platform-wide quota monitoring dashboard data (admin only). |
| `POST` | `/api/v1/settings/quotas/support-codes/redeem` | Redeem a Filigran support code of any kind this platform applies. |
| `GET` | `/api/v1/settings/security-options` | The security options with their value, default and lock (admin only). |
| `PUT` | `/api/v1/settings/security-options` | Store security options (admin only); `null` resets one to its default. |
| `GET` | `/api/v1/settings/security-options/scannable-tools` | The tools "Tools screened by the prompt guard" can list (admin only). |
| `GET` | `/api/v1/settings/speech-voices` | The voices of a speech model, the platform's speech model when none is named. |
| `GET` | `/api/v1/settings/sso` | Get the SSO configuration (admin only). |
| `PUT` | `/api/v1/settings/sso` | Create or update the SSO configuration (admin only). |
| `POST` | `/api/v1/settings/sso/test-oidc` | Fetch the Discovery URL as sign-in would and say what is wrong (admin only). |
| `GET` | `/api/v1/settings/tags` | Return a sorted, deduplicated list of all tags across entities the user can see. |
| `POST` | `/api/v1/settings/test-embedding-model` | Actively test whether a provider/model can produce valid embeddings. |
| `GET` | `/api/v1/settings/vault-providers` | The providers the caller may name in a `vault://<provider>/<path>#<key>` reference, for the field hints. |
| `GET` | `/api/v1/settings/video-model-status` | Why the video model chosen in Settings can no longer make a video, if it cannot (a retired model). |
| `GET` | `/api/v1/settings/workspace-knowledge` | The workspace knowledge settings (admin only). |
| `PUT` | `/api/v1/settings/workspace-knowledge` | Update the workspace knowledge settings (admin only). |

## Shared state {#shared-state}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/shared-state` | The visible entries; `workspace` keeps the ones filed in it or owned by a home member of the fleet it hosts; `fleet` the ones owned by a home member of that fleet; `owner_agent_id` the ones that agent owns. |
| `POST` | `/api/v1/shared-state` |  |
| `GET` | `/api/v1/shared-state/{state_id}` |  |
| `DELETE` | `/api/v1/shared-state/{state_id}` |  |
| `POST` | `/api/v1/shared-state/{state_id}/resolve` | Mark a specific shared-state entry resolved (terminal) by its id. |
| `POST` | `/api/v1/shared-state/bulk-delete` | Delete multiple shared-state entries (own private rows; admins also company-managed). |
| `GET` | `/api/v1/shared-state/count` | Total shared-state entries matching the filters (powers pagination). |
| `GET` | `/api/v1/shared-state/owners` | The owner agents of the entries the list's filters match, with counts. |
| `GET` | `/api/v1/shared-state/segment-counts` | How many entries each visibility segment holds under the list's other filters. |

## Sharing exposure {#sharing-exposure}

| Method | Path | What it does |
| --- | --- | --- |
| `POST` | `/api/v1/exposure/preview` |  |

## Skills {#skills}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/skills` | List skills visible to the current user (own + group-shared + company-managed). |
| `POST` | `/api/v1/skills` | Create a new skill by URL or by direct content. |
| `GET` | `/api/v1/skills/{skill_id}` | Get a single skill (must be own, group-shared, company-managed, or admin). |
| `PUT` | `/api/v1/skills/{skill_id}` | Update a skill (creator or admin only). |
| `DELETE` | `/api/v1/skills/{skill_id}` | Delete a skill (creator or admin only). |
| `GET` | `/api/v1/skills/{skill_id}/export` | Export a skill as a package ZIP (default) or legacy JSON bundle. |
| `POST` | `/api/v1/skills/{skill_id}/fork` | Fork any skill the caller sees, a built-in one included, as a personal copy. |
| `GET` | `/api/v1/skills/{skill_id}/license` | The licence of a skill the caller can see: its notice and the text of the licence the package bundles (`SKILL_LICENSE_PATH`, `LICENSE.md` at its root). |
| `POST` | `/api/v1/skills/{skill_id}/refresh` | Re-fetch a skill's content from its URL and update the cache. |
| `GET` | `/api/v1/skills/{skill_id}/tier3-tools` | List Tier 3 script resources linked as Custom Tools for a skill. |
| `GET` | `/api/v1/skills/{skill_id}/versions` | List skill versions ordered by latest first. |
| `GET` | `/api/v1/skills/{skill_id}/versions/{version_number}` | Get a specific skill version by number. |
| `DELETE` | `/api/v1/skills/{skill_id}/versions/{version_number}` | Delete a skill version. |
| `POST` | `/api/v1/skills/{skill_id}/versions/{version_number}/lock` | Lock a skill version to protect it from deletion. |
| `POST` | `/api/v1/skills/{skill_id}/versions/{version_number}/rollback` | Rollback skill content to a previous version as a new head version. |
| `POST` | `/api/v1/skills/{skill_id}/versions/{version_number}/unlock` | Unlock a skill version. |
| `GET` | `/api/v1/skills/{skill_id}/versions/diff` | Compute line-by-line diff between two skill versions. |
| `POST` | `/api/v1/skills/import-bulk-package` | Import the approved skills of a multi-skill archive. |
| `POST` | `/api/v1/skills/import-package` |  |
| `GET` | `/api/v1/skills/package-bindings` | List, per skill, the Custom Tools and KBs its package resources produced. |
| `POST` | `/api/v1/skills/upload` | Create a new skill by uploading a file (.md or .txt). |
| `POST` | `/api/v1/skills/validate-bulk-package` | Pre-flight a multi-skill archive: what would be imported, what is ignored. |
| `POST` | `/api/v1/skills/validate-package` |  |

## SSO {#sso}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/auth/oidc/callback` | Handle the OIDC callback after the user authenticates with the IdP. |
| `GET` | `/api/auth/oidc/login` | Redirect the user to the OIDC identity provider. |
| `POST` | `/api/auth/saml/acs` | SAML2 Assertion Consumer Service – receives the IdP POST-back. |
| `GET` | `/api/auth/saml/login` | Redirect the user to the SAML2 IdP. |
| `GET` | `/api/auth/saml/metadata` | Return the SAML2 SP metadata XML. |

## Tasks {#tasks}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/tasks` |  |

## Template containers {#template-containers}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/template-containers` | List/filter template containers visible to the current user. |
| `POST` | `/api/v1/template-containers` | Create a template container. |
| `GET` | `/api/v1/template-containers/{container_id}` | Get one container with its full asset list. |
| `PUT` | `/api/v1/template-containers/{container_id}` | Update a container's metadata (creator, group member, or admin). |
| `DELETE` | `/api/v1/template-containers/{container_id}` | Delete a container and cascade-delete its assets (DB rows + S3 objects). |
| `GET` | `/api/v1/template-containers/{container_id}/assets` | List a container's assets. |
| `POST` | `/api/v1/template-containers/{container_id}/assets` | Add one asset to a container, leaving all other metadata untouched. |
| `PUT` | `/api/v1/template-containers/{container_id}/assets/{asset_id}` | Replace an asset's binary *in place*, keeping its id. |
| `PATCH` | `/api/v1/template-containers/{container_id}/assets/{asset_id}` | Relabel and/or re-describe an asset without re-uploading its binary. |
| `DELETE` | `/api/v1/template-containers/{container_id}/assets/{asset_id}` | Remove one asset (DB row + S3 object), leaving the container intact. |
| `GET` | `/api/v1/template-containers/{container_id}/assets/{asset_id}/download` | Send an asset's binary back to the caller. |
| `GET` | `/api/v1/template-containers/{container_id}/assets/{asset_id}/thumbnail` | A bounded thumbnail of an image asset, for the tiles that list them. |
| `POST` | `/api/v1/template-containers/{container_id}/duplicate` | Copy a visible container — metadata AND assets — into a private one. |
| `GET` | `/api/v1/template-containers/{container_id}/export` | Export a container as a package ZIP (default) or a metadata-only bundle. |
| `POST` | `/api/v1/template-containers/import` | Import a container from an export package. |

## Tool approvals {#tool-approvals}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/tool-approvals` | The caller's own standing approvals, active and recently invalidated. |
| `POST` | `/api/v1/tool-approvals` | Grant the caller's standing approval for one tool, outside a run. |
| `DELETE` | `/api/v1/tool-approvals/{preference_id}` | Revoke one of the caller's own approvals; the tool prompts them again. |
| `GET` | `/api/v1/tool-approvals/holders` | How many people hold a standing approval for one tool. |
| `PUT` | `/api/v1/tool-approvals/mode` | Turn the caller's allow-all mode on or off. |
| `GET` | `/api/v1/tool-approvals/usage` | Whether approvals are in use, and which agents ask. |

## Traces {#traces}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/traces` |  |
| `GET` | `/api/v1/traces/{trace_id}` |  |
| `DELETE` | `/api/v1/traces/{trace_id}` |  |
| `GET` | `/api/v1/traces/{trace_id}/export-bundle` |  |
| `GET` | `/api/v1/traces/{trace_id}/payload` | Return one of a trace's payload fields in full. |
| `GET` | `/api/v1/traces/{trace_id}/payload/media` | Return the raw bytes of one media blob referenced by a trace payload. |
| `GET` | `/api/v1/traces/{trace_id}/scores` |  |
| `POST` | `/api/v1/traces/{trace_id}/scores` |  |
| `GET` | `/api/v1/traces/{trace_id}/spans` |  |
| `GET` | `/api/v1/traces/{trace_id}/spans/{span_id}/payload` | Return one of a span's payload fields in full. |
| `GET` | `/api/v1/traces/{trace_id}/spans/{span_id}/payload/media` | Return the raw bytes of one media blob referenced by a span payload. |
| `GET` | `/api/v1/traces/analytics/cost-by-agent` |  |
| `GET` | `/api/v1/traces/analytics/cost-by-group` | Per-group spend, like the per-user view; a group-narrowed read lists those groups alone. |
| `GET` | `/api/v1/traces/analytics/cost-by-model` |  |
| `GET` | `/api/v1/traces/analytics/cost-by-user` | Per-user spend: a governance view, for admins and a group's managers (their team). |
| `GET` | `/api/v1/traces/analytics/cost-over-time` |  |
| `GET` | `/api/v1/traces/analytics/errors` |  |
| `GET` | `/api/v1/traces/analytics/latency` |  |
| `POST` | `/api/v1/traces/analytics/refresh` |  |
| `GET` | `/api/v1/traces/analytics/summary` |  |
| `GET` | `/api/v1/traces/analytics/volume-over-time` |  |
| `GET` | `/api/v1/traces/sessions` |  |
| `GET` | `/api/v1/traces/sessions/{conversation_id}/explorer` |  |
| `GET` | `/api/v1/traces/sessions/{conversation_id}/export-bundle` |  |

## Users {#users}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/users` | List users with resource counts (admin-only). |
| `POST` | `/api/v1/users` | Create a new user (admin-only). |
| `GET` | `/api/v1/users/{user_id}` | Get detailed info for a specific user (admin-only). |
| `DELETE` | `/api/v1/users/{user_id}` | Permanently delete a user and all associated data (admin-only). |
| `PUT` | `/api/v1/users/{user_id}/active` | Toggle a user's active status (admin-only). |
| `GET` | `/api/v1/users/{user_id}/agents` | List a user's agents (admin-only). |
| `GET` | `/api/v1/users/{user_id}/api-keys` | List a user's API keys with usage stats (admin-only). |
| `GET` | `/api/v1/users/{user_id}/channel-identities` | List all linked channel identities for a user (admin-only). |
| `POST` | `/api/v1/users/{user_id}/channel-identities` | Link a channel identity to a user (admin-only). |
| `DELETE` | `/api/v1/users/{user_id}/channel-identities/{channel_type}/{platform_id}` | Unlink a channel identity from a user (admin-only). |
| `GET` | `/api/v1/users/{user_id}/custom-tools` | List a user's custom tools (admin-only). |
| `GET` | `/api/v1/users/{user_id}/deactivation-preview` | What deactivating the account would do, read without writing. |
| `GET` | `/api/v1/users/{user_id}/groups` | List all groups a user belongs to (admin-only). |
| `POST` | `/api/v1/users/{user_id}/impersonate` | Start impersonating a user (admin-only). |
| `GET` | `/api/v1/users/{user_id}/integrations` | List a user's personal integrations (admin-only). |
| `DELETE` | `/api/v1/users/{user_id}/integrations/{integration_id}` | Admin deletes a user's integration. |
| `GET` | `/api/v1/users/{user_id}/knowledge-bases` | List a user's knowledge bases (admin-only). |
| `GET` | `/api/v1/users/{user_id}/mcp-servers` | List a user's personal MCP servers (admin-only). |
| `DELETE` | `/api/v1/users/{user_id}/mcp-servers/{server_id}` | Admin deletes a user's MCP server. |
| `DELETE` | `/api/v1/users/{user_id}/mfa` | Clear a user's TOTP enrollment (admin-only). |
| `PUT` | `/api/v1/users/{user_id}/password` | Set a user's password directly (admin-only). |
| `POST` | `/api/v1/users/{user_id}/password-reset` | Issue a single-use password reset link for a user (admin-only). |
| `GET` | `/api/v1/users/{user_id}/quotas` | Get resolved quota config and current usage for a user (admin only). |
| `PUT` | `/api/v1/users/{user_id}/quotas` | Set user-level quota overrides (admin only). |
| `POST` | `/api/v1/users/{user_id}/quotas/reset` | Reset quota usage counters for a user (admin only). |
| `PUT` | `/api/v1/users/{user_id}/role` | Change a user's role (admin-only). |
| `GET` | `/api/v1/users/{user_id}/stats` | Get aggregated statistics for a specific user (admin-only). |
| `GET` | `/api/v1/users/count` | How many users match the filters of `GET /users` (admin-only): the table's total. |
| `GET` | `/api/v1/users/deactivations` | The deactivation episodes, newest first, with their review list. |
| `POST` | `/api/v1/users/deactivations/{deactivation_id}/review` | Mark one review item done (`keep`, `reassign` or `delete`). |
| `GET` | `/api/v1/users/directory` | Search active users by name or email, for per-user share pickers. |

## Variables {#variables}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/variables` |  |
| `POST` | `/api/v1/variables` |  |
| `GET` | `/api/v1/variables/{variable_id}` |  |
| `PUT` | `/api/v1/variables/{variable_id}` |  |
| `DELETE` | `/api/v1/variables/{variable_id}` |  |

## Webhooks {#webhooks}

| Method | Path | What it does |
| --- | --- | --- |
| `POST` | `/api/hooks/{agent_id}/{path:path}` | Receive an external webhook and trigger matching assignments. |
| `POST` | `/api/hooks/assignments/{assignment_id}` | Receive an external webhook targeting a specific assignment by ID. |
| `POST` | `/api/hooks/integrations/{integration_id}` | Receive a webhook for an integration and fan out to all bound agents. |
| `POST` | `/api/hooks/integrations/{integration_id}/assignments/{assignment_id}` | Receive a webhook that targets a specific assignment. |
| `GET` | `/api/hooks/providers/{provider}` | Handle GET-based webhook validation challenges (e.g. LinkedIn). |
| `POST` | `/api/hooks/providers/{provider}` | Receive a webhook for an admin-provisioned provider (one URL for all users). |

## Work items {#work-items}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/work-items` | The visible work items; `workspace` keeps the ones filed in it or owned or created by a home member of the fleet it hosts; `fleet` the ones owned or created by a home member of that fleet. |
| `POST` | `/api/v1/work-items` |  |
| `GET` | `/api/v1/work-items/{work_item_id}` |  |
| `PUT` | `/api/v1/work-items/{work_item_id}` |  |
| `DELETE` | `/api/v1/work-items/{work_item_id}` |  |
| `PUT` | `/api/v1/work-items/{work_item_id}/action` | Replace the action of one of the caller's waiting scheduled items (audited). |
| `POST` | `/api/v1/work-items/{work_item_id}/answer` | Answer the decision an item waits for: recorded, needs_human cleared, the item back in its owner's queue (`work_item.answer_work_item`). |
| `POST` | `/api/v1/work-items/{work_item_id}/cancel` | Cancel one of the caller's scheduled work items before it runs (audited). |
| `POST` | `/api/v1/work-items/{work_item_id}/complete` |  |
| `POST` | `/api/v1/work-items/{work_item_id}/requeue` | Put an item back in the queue: open, unclaimed, dispatch attempts reset. |
| `POST` | `/api/v1/work-items/{work_item_id}/reschedule` | Move one of the caller's scheduled work items that has not run (audited). |
| `POST` | `/api/v1/work-items/bulk-delete` | Delete multiple work items (own private rows; admins also company-managed). |
| `GET` | `/api/v1/work-items/count` | Total work items matching the filters (powers pagination + select-all). |
| `GET` | `/api/v1/work-items/owners` | The owner agents of the items the list's filters match, with counts. |
| `GET` | `/api/v1/work-items/scheduled` | The caller's scheduled work items, with their agent's name and icon. |
| `GET` | `/api/v1/work-items/segment-counts` | How many work items each visibility segment holds under the list's other filters. |
| `GET` | `/api/v1/work-items/stale-count` |  |
| `GET` | `/api/v1/work-items/status-counts` | `{status: count}` under the list's filters minus the status: the numbers of the Operations table's Status filter, one grouped query. |
| `GET` | `/api/v1/work-items/waiting-for-me` | The home dashboard notice: the caller's items that wait for the caller. |

## Worksets {#worksets}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/worksets` | The corpora visible to this user, newest activity first. |
| `GET` | `/api/v1/worksets/{workset_id}` | One workset, with the same coverage and progress an agent reads. |
| `DELETE` | `/api/v1/worksets/{workset_id}` |  |
| `GET` | `/api/v1/worksets/{workset_id}/items` | What the corpus holds — metadata and summaries, never the source text. |
| `POST` | `/api/v1/worksets/{workset_id}/resolve` | Conclude a workset, handing it to the retention sweep. |
| `POST` | `/api/v1/worksets/bulk-delete` |  |
| `GET` | `/api/v1/worksets/count` | How many corpora the list holds under the same filters, search included: the table's total. |
| `GET` | `/api/v1/worksets/segment-counts` | How many corpora each visibility segment holds under the list's other filters. |

## Workspaces {#workspaces}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/workspaces` | List workspaces visible to the caller, creating their default on first use. |
| `POST` | `/api/v1/workspaces` | Create a workspace (admins only for company-managed). |
| `GET` | `/api/v1/workspaces/{workspace_id}` | Get one workspace (own, shared, company-managed, or admin). |
| `PUT` | `/api/v1/workspaces/{workspace_id}` | Update a workspace (creator or admin only). |
| `DELETE` | `/api/v1/workspaces/{workspace_id}` | Delete a workspace (creator or admin only). |
| `POST` | `/api/v1/workspaces/{workspace_id}/default` | Make this workspace the caller's default. |
| `GET` | `/api/v1/workspaces/{workspace_id}/knowledge` | What this workspace gives its agents, counted for the caller. |
| `GET` | `/api/v1/workspaces/{workspace_id}/knowledge-bases` | The knowledge bases bound to this workspace that the caller can see. |
| `PUT` | `/api/v1/workspaces/{workspace_id}/knowledge-bases` | Replace the workspace's knowledge-base bindings with the given set. |
| `GET` | `/api/v1/workspaces/{workspace_id}/skills` | The skills linked to this workspace that the caller can see. |
| `PUT` | `/api/v1/workspaces/{workspace_id}/skills` | Replace the skills linked to this workspace (the bound knowledge bases' rules: an added skill the caller cannot see is a 404 for that id, a link the caller cannot see is kept). |
| `POST` | `/api/v1/workspaces/{workspace_id}/sources` | The workspace's Sources knowledge base, created on first call. |
| `POST` | `/api/v1/workspaces/{workspace_id}/sources/from-attachment` | Add a file attached in one of this workspace's conversations as a source. |

## XTM Hub {#xtm-hub}

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/api/v1/xtm-hub/registration` |  |
| `POST` | `/api/v1/xtm-hub/registration` |  |
| `DELETE` | `/api/v1/xtm-hub/registration` |  |
| `PUT` | `/api/v1/xtm-hub/registration/auto` |  |
| `POST` | `/api/v1/xtm-hub/registration/check` |  |
| `GET` | `/api/v1/xtm-hub/registration/status` |  |
