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

ToolPermission
whoamiread

Conversations

ToolPermission
search_conversationsread
get_conversationread
comment_conversationwrite

Support spaces

ToolPermission
list_spacesread
get_spaceread
create_spacewrite
update_spacewrite
list_vector_connectionsread
list_vector_sourcesread
create_vector_sourcewrite
update_vector_sourcewrite

Knowledge: documents and folders

ToolPermission
list_documentsread
get_documentread
list_document_chunksread
list_document_foldersread
upload_documentwrite
replace_document_contentwrite
update_documentwrite
reindex_documentwrite
set_document_spaceswrite
move_documentswrite
create_document_folderwrite
rename_document_folderwrite
delete_documentdelete

Distribution channels

ToolPermission
list_widgetsread
get_widgetread
get_widget_statsread
create_widgetwrite
update_widgetwrite

Quality and live connections

ToolPermission
get_quality_reportreadAccount admin
list_bot_toolsread
list_tool_callsreadAccount 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/mcp

claude.ai (custom connector)

In claude.ai, add a custom connector with this URL under Settings:

https://www.121assist.com/mcp

claude.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.json

OAuth 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/mcp

OpenAPI

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.