For developers
Connect 121assist to AI assistants and automations. One API key works for MCP and the REST API — create it in your workspace under “AI assistants & API”.
What the API offers
- MCP server: connect 121assist as a custom connector to claude.ai, Claude Desktop and other MCP clients
- whoami tool: verifies the connection and shows the user, workspace and the scopes of your key
- OAuth 2.1: claude.ai connects without a key — you approve access once in the browser
- REST API: the same capabilities as the MCP tools as curated HTTPS endpoints — conversations, spaces, documents and widget stats
What a key can see depends on your plan and the selected scopes — just like in the web app.
Changed on 17 Oct 2026: timestamps in API responses, MCP tool results and webhooks now carry a time zone, e.g. 2026-10-17T04:16:07+00:00 instead of 2026-10-17T04:16:07. The point in time is still UTC, and any ISO 8601 parser reads both forms. If you have been appending a Z yourself, stop doing so.
Changed on 28 Oct 2026: get_widget_stats and GET /api/public/widgets/stats only count conversations that started within the period days (default 30 days, like “Answer quality”) instead of all since the start. by_status (active/closed/escalated — no conversation was ever closed) is replaced by conversations_escalated and escalation_percent, the same figure as get_quality_report; since states where the period starts. Without widget_id the response always includes unattributed (conversations of deleted distribution channels).
Changed on 28 Oct 2026: search_conversations and GET /api/public/conversations sort like the “Conversations” page — most recently started first (before: by the latest message). The status filter only knows active (not escalated) and escalated. A key only works while the person behind it belongs to the key's workspace. Wrong arguments to an MCP tool get a sentence in your language from the server.
Tools and permissions
Every MCP tool has a REST twin under /api/public with the same data. Which tools a key sees depends on its permissions and on the role of the person it belongs to — checked at every call, not only when the key is created.
- read — read: conversations, support spaces, documents, distribution channels, live connections.
- write — create and change. The person behind the key also needs at least the editor role, as in the web app.
- admin — manage settings. No tool or route needs it today; only owners and account admins can grant it, on a key as well as on an OAuth connection.
- delete — delete for good, only under the three conditions in the “Deleting” section.
Tools marked “Account admin” need the owner or account admin role — like the answer quality and tool audit pages in the web app.
Connection
| Tool | Permission |
|---|---|
whoami | read |
Conversations
| Tool | Permission |
|---|---|
search_conversations | read |
get_conversation | read |
comment_conversation | write |
Support spaces
| Tool | Permission |
|---|---|
list_spaces | read |
get_space | read |
create_space | write |
update_space | write |
list_vector_connections | read |
list_vector_sources | read |
create_vector_source | write |
update_vector_source | write |
Knowledge: documents and folders
| Tool | Permission |
|---|---|
list_documents | read |
get_document | read |
list_document_chunks | read |
list_document_folders | read |
upload_document | write |
replace_document_content | write |
update_document | write |
reindex_document | write |
set_document_spaces | write |
move_documents | write |
create_document_folder | write |
rename_document_folder | write |
delete_document | delete |
Distribution channels
| Tool | Permission |
|---|---|
list_widgets | read |
get_widget | read |
get_widget_stats | read |
create_widget | write |
update_widget | write |
Quality and live connections
| Tool | Permission |
|---|---|
get_quality_report | readAccount admin |
list_bot_tools | read |
list_tool_calls | readAccount admin |
Deleting
Deleting tools appear in tools/list only when three things hold: the key carries the “delete” permission, it belongs to an owner or account admin, and “Deleting via AI assistants and the API” is switched on under Manage Workspace → AI assistants & API (default: off). Only what is not in use yet can be deleted.
At 121assist “not in use” means: delete_document only deletes a document no support space uses any more. Take it out of every space first with set_document_spaces and an empty list — otherwise you get 409 with the reason.
Changed on 15 Oct 2026: delete_document and DELETE /api/public/documents/{id} now require the delete permission instead of write.
Not deleting, but changing: replace_document_content replaces the content of a text or Markdown document; id, spaces and folder stay. It does not replace an uploaded PDF, Word or HTML file — that would delete the file for good (409 with the reason). set_document_spaces and move_documents only change assignments that the same call can restore.
Changed on 16 Oct 2026: replace_document_content and PUT /api/public/documents/{id}/content now only replace text and Markdown documents.
Quickstart
Create an API key and connect the MCP server at this URL:
https://www.121assist.com/mcpclaude.ai (custom connector)
In claude.ai, add a custom connector with this URL under Settings:
https://www.121assist.com/mcpclaude.ai connects via OAuth — you approve access once in the browser and pick the workspace. No key needed.
Claude Desktop
Add the MCP server to your Claude Desktop configuration and insert your API key:
{
"mcpServers": {
"121assist": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://www.121assist.com/mcp",
"--header", "Authorization: Bearer ${ASSIST_API_KEY}"],
"env": { "ASSIST_API_KEY": "sk_ast_..." }
}
}
}n8n, Make & your own scripts
Use the API key as a Bearer token or X-API-Key — for both the MCP server and the REST API:
# n8n / Make / any HTTP client — MCP server + curated REST API.
MCP endpoint: https://www.121assist.com/mcp
REST base: https://www.121assist.com/api/public
Auth (both): Authorization: Bearer sk_ast_... (or) X-API-Key: sk_ast_...
# REST endpoints mirror the MCP tools (same capabilities):
GET https://www.121assist.com/api/public/spaces
GET https://www.121assist.com/api/public/spaces/{id}
POST https://www.121assist.com/api/public/spaces # write scope; optional Idempotency-Key header
PATCH https://www.121assist.com/api/public/spaces/{id} # write scope
GET https://www.121assist.com/api/public/conversations?status=escalated
GET https://www.121assist.com/api/public/documents/{id} # poll until status is "ready"
GET https://www.121assist.com/api/public/documents/{id}/chunks
POST https://www.121assist.com/api/public/documents # write scope; optional Idempotency-Key header
PATCH https://www.121assist.com/api/public/documents/{id} # write scope; title, language, topics
PUT https://www.121assist.com/api/public/documents/{id}/spaces # write scope; which spaces answer from it
PUT https://www.121assist.com/api/public/documents/{id}/content # write scope; replace the text in place (sync)
POST https://www.121assist.com/api/public/documents/{id}/reindex # write scope
POST https://www.121assist.com/api/public/documents/move # write scope; into a folder or out of it
POST https://www.121assist.com/api/public/document-folders # write scope
GET https://www.121assist.com/api/public/widgets
POST https://www.121assist.com/api/public/widgets # write scope
PATCH https://www.121assist.com/api/public/widgets/{id} # write scope
GET https://www.121assist.com/api/public/quality # owner/account admin
GET https://www.121assist.com/api/public/bot-tools
GET https://www.121assist.com/api/public/tool-calls # owner/account admin
GET https://www.121assist.com/api/public/vector-connections
GET https://www.121assist.com/api/public/vector-sources?space_id=
POST https://www.121assist.com/api/public/spaces/{id}/vector-sources # write scope
PATCH https://www.121assist.com/api/public/vector-sources/{id} # write scope
DELETE https://www.121assist.com/api/public/documents/{id} # delete scope, see "Deleting" below
Full reference: https://www.121assist.com/api/public/developers/openapi.jsonOAuth discovery
MCP clients discover the OAuth endpoints automatically via the well-known paths:
# OAuth 2.1 discovery (RFC 8414 / RFC 9728)
Authorization server: https://www.121assist.com/.well-known/oauth-authorization-server
Protected resource: https://www.121assist.com/.well-known/oauth-protected-resource/mcp
MCP endpoint: https://www.121assist.com/mcpOpenAPI
The reference for the public REST endpoints: openapi.json
The public REST endpoints mirror the MCP tools 1:1 — the same capabilities over two transports.
