Skip to content

HTTP API and MCP reference

The endpoints for search, asking a question, sources, uploads and instance information, and how to connect an AI assistant over MCP. One API serves Proxyma Desktop, Home Server and Enterprise Server.

Replace the host in every example

Examples use https://your-proxyma-host. On Proxyma Desktop it is http://127.0.0.1:4246; on Home Server and Enterprise Server, the address of its web interface.

Before you start

Authentication

Send a token with every call; the few that need none are in the table.

-H "Authorization: Bearer <your-token>"
EditionToken
Desktop and Home Server CommunityThe installation's own token, pxm_ and 64 hex characters, shown in Settings → AI Assistants. It changes only when the access code changes. Without it, every call but the health checks answers 401
Enterprise Server EnterpriseA personal token from Settings → API Tokens. It has its account's permissions and never more. Without one, calls answer 401, except the health checks, GET /api/v1/config, /api/v1/events, /api/v1/legal/..., /api/v1/maintenance/status and /announcement, GET /api/v1/chat/guest-allowance and POST /api/v1/feedback. Chat answers a guest where guest chat is on

One token serves MCP and HTTP. There is no separate API key.

Tokens Enterprise

Create one in Settings → API Tokens, or over the API with a signed-in browser's session token (its PROXYMA-TOKEN cookie). An API token cannot create tokens.

curl -X POST https://your-proxyma-host/api/v1/settings/mcp-tokens \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <your-session-token>" \
  -d '{"label": "ci-pipeline", "expiresInDays": 90}'
  • The token is in the token field, returned once. A lost token cannot be recovered; revoke it and make another.
  • expiresInDays is 30, 60, 90 or 180; leave it out for a token that does not expire.
  • GET the same path lists your tokens by their first 12 characters. DELETE /api/v1/settings/mcp-tokens/{id} revokes one.
  • An expired or revoked token answers 401.

Errors and limits

StatusMeans
400A malformed body or a rejected value. Another user's source also answers 400
401No token, or one that is not valid
403Your role does not allow it; {"error":"not_licensed"} for Microsoft 365 without an Enterprise license
404An unknown conversation, file or pushed document
409The source is already registered
429A rate limit, a quota or the spending limit. A rate limit sends Retry-After
  • A failure body is usually JSON with an error or detail field.
  • Unknown fields in a request body are ignored, not rejected: a misspelled field silently takes its default.
  • Enterprise Rate limits per minute, counted per account for a signed-in browser, per address for a call with an API token or none, and per token on MCP: search 30; sending, stopping and adding to a chat 30; the chat event stream 60; MCP 60 per token; uploads 600; anything else 120.

Matching passages with their sources, from the same keyword and vector search chat uses. The query goes to your embedding provider, and to a model too when query expansion or reranking is on; no answer is written, so it costs far less than a question.

POST /api/v1/search

FieldTypeDefaultDescription
querystringrequiredUp to 2,000 characters.
topKnumber10Results to return, 1 to 50.
minScorenumber0.3Minimum similarity for vector matches, above 0 and up to 1. Keyword matches are not filtered by it.

Example

curl -X POST https://your-proxyma-host/api/v1/search \
  -H "Authorization: Bearer <your-token>" \
  -H "Content-Type: application/json" \
  -d '{"query": "authentication flow", "topK": 5, "minScore": 0.4}'

Response

{
  "query": "authentication flow",
  "totalResults": 1,
  "results": [
    {
      "id": "a3f1c2e4-...",
      "title": "Authentication design",
      "snippet": "The auth module handles JWT...",
      "sourceUrl": "https://confluence.example.com/display/PROJ/auth-design",
      "connectorType": "confluence",
      "score": 0.87
    }
  ]
}
FieldDescription
idThe passage. A document with several matching passages returns several results.
titleThe document's name at its source: a page heading, an issue summary, a file name. Null if the document has been deleted.
snippetThe first 300 characters of the passage, with ... when there is more.
sourceUrlWhere the document came from. A file name for files, never a server path.
connectorTypeThe source type, as in the list below; files for every file source.
scoreRelevance from 0 to 1, comparable within one response.

Asking a question

An answer written by the agent. It is billed by your AI provider and takes as long as the model takes.

The answer arrives separately

POST /api/v1/chat returns a conversation id at once, before the answer exists. The answer streams on GET /api/v1/chat/events/{conversationId}.

POST /api/v1/chat

FieldTypeDescription
messagestringThe question, up to 100,000 characters.
conversationIdstringContinue a conversation. Leave out to start one.
mentionsstring[]Source names to search first.
skillMentionsstring[]Skills to load for this message.
attachmentsstring[]The fileName of each file uploaded to the conversation (below).
permissionModestringHow the agent treats a change: ASK (Ask, the default), AUTO (Auto) or READ_ONLY (Read-only); any other value is ASK. See the three gates.

The arrays take up to 100 entries each.

curl -X POST https://your-proxyma-host/api/v1/chat \
  -H "Authorization: Bearer <your-token>" \
  -H "Content-Type: application/json" \
  -d '{"message": "Which open bugs mention the trap handler?"}'

{"conversationId": "7c9e6679-..."}

To attach a file, POST /api/v1/chat/conversations/{conversationId}/attachments as multipart/form-data with a file part, up to 25 MB. It returns fileName, sizeBytes and a url to download it.

GET /api/v1/chat/events/{conversationId}

A text/event-stream of the turn as it runs. Open it after posting: it replays the turn from its first event. A keepalive comment comes every 15 seconds.

Every event is named chat. Its data is JSON with type, callId, toolName, data, parentCallId, seq (its order), at and now (milliseconds). Empty values are "". These are the main types; ignore any type you do not handle.

TypeMeaning
textA piece of the answer. Concatenate them in order.
thinkingThe model is thinking; data is an estimated token count, never the text.
tool-start, tool-resultThe agent called toolName with the arguments in data; the call callId finished with the result in data.
tool-approval-requestA change waits for approval (below).
tool-enable-requestA change needs Write turned on for a connection.
user-questionThe agent asks you something; data holds the questions.
step-limitThe agent reached its iteration limit and asks whether to continue.
agent-statusAn agent this conversation deployed changed status. callId is its agentId; data holds agentId, title, status, lifetime, depth, owesReport and its conversationId, whose own stream carries its work.
agent-mailThe agent read what reached it: data holds entries, each with agentId, title and kind (report, message, alarm, background, approval, context or user_talk).
title, usageThe conversation's title; its token counts so far.
condense-start, condense-endOlder messages are being condensed.
guardrailA guardrail acted: stage, verdict, categories.
retry, errorThe turn is retried; the turn failed, with the reason in data.
turn-start, doneA turn starts; it is finished. done with data more means deployed agents or background work are still running: a report, an alarm or a background result can start another turn later on the same stream.
curl -N -H "Authorization: Bearer <your-token>" \
  https://your-proxyma-host/api/v1/chat/events/7c9e6679-...

Conversations

CallEffect
GET /api/v1/chat/conversationsYour conversations, newest first; page and size (up to 100).
GET /api/v1/chat/conversations/{id}One conversation with its messages and token counts.
GET /api/v1/chat/conversations/{id}/statusWhether a turn is running.
POST /api/v1/chat/conversations/{id}/tool-approvalAnswer an approval: {"callId": "...", "decision": "ACCEPT_ONCE"}, or ACCEPT_ALL (for the rest of the conversation), or DENY.
POST /api/v1/chat/conversations/{id}/stopStop the running turn.
GET /api/v1/chat/conversations/{id}/agent-treeEvery agent of the tree this conversation is in: agentId, conversationId, title, status, depth, lastReport, tokens and costUsd.
POST /api/v1/chat/conversations/{id}/agent-tree/{agentId}/{action}pause, resume, stop (with every agent it deployed) or dismiss an agent of that tree.
GET /api/v1/chat/conversations/{id}/alarmsIts pending alarms, soonest first: alarmId, dueAt, note.
DELETE /api/v1/chat/conversations/{id}/alarms/{alarmId}Cancel an alarm.
GET /api/v1/chat/approvalsYour changes kept for a decision, asked for by agents while nobody watched their conversation, newest first: those still waiting, or every one with pending=false; page and size. Each has id, conversationId, agentTitle, toolName, arguments, status (PENDING, APPROVED, DENIED, EXPIRED, REPLACED when a newer request for the same thing took its place, or WITHDRAWN when it was taken back - by an agent, or by Proxyma when it could no longer be made), note and result.
GET /api/v1/chat/conversations/{id}/approvalsThe same, for every agent of the tree this conversation is in.
POST /api/v1/chat/approvals/decideDecide up to 100 at once: {"ids": ["..."], "decision": "APPROVE", "note": "..."}, or DENY. Only the person the agent works for decides; the answer counts decided and skipped. A request of a read-only project - its add-on no longer in force - is refused with 403 and an error, and nothing is decided.
DELETE /api/v1/chat/conversations/{id}Delete it.

Sources

A source is one indexed item: a folder, a Jira project, a website. Source endpoints are under /api/v1/indexing.

GET /api/v1/indexing/summary

Totals, and a short preview of each type. Enterprise Add ?includeShared=true to count shared sources too.

{
  "totalSources": 12,
  "totalDocs": 3480,
  "activeIndexingCount": 0,
  "byType": { "confluence": { "total": 3, "preview": [ ... ] } }
}

activeIndexingCount is the documents being downloaded, converted or embedded now.

GET /api/v1/indexing/by-type/{type}

Sources of one type, a page at a time: page, size (20 by default, up to 100), q to filter by name, and includeShared. The response is items, page, totalPages, totalItems and hasMore. {type} is one of:

all, files, webpage, networkshare, jira, confluence, bitbucket, bitbucketcloud, github, gitlab, svn, linear, asana, monday, trello, clickup, airtable, notion, slack, gmail, googlecalendar, googledrive, imap, dropbox, box, hubspot, salesforce, zendesk, freshdesk, zoom, youtube, custom, and on Enterprise Server onedrive, sharepoint, teams, teamschat and outlook.

POST /api/v1/indexing/register

Add a source of any type. GET /api/v1/connectors/catalog lists the types this installation offers and the fields each takes.

curl -X POST https://your-proxyma-host/api/v1/indexing/register \
  -H "Authorization: Bearer <your-token>" \
  -H "Content-Type: application/json" \
  -d '{"type": "github", "connectionId": "<connection id>", "config": {"repository": "acme/website"}}'

{"id": "..."}
  • Optional: recursive and fileTypes for file sources.
  • 409 with already_registered or duplicate when the source exists.
  • A website: POST /api/v1/indexing/register/webpage with seedUrl, name, maxDepth (default 3, up to 50), maxPages (default 100, up to 20,000), sameDomainOnly, renderJs and includePattern.

POST /api/v1/indexing/{id}/sync

Start a full sync now. Returns {"started": true}, or false if one is already running; then one follow-up sync runs when it ends, however many requests arrive meanwhile. A full sync also removes what was deleted at the source, unless it finds fewer than half the items the source had.

POST /api/v1/indexing/{id}/reindex

Rebuild the source from scratch, for example after changing the embedding model. It stays searchable meanwhile.

GET /api/v1/indexing/{id}/items

The source's documents with their indexing status, failed first, up to size (50 by default, up to 200) at a time. Pass the returned nextCursorFailed, nextCursorTouched and nextCursorId back as cursorFailed, cursorTouched and cursorId for the next page.

  • /items/active: the documents being processed now.
  • POST /items/{documentId}/reindex: index one document again; 409 while it is being processed. Owner only.
  • /items/{documentId}/preview: {"chunks": [...]}, the text search sees.

Changing and removing

CallEffect
PATCH /api/v1/indexing/{id}/configChange what it covers - file types, subfolders, crawl limits - and index again. On Desktop, path points a moved folder at its new place.
PATCH /api/v1/indexing/{id}/priorityIndex it before your other sources.
PATCH /api/v1/indexing/{id}/graphTurn knowledge-graph extraction on or off.
PATCH /api/v1/indexing/{id}/sharedEnterprise Share it with everyone, or stop.
POST /api/v1/indexing/{id}/retry-failedRetry only the documents that failed.
DELETE /api/v1/indexing/{id}Remove the source and its index. An upload source's files are deleted with it; a Desktop folder is untouched.

Uploading documents

Home Server and Enterprise Server take documents by upload. Upload into a folder, then register the folder as a source: POST /api/v1/files/folders/register with {"folder": "policies"}.

POST /api/v1/files

multipart/form-data, up to 200 MB per file.

PartRequiredDescription
fileyesThe file.
foldernoThe folder to put it in.
relativePathnoIts path inside an uploaded folder tree, to keep the structure.
curl -X POST https://your-proxyma-host/api/v1/files \
  -H "Authorization: Bearer <your-token>" \
  -F "file=@handbook.pdf" \
  -F "folder=policies"

{
  "id": "b12f...",
  "originalName": "handbook.pdf",
  "mimeType": "application/pdf",
  "sizeBytes": 481923,
  "uploadedAt": "2026-10-14T10:04:11Z"
}

Listing, quota and deleting

CallEffect
GET /api/v1/filesEverything you have uploaded.
GET /api/v1/files/quotausedBytes and quotaBytes.
GET /api/v1/files/foldersYour folders.
POST /api/v1/files/check-duplicatesWhether these files are already here.
DELETE /api/v1/files/{fileId}Delete an uploaded file.

Pushing documents to a custom source

A custom source holds documents your own scripts and tools send it - from Zapier, Make, n8n, a cron job - rather than reading them from a service. Add one in Sources → Connect → Custom source, open it, and choose Ingestion API to see its endpoint and create a token. Every edition has custom sources. On Proxyma Enterprise Server only the source's owner pushes to it and creates its tokens; sharing it lets others search it.

Each call carries the source's ingest token, and nothing else:

-H "Authorization: Bearer pxm_..."

An ingest token opens its own source's ingestion endpoints and nothing else - not other sources, not search, not MCP. No other token or session opens these endpoints. It is shown once, when it is created; a source holds up to 10, and revoking one stops it at once. On Proxyma Desktop and the Home Server a script needs the token only, not the access code.

POST /api/v1/ingest/sources/{sourceId}/documents

Adds a document, or replaces the one with the same id. Sending the same content again changes nothing. outcome is created, replaced or unchanged; the document is searchable once it is indexed, usually within a minute.

FieldRequiredDescription
idyesYour id for the document: letters, digits and . _ : @ ~ + = -, up to 200 characters.
titleyesUp to 500 characters.
textyesThe content, up to 1,000,000 characters.
formatnomarkdown (default) or text.
urlnoAn http(s) address search results link to.
authornoWho wrote it.
createdAt, updatedAtnoISO-8601, for example 2026-10-14T09:30:00Z or 2026-10-14.
metadatanoUp to 50 names with text, number or true/false values. They are indexed with the text.
curl -X POST https://your-proxyma-host/api/v1/ingest/sources/{sourceId}/documents \
  -H "Authorization: Bearer pxm_..." \
  -H "Content-Type: application/json" \
  -d '{"id": "release-2.0", "title": "Release 2.0", "text": "Offline mode is here.",
       "url": "https://example.com/releases/2.0", "metadata": {"team": "Platform"}}'

{"id": "release-2.0", "outcome": "created"}

A file instead of text: send multipart/form-data with the file in file and the other fields as form fields (metadata as a JSON string). Up to 200 MB, in a type Proxyma indexes: PDF, Office, text, markdown, HTML or CSV.

curl -X POST https://your-proxyma-host/api/v1/ingest/sources/{sourceId}/documents \
  -H "Authorization: Bearer pxm_..." \
  -F "file=@handbook.pdf" -F "id=handbook" -F "url=https://intranet.example.com/handbook"

POST /api/v1/ingest/sources/{sourceId}/documents/batch

Up to 100 documents in {"documents": [...]}, each as above. The batch is checked whole first: one refused document refuses it all, and index says which (from 0). A request body is at most 4 MB.

Listing and deleting

CallEffect
GET .../documents?page=0&size=20The documents, newest first, 20 a page (up to 100), each with status (RECEIVED, QUEUED, COMPLETED, FAILED...) and failure. The answer has totalItems and totalPages.
DELETE .../documents/{id}Deletes the document and removes it from search at once. 404 when there is none.
curl -X DELETE https://your-proxyma-host/api/v1/ingest/sources/{sourceId}/documents/release-2.0 \
  -H "Authorization: Bearer pxm_..."

401 means no token or one that is not this kind; 403 a token of another source; 413 something over its limit. A source holds up to 100,000 documents.

Starting a Constellations agent Enterprise

A saved agent of a Constellations project can be started from outside. Open the agent, choose Triggers → Add trigger → Webhook, write its task, save, and copy its address and token. The token is shown once; a new token, or removing the trigger, stops the old one. An agent can have several webhooks, each with its own task and token.

POST /api/v1/constellations/hooks/{triggerId}

Starts one run of the webhook's task, in a conversation of its own, as the project's run-as person. The body, of any type, reaches the agent as data, never as instructions; its first 16,000 characters are kept. Send the webhook's token, not an API token.

curl -X POST https://your-proxyma-host/api/v1/constellations/hooks/{triggerId}   -H "Authorization: Bearer cxh_..."   -H "Content-Type: application/json"   -d '{"event": "order.created", "order": "A-1042"}'

{"status": "started"}
StatusMeans
202The run started
429This webhook started a run less than a minute ago. Retry-After says when to try again
409Held: the agent or its project is paused, or the project's run-as person is not an Editor
404Anything else: an unknown webhook, one switched off, a wrong or replaced token, or no Enterprise license in force

Instance information

GET /api/v1/health

Whether the instance is up, and what it is. Needs no token and returns nothing sensitive: point a monitor here.

curl https://your-proxyma-host/api/v1/health

{
  "status": "ok",
  "edition": "Desktop",
  "version": "0.42.7",
  "platform": "windows",
  "uptimeSeconds": 92,
  "uptime": "1m 32s"
}
FieldMeaning
statusok if the application answered.
editionDesktop, Home Server or Enterprise Server.
versionThe running version.
platformwindows, macos or linux.
uptimeSeconds, uptimeTime since start, in seconds and for a person to read.

These six fields are the whole response, and stay so. For orchestrators: GET /api/v1/health/live answers {"status":"ok"}, and GET /api/v1/health/ready answers 200 when ready, or 503 with the reasons.

GET /api/v1/config

How the web interface is set up. It changes shape as the interface does; use the health check for monitoring. Needs a token on Desktop and Home Server.

FieldMeaning
version, platform, serverPortThe running version, the operating system, the port.
brandingThe product name and icon the interface shows.
fileUploadWhether documents are added by upload rather than by folder.
homeServerWhether this is Home Server.
teamsEnabled, chatsEnabled, outlookEnabledWhich Microsoft 365 sources the administrator turned on.

MCP

An AI assistant that speaks the Model Context Protocol can search your sources itself. The endpoint is Streamable HTTP:

https://your-proxyma-host/mcp
  • Every client sends a token, as in Authentication.
  • Settings → AI Assistants shows the configurations below with your address and token filled in, ready to copy.
  • Assistants change nothing in your connected systems until you turn on Let assistants make changes there.
  • Community On Home Server, once PROXYMA_ALLOWED_HOSTS opens it beyond the machine, /mcp answers only with PROXYMA_EXPOSE_MCP=true.

Claude Code

Run this in a terminal; it also connects the VS Code extension. Manage it afterwards with /mcp.

claude mcp add --transport http proxyma https://your-proxyma-host/mcp \
  --header "Authorization: Bearer <your-token>"

Or add it to .mcp.json (a project) or ~/.claude.json (every project). "type": "http" is required; without it the entry fails to connect without saying why.

{
  "mcpServers": {
    "proxyma": {
      "type": "http",
      "url": "https://your-proxyma-host/mcp",
      "headers": { "Authorization": "Bearer <your-token>" }
    }
  }
}

Claude Desktop

Community On Desktop and Home Server: Settings → AI Assistants → Claude Desktop → Download for Claude, then choose Install in Claude. The file carries your address and token.

Otherwise, through the mcp-remote bridge, which needs Node.js 18 or later. Open Settings > Developer > Edit Config, add the entry, then quit and reopen Claude. For an http:// address, such as Desktop's, add "--allow-http" after the address.

{
  "mcpServers": {
    "proxyma": {
      "command": "npx",
      "args": ["mcp-remote", "https://your-proxyma-host/mcp",
               "--header", "Authorization:${AUTH_HEADER}"],
      "env": { "AUTH_HEADER": "Bearer <your-token>" }
    }
  }
}

The token is in env because Claude Desktop on Windows does not escape spaces in args.

ChatGPT and Codex

The ChatGPT desktop app, the Codex CLI and the Codex extension for VS Code share one setting. Install the Codex CLI, sign in with your ChatGPT account, set the environment variable PROXYMA_TOKEN to your token, and run:

codex mcp add proxyma --url https://your-proxyma-host/mcp --bearer-token-env-var PROXYMA_TOKEN

ChatGPT on the web cannot reach a server on your own computer.

Gemini CLI

gemini mcp add -s user --transport http --header "Authorization: Bearer <your-token>" proxyma https://your-proxyma-host/mcp

Or in ~/.gemini/settings.json. The field is httpUrl; url means an SSE server and does not connect.

{
  "mcpServers": {
    "proxyma": {
      "httpUrl": "https://your-proxyma-host/mcp",
      "headers": { "Authorization": "Bearer <your-token>" }
    }
  }
}

GitHub Copilot (VS Code)

In .vscode/mcp.json, or MCP: Open User Configuration for every workspace. The key is servers, and "type": "http" is required.

{
  "servers": {
    "proxyma": {
      "type": "http",
      "url": "https://your-proxyma-host/mcp",
      "headers": { "Authorization": "Bearer <your-token>" }
    }
  }
}

Cursor

In ~/.cursor/mcp.json for every project, or .cursor/mcp.json in one.

{
  "mcpServers": {
    "proxyma": {
      "url": "https://your-proxyma-host/mcp",
      "headers": { "Authorization": "Bearer <your-token>" }
    }
  }
}

What a client can reach

  • The token owner's sources and shared ones, never another person's private sources.
  • The agent's tools: search of your sources and the knowledge graph, the web, memory, sources (list, add, remove, read live), SVN reads, and Jira, Confluence, Bitbucket and YouTube reads and writes. GET /api/v1/mcp/tools lists the tools your license and role allow.
  • With Let assistants make changes on, and Write on for a connection, a client can change that system through these tools, and nobody is asked to approve it.

Proxyma as an MCP client

Proxyma's agent can also use other MCP servers' tools. See MCP servers in the manual.

Tiếng Việt