Base URL
Authentication
Authenticate requests by including your API key in theX-API-Key header:
Scopes
Each API key is assigned scopes that control endpoint access:
A key with a
write scope automatically has the corresponding read scope. For example, knowledge:write includes knowledge:read.
Response Format
All list endpoints return a consistent paginated structure:object field identifying the type.
Pagination
List endpoints accept these query parameters:Error Format
All errors follow a consistent structure. See API Errors for the full error code reference.Available Resources
Knowledge
Documents and Sources — manage your knowledge base content. Supports CRUD, bulk operations (up to 100 items), translations, version history, file uploads, and table of contents management. Scope:knowledge:read / knowledge:write
Conversations
Read conversation threads, messages, and user feedback. Includes CSV export. Set thread evaluation, admin comment, admin tags, and admin status. Scope:conversations:read / conversations:write
When filtering by
organization or exclude_organization, the API key must also have the accounts:read scope.Tickets
Read tickets, statuses, statistics, and messages. Includes CSV export. Scope:tickets:read
Analytics
Query dashboard analytics with date range filters and tab selection (evaluation, overview, knowledge, feedback, user-analytics, tickets).
Scope: analytics:read
Agents
Manage agent configurations including prompt templates, tools, sources, LLM settings, and feedback options. Scope:agents_config:read / agents_config:write
When setting
source_ids or pinned_document_ids on an agent, the API key must also have the knowledge:read scope.Tools
Manage tool integrations attached to agents. Tool responses never includesecret_key values — secret keys are stored encrypted and cannot be retrieved via the API.
Scope: agents_config:read / agents_config:write
Prompt Templates
Manage prompt templates used by agents. Content changes are versioned automatically. Deleting a template in use by an agent returns409.
Scope: agents_config:read / agents_config:write
UI Resource Templates
Manage Jinja2 templates for dynamic UI components in the chat widget. Template content is validated for correct syntax on creation and update. Thetemplate_version is auto-incremented when content changes.
Scope: agents_config:read / agents_config:write
Organizations
Read organizations and their email domains. Scope:accounts:read
Users
List and read customer users. Filter by organization, email, or search across name fields. Scope:accounts:read
MCP
The API v1 also exposes an MCP server at/api/v1/mcp with 60 tools that mirror these REST endpoints. Connect Claude Desktop, Claude Code, Cursor, or any MCP client to manage your workspace through natural language. Same API key, same scopes.
