API
REST API Endpoints
Each page below documents one endpoint of the REST API: its parameters and request body, the personal access token scope it needs, request examples in several languages, and a playground. The pages are built from the same Swagger document as the REST API reference, which lists every endpoint on one page.
To try an endpoint, open Try in Playground on its page, set the server to your instanceβs API URL (for example http://localhost:7091), and enter a session token or a personal access token. Leave the token empty when your instance runs without authentication (AUTH_TYPE unset). Requests go from your browser straight to your instance.
Activity
- Return one page of the caller's finished runs
GET /api/activity/history - Return the caller's Now snapshot
GET /api/activity/now - Return the caller's calendar window
GET /api/activity/planned - Ask a running answer to stop
POST /api/messages/{message_id}/cancel
Admin
- Remove the instance default for ``?bucket=``, or for every bucket
DELETE /api/admin/quotas/instance - Remove the team's allowance for ``?bucket=``, or for every bucket
DELETE /api/admin/quotas/teams/{team_id} - Remove the user's override for ``?bucket=``, or for every bucket
DELETE /api/admin/quotas/users/{user_id} - Revoke the manual admin grant
DELETE /api/admin/users/{user_id}/role - Distinct ``(event, category)`` pairs this instance has recorded
GET /api/admin/activity/events - Stream the filtered feed as CSV or NDJSON
GET /api/admin/activity/export - Merged audit feed, newest first, with filters and a total
GET /api/admin/activity - List all admins with earliest grant time + grant sources
GET /api/admin/admins - The guardrails new agents start with, and what the injection model costs on this server
GET /api/admin/defaults/agents - Global auth-events feed, newest first
GET /api/admin/audit - Every connector with its policy, setup state and connection count
GET /api/admin/connectors - The decision model as this API process sees it
GET /api/admin/decisions - Global remote-device command audit feed
GET /api/admin/devices/audit - The floor every agent follows, whether MCP tool descriptions are scored, and the injection model's cost
GET /api/admin/guardrails - Top-line KPIs for the dashboard home
GET /api/admin/overview - Every stored policy, grouped by layer, plus the models cost limits cannot see
GET /api/admin/quotas - The default retrieval settings for new sources, and what relevance costs on this server
GET /api/admin/defaults/sources - The per-member allowance of one team
GET /api/admin/quotas/teams/{team_id} - Global usage: time-bucketed series, totals, spend, latency, top users
GET /api/admin/usage - A user's overrides and the limits and usage they resolve to
GET /api/admin/quotas/users/{user_id} - Per-user drill-down: profile, roles, recent auth events, counts
GET /api/admin/users/{user_id} - One user's spend: daily series plus a split by model and by flow
GET /api/admin/users/{user_id}/usage - List users, paginated, most-recently-seen first
GET /api/admin/users - Activate/deactivate a user
PATCH /api/admin/users/{user_id} - Grant the admin role to ``user_id`` (manual source)
POST /api/admin/users/{user_id}/role - Force-logout: revoke the user's live OIDC sessions (best-effort)
POST /api/admin/users/{user_id}/revoke-sessions - Store the body's `guardrails` object as the default for new agents; existing agents keep their own
PUT /api/admin/defaults/agents - Update policies: {policies: {key: {enabled?, credential_mode?, allow_writes?}}, allow_custom_mcp?}
PUT /api/admin/connectors - Store the body's `floor` (an agent guardrails object, or null for none) and/or `mcp_description_warnings`
PUT /api/admin/guardrails - Set the instance default for one bucket
PUT /api/admin/quotas/instance - Store the body's `retrieval` object as the default for new sources; existing sources keep their own
PUT /api/admin/defaults/sources - Set the allowance each member of the team gets
PUT /api/admin/quotas/teams/{team_id} - Set one user's override, which beats team allowances and the default
PUT /api/admin/quotas/users/{user_id}
Agents
- Delete an agent by ID
DELETE /api/delete_agent - Remove a shared agent from the current user's shared list
DELETE /api/remove_shared_agent - Webhook listener for agent events (GET)
GET /api/webhooks/agents/{webhook_token} - Generate webhook URL for the agent
GET /api/agent_webhook - Export an agent as YAML
GET /api/export_agent - Get agent by ID
GET /api/get_agent - Retrieve agents for the user
GET /api/get_agents - Get template/premade agents
GET /api/template_agents - Get pinned agents for the user
GET /api/pinned_agents - Get a shared agent by token or ID
GET /api/shared_agent - Get shared agents explicitly shared with the user
GET /api/shared_agents - Adopt an agent by ID
POST /api/adopt_agent - Webhook listener for agent events (POST)
POST /api/webhooks/agents/{webhook_token} - Create a new agent
POST /api/create_agent - Dry-run an agent YAML import and return the resolution plan
POST /api/import_agent/plan - POST /api/import_agent
POST /api/import_agent - Pin or unpin an agent
POST /api/pin_agent - Rotate an agent's API key
POST /api/regenerate_agent_key/{agent_id} - Share or unshare an agent
PUT /api/share_agent - Update an existing agent
PUT /api/update_agent/{agent_id}
Agents folders
- Delete a folder
DELETE /api/agents/folders/{folder_id} - Get a specific folder with its agents
GET /api/agents/folders/{folder_id} - Get all folders for the user
GET /api/agents/folders/ - Create a new folder
POST /api/agents/folders/ - Move multiple agents to a folder
POST /api/agents/folders/bulk_move - Move an agent to a folder or remove from folder
POST /api/agents/folders/move_agent - Update a folder
PUT /api/agents/folders/{folder_id}
Analytics
- GET /api/analytics/topics
GET /api/analytics/topics - GET /api/analytics/topic_folders
GET /api/analytics/topic_folders - Stored execution traces (span timelines) for one Logs row
GET /api/traces - POST /api/get_conversation_insights
POST /api/get_conversation_insights - POST /api/get_docs_gaps
POST /api/get_docs_gaps - Get feedback analytics data
POST /api/get_feedback_analytics - Get message analytics based on filter option
POST /api/get_message_analytics - Get scheduled agent run outcomes over time
POST /api/get_schedule_analytics - Get token analytics data
POST /api/get_token_analytics - Get tool call analytics from the tool execution journal
POST /api/get_tool_analytics - Get user activity logs with pagination
POST /api/get_user_logs
Answer
- Return the agent's starters
POST /api/agent_starters - Provide a response based on the question and retriever
POST /api/answer - Search for relevant documents based on query
POST /api/search - Stream a response based on the question and retriever
POST /stream
Approvals
- GET /api/approvals/{token}
GET /api/approvals/{token} - POST /api/approvals/{token}
POST /api/approvals/{token}
Artifacts
- Delete an artifact and all its versions (owner only)
DELETE /api/artifacts/{artifact_id} - Get an artifact's metadata, version list, and current spec
GET /api/artifacts/{artifact_id} - Get a single artifact version's metadata and spec
GET /api/artifacts/{artifact_id}/versions/{version} - List artifacts for a conversation, workflow run, or the caller
GET /api/artifacts - Restore a prior version by appending it as the new current version
POST /api/artifacts/{artifact_id}/restore
Attachments
- Serve an agent image using an opaque capability URL
GET /api/images/{agent_id}/{capability} - Transcribe a chunk for a live speech-to-text session
POST /api/stt/live/chunk - Finish a live speech-to-text session
POST /api/stt/live/finish - Start a live speech-to-text session
POST /api/stt/live/start - Transcribe an uploaded audio file
POST /api/stt - Stores one or multiple attachments without vectorization or training
POST /api/store_attachment - Synthesize audio speech from text
POST /api/tts
Background jobs
- GET /api/background_jobs/{job_id}
GET /api/background_jobs/{job_id} - GET /api/background_jobs
GET /api/background_jobs - Ask a running background job to stop
POST /api/background_jobs/{job_id}/cancel
Connections
- Remove a connection: {sources: keep | delete, tools: delete | keep}
DELETE /api/connections/{connection_id} - One connection with the sources it syncs and the tools it provides
GET /api/connections/{connection_id} - GitHub: the repositories the connection can read, for the sync picker
GET /api/connections/{connection_id}/repositories - The caller's connections with status and linked resource counts
GET /api/connections - GET /api/connectors/catalog
GET /api/connectors/catalog - GET /api/connections/{connection_id}/linear
GET /api/connections/{connection_id}/linear - Name an account: {name}
PATCH /api/connections/{connection_id} - POST /api/connections/claim
POST /api/connections/claim - Delete a connection's stored credentials; its sources and tools stay
POST /api/connections/{connection_id}/disconnect - A short-lived access token for a browser-side file picker
POST /api/connections/{connection_id}/picker-token - OAuth: returns an authorization URL for the same account
POST /api/connections/{connection_id}/reconnect - POST /api/connections/{connection_id}/refresh-tools
POST /api/connections/{connection_id}/refresh-tools - POST /api/connections/{connection_id}/setup
POST /api/connections/{connection_id}/setup - POST /api/connections
POST /api/connections - PUT /api/connections/{connection_id}/tools/{tool_id}/parameters
PUT /api/connections/{connection_id}/tools/{tool_id}/parameters - PUT /api/connections/{connection_id}/tools/{tool_id}/permissions
PUT /api/connections/{connection_id}/tools/{tool_id}/permissions - PUT /api/connections/{connection_id}/writes
PUT /api/connections/{connection_id}/writes - PUT /api/connections/tools/{tool_id}/credential-mode
PUT /api/connections/tools/{tool_id}/credential-mode
Connectors
- Get connector OAuth authorization URL
GET /api/connectors/auth - Return HTML page with connector authentication status
GET /api/connectors/callback-status - Forward the provider's answer to the app page that finishes the sign-in
GET /api/connectors/callback - POST /api/connectors/auth/complete
POST /api/connectors/auth/complete - Disconnect a connector session
POST /api/connectors/disconnect - List files from a connector provider (supports pagination and search)
POST /api/connectors/files - Sync connector source to check for modifications
POST /api/connectors/sync - POST /api/connectors/validate-session
POST /api/connectors/validate-session
Conversations
- Deletes all conversations for a specific user
GET /api/delete_all_conversations - GET /api/get_conversations
GET /api/get_conversations - GET /api/messages/{message_id}/tail
GET /api/messages/{message_id}/tail - Retrieve a single conversation by ID
GET /api/get_single_conversation - GET /api/search_conversations
GET /api/search_conversations - Deletes a conversation by ID
POST /api/delete_conversation - Submit feedback for a conversation
POST /api/feedback - Updates the name of a conversation
POST /api/update_conversation_name
Guardrails
- GET /api/agents/defaults
GET /api/agents/defaults - List available guardrail checks and their capabilities
GET /api/guardrails/catalog - List guardrail decisions recorded for an agent
GET /api/guardrails/events - Aggregate guardrail activity for the caller
GET /api/guardrails/summary
Mcp apps
- GET /api/mcp_apps/sandbox
GET /api/mcp_apps/sandbox - Run a tool an MCP App view calls
POST /api/mcp_apps/call - Read an MCP App view's HTML and its declared CSP and permissions
POST /api/mcp_apps/resource - POST /api/mcp_apps/result
POST /api/mcp_apps/result
Me
- Return ``{user_id, roles, email?, name?, picture?}`` for the caller
GET /api/user/me - Return the caller's limited buckets: ``{bucket, tokens, cost, resets_at}`` each
GET /api/user/quota - Return ``{success, chat_prompt_id, chat_prompt_set}`` for the caller
GET /api/user/preferences - Store ``chat_prompt_id`` after checking the caller may use that prompt
PUT /api/user/preferences
Models
- Delete a BYOM custom model
DELETE /api/user/models/{model_id} - Get list of available models with their capabilities
GET /api/models - Get one BYOM custom model
GET /api/user/models/{model_id} - List the current user's BYOM custom models
GET /api/user/models - Update a BYOM custom model (partial)
PATCH /api/user/models/{model_id} - POST /api/user/models/test
POST /api/user/models/test - Test a saved BYOM record
POST /api/user/models/{model_id}/test - Register a new BYOM custom model
POST /api/user/models
Monitors
- One of the caller's monitors
GET /api/monitors/{monitor_id} - GET /api/monitors/{monitor_id}/secret
GET /api/monitors/{monitor_id}/secret - GET /api/monitors
GET /api/monitors - Pause, resume or cancel one of the caller's monitors
POST /api/monitors/{monitor_id}/{action} - PUT /api/monitors/{monitor_id}/secret/exposure
PUT /api/monitors/{monitor_id}/secret/exposure - PUT /api/monitors/{monitor_id}/secret
PUT /api/monitors/{monitor_id}/secret
Notifications
- DELETE /api/push/subscriptions
DELETE /api/push/subscriptions - GET /api/push/public_key
GET /api/push/public_key - Clear the conversation's unread mark (the user opened it)
POST /api/conversations/{conversation_id}/read - POST /api/presence
POST /api/presence - POST /api/push/subscriptions
POST /api/push/subscriptions
Prompts
- Get all prompts for the user
GET /api/get_prompts - Get a single prompt by ID
GET /api/get_single_prompt - Create a new prompt
POST /api/create_prompt - Delete a prompt by ID
POST /api/delete_prompt - Update an existing prompt
POST /api/update_prompt
Schedules
- Cancel / delete a schedule
DELETE /api/schedules/{schedule_id} - Return run count, failures, tokens and latest failure for an agent
GET /api/agents/{agent_id}/schedules/stats - List schedules for an agent (recurring + one-time)
GET /api/agents/{agent_id}/schedules - Get schedule by id
GET /api/schedules/{schedule_id} - Full output / error for a single run
GET /api/schedules/{schedule_id}/runs/{run_id} - Paginated run log for a schedule
GET /api/schedules/{schedule_id}/runs - Return the caller's schedules with agent and origin-chat names
GET /api/schedules - Pause / resume a schedule
PATCH /api/schedules/{schedule_id} - Create a schedule (recurring or one-time) for an agent
POST /api/agents/{agent_id}/schedules - Run a schedule immediately (trigger_source='manual')
POST /api/schedules/{schedule_id}/run - Edit a schedule's editable fields
PUT /api/schedules/{schedule_id}
Sharing
- Get publicly shared conversations by identifier
GET /api/shared_conversation/{identifier} - Share a conversation
POST /api/share
Sources
- Deletes a specific chunk from the document
DELETE /api/delete_chunk - Return the cited chunk and its source
GET /api/sources/{source_id}/chunk - Provide JSON file with combined available indexes
GET /api/sources - Deletes a source: its index, stored files and row
GET /api/delete_old - Get the directory structure for a document
GET /api/directory_structure - GET /api/get_chunks
GET /api/get_chunks - Get sources with pagination, sorting and filtering
GET /api/sources/paginated - Redirects /api/combine to /api/sources for backward compatibility
GET /api/combine - GET /api/sources/defaults
GET /api/sources/defaults - GET /api/sources/{source_id}/graph/node/{node_id}
GET /api/sources/{source_id}/graph/node/{node_id} - List one page of a source's graph nodes with type facets
GET /api/sources/{source_id}/graph/nodes - GET /api/sources/{source_id}/graph
GET /api/sources/{source_id}/graph - Get celery job status
GET /api/task_status - A Website source's config, sync schedule and last ingest report
GET /api/website - Fetch a single wiki page's content fresh from storage
GET /api/sources/{source_id}/wiki/page - List a wiki source's pages (read access: owner or shared)
GET /api/sources/{source_id}/wiki/pages - A wiki's settings
GET /api/sources/{source_id}/wiki/settings - Edit a source's behavior config
PATCH /api/sources/{source_id}/config - Adds a new chunk to the document
POST /api/add_chunk - Add pages or sites to a Website source; they stay in every sync
POST /api/website/pages - Convert an ingested source into a wiki
POST /api/sources/{source_id}/wiki/convert - Create an LLM-editable wiki source
POST /api/sources/wiki - POST /api/sources/{source_id}/graphrag/enable
POST /api/sources/{source_id}/graphrag/enable - Add a chunk text's hash to the source's owner allowlist, or remove it
POST /api/sources/{source_id}/injection_review - POST /api/manage_source_files
POST /api/manage_source_files - Manage sync frequency for sources
POST /api/manage_sync - POST /api/website/refresh
POST /api/website/refresh - POST /api/sources/reingest
POST /api/sources/reingest - Remove pages or a folder from a Website source
POST /api/website/remove - POST /api/sources/from_attachments
POST /api/sources/from_attachments - POST /api/sources/{source_id}/search
POST /api/sources/{source_id}/search - Trigger an immediate sync for a source
POST /api/sync_source - Uploads a file to be vectorized and indexed
POST /api/upload - Uploads remote source for vectorization
POST /api/remote - Save a Website source's entries, skips, link setting and sync schedule
POST /api/website - Updates an existing chunk in the document
PUT /api/update_chunk - Create or overwrite a wiki page (human edit)
PUT /api/sources/{source_id}/wiki/page - Change a wiki's settings (owner only, manage_settings)
PUT /api/sources/{source_id}/wiki/settings
Teams
- Unshare a resource from this team
DELETE /api/teams/{team_id}/grants - Remove a member
DELETE /api/teams/{team_id}/members/{member_id} - Delete the team
DELETE /api/teams/{team_id} - Global-admin oversight: every team with member counts, or a picker search
GET /api/admin/teams - A resource's sharing switches
GET /api/resource_settings - List the teams a resource is shared with
GET /api/resource_shares - List resources shared with this team
GET /api/teams/{team_id}/grants - List members
GET /api/teams/{team_id}/members - Team detail with members and the caller's role
GET /api/teams/{team_id} - List the teams the caller belongs to, each annotated with their role
GET /api/teams - Share a resource with this team, or change an existing grant's level
POST /api/teams/{team_id}/grants - Add a member by email (preferred) or raw user_id
POST /api/teams/{team_id}/members - Transfer team ownership
POST /api/teams/{team_id}/transfer_owner - Create a team (self-serve)
POST /api/teams - Change a resource's sharing switches
PUT /api/resource_settings - Change a member's role
PUT /api/teams/{team_id}/members/{member_id} - Update team name/description
PUT /api/teams/{team_id}
Tokens
- Revoke any user's token
DELETE /api/admin/tokens/{token_id} - Revoke one of the caller's tokens
DELETE /api/user/tokens/{token_id} - List a user's tokens, revoked ones included
GET /api/admin/users/{user_id}/tokens - List the caller's tokens with the scope catalog and the server's token policy
GET /api/user/tokens - Issue a new secret for a token and reset its expiry
POST /api/user/tokens/{token_id}/regenerate - Create an API tool that lets agents work in this account with the token
POST /api/user/tokens/{token_id}/tool - Create a token
POST /api/user/tokens
Tools
- Get artifact data by artifact ID
GET /api/artifact/{artifact_id} - Get available tools for a user
GET /api/available_tools - Get tools created by a user
GET /api/get_tools - Batch check auth status for all MCP tools
GET /api/mcp_server/auth_status - Handle OAuth callback by providing the authorization code and state
GET /api/mcp_server/callback - Create a new tool
POST /api/create_tool - Delete a tool by ID
POST /api/delete_tool - Create or update MCP server with automatic tool discovery
POST /api/mcp_server/save - POST /api/mcp_server/oauth_cancel
POST /api/mcp_server/oauth_cancel - POST /api/parse_spec
POST /api/parse_spec - Test MCP server connection with provided configuration
POST /api/mcp_server/test - Update the actions of a tool
POST /api/update_tool_actions - Replace a tool's config, keeping stored secrets the client left out
POST /api/update_tool_config - Update the status of a tool
POST /api/update_tool_status - Update a tool's names, actions, config or chat switch
POST /api/update_tool
Triggers
- GET /api/triggers/{token}
GET /api/triggers/{token} - Deliver an event to a monitor's webhook trigger link
POST /api/triggers/{token}
Workflow runs
- GET /api/workflow_runs/{run_id}
GET /api/workflow_runs/{run_id} - List the workflow runs you started, newest first
GET /api/workflow_runs - GET /api/workflow_runs/{run_id}/steps/{step_index}
GET /api/workflow_runs/{run_id}/steps/{step_index}
Workflows
- Delete workflow and its graph
DELETE /api/workflows/{workflow_id} - Get workflow details with nodes and edges
GET /api/workflows/{workflow_id} - Create a new workflow with nodes and edges
POST /api/workflows - Update workflow and replace nodes/edges
PUT /api/workflows/{workflow_id}
Edit this page on GitHub
Last updated on