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.
| Edition | Token |
|---|---|
| Desktop and Home Server Community | The 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 Enterprise | A 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.
- The token is in the
tokenfield, returned once. A lost token cannot be recovered; revoke it and make another. expiresInDaysis30,60,90or180; leave it out for a token that does not expire.GETthe 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
| Status | Means |
|---|---|
400 | A malformed body or a rejected value. Another user's source also answers 400 |
401 | No token, or one that is not valid |
403 | Your role does not allow it; {"error":"not_licensed"} for Microsoft 365 without an Enterprise license |
404 | An unknown conversation, file or pushed document |
409 | The source is already registered |
429 | A rate limit, a quota or the spending limit. A rate limit sends Retry-After |
- A failure body is usually JSON with an
errorordetailfield. - 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.
Search
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
| Field | Type | Default | Description |
|---|---|---|---|
query | string | required | Up to 2,000 characters. |
topK | number | 10 | Results to return, 1 to 50. |
minScore | number | 0.3 | Minimum similarity for vector matches, above 0 and up to 1. Keyword matches are not filtered by it. |
Example
Response
| Field | Description |
|---|---|
id | The passage. A document with several matching passages returns several results. |
title | The document's name at its source: a page heading, an issue summary, a file name. Null if the document has been deleted. |
snippet | The first 300 characters of the passage, with ... when there is more. |
sourceUrl | Where the document came from. A file name for files, never a server path. |
connectorType | The source type, as in the list below; files for every file source. |
score | Relevance 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.
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
| Field | Type | Description |
|---|---|---|
message | string | The question, up to 100,000 characters. |
conversationId | string | Continue a conversation. Leave out to start one. |
mentions | string[] | Source names to search first. |
skillMentions | string[] | Skills to load for this message. |
attachments | string[] | The fileName of each file uploaded to the conversation (below). |
permissionMode | string | How 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.
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.
| Type | Meaning |
|---|---|
text | A piece of the answer. Concatenate them in order. |
thinking | The model is thinking; data is an estimated token count, never the text. |
tool-start, tool-result | The agent called toolName with the arguments in data; the call callId finished with the result in data. |
tool-approval-request | A change waits for approval (below). |
tool-enable-request | A change needs Write turned on for a connection. |
user-question | The agent asks you something; data holds the questions. |
step-limit | The agent reached its iteration limit and asks whether to continue. |
agent-status | An 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-mail | The agent read what reached it: data holds entries, each with agentId, title and kind (report, message, alarm, background, approval, context or user_talk). |
title, usage | The conversation's title; its token counts so far. |
condense-start, condense-end | Older messages are being condensed. |
guardrail | A guardrail acted: stage, verdict, categories. |
retry, error | The turn is retried; the turn failed, with the reason in data. |
turn-start, done | A 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. |
Conversations
| Call | Effect |
|---|---|
GET /api/v1/chat/conversations | Your 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}/status | Whether a turn is running. |
POST /api/v1/chat/conversations/{id}/tool-approval | Answer an approval: {"callId": "...", "decision": "ACCEPT_ONCE"}, or ACCEPT_ALL (for the rest of the conversation), or DENY. |
POST /api/v1/chat/conversations/{id}/stop | Stop the running turn. |
GET /api/v1/chat/conversations/{id}/agent-tree | Every 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}/alarms | Its pending alarms, soonest first: alarmId, dueAt, note. |
DELETE /api/v1/chat/conversations/{id}/alarms/{alarmId} | Cancel an alarm. |
GET /api/v1/chat/approvals | Your 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}/approvals | The same, for every agent of the tree this conversation is in. |
POST /api/v1/chat/approvals/decide | Decide 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.
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.
- Optional:
recursiveandfileTypesfor file sources. 409withalready_registeredorduplicatewhen the source exists.- A website:
POST /api/v1/indexing/register/webpagewithseedUrl,name,maxDepth(default 3, up to 50),maxPages(default 100, up to 20,000),sameDomainOnly,renderJsandincludePattern.
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;409while it is being processed. Owner only./items/{documentId}/preview:{"chunks": [...]}, the text search sees.
Changing and removing
| Call | Effect |
|---|---|
PATCH /api/v1/indexing/{id}/config | Change 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}/priority | Index it before your other sources. |
PATCH /api/v1/indexing/{id}/graph | Turn knowledge-graph extraction on or off. |
PATCH /api/v1/indexing/{id}/shared | Enterprise Share it with everyone, or stop. |
POST /api/v1/indexing/{id}/retry-failed | Retry 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.
| Part | Required | Description |
|---|---|---|
file | yes | The file. |
folder | no | The folder to put it in. |
relativePath | no | Its path inside an uploaded folder tree, to keep the structure. |
Listing, quota and deleting
| Call | Effect |
|---|---|
GET /api/v1/files | Everything you have uploaded. |
GET /api/v1/files/quota | usedBytes and quotaBytes. |
GET /api/v1/files/folders | Your folders. |
POST /api/v1/files/check-duplicates | Whether 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:
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.
| Field | Required | Description |
|---|---|---|
id | yes | Your id for the document: letters, digits and . _ : @ ~ + = -, up to 200 characters. |
title | yes | Up to 500 characters. |
text | yes | The content, up to 1,000,000 characters. |
format | no | markdown (default) or text. |
url | no | An http(s) address search results link to. |
author | no | Who wrote it. |
createdAt, updatedAt | no | ISO-8601, for example 2026-10-14T09:30:00Z or 2026-10-14. |
metadata | no | Up to 50 names with text, number or true/false values. They are indexed with the text. |
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.
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
| Call | Effect |
|---|---|
GET .../documents?page=0&size=20 | The 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. |
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.
| Status | Means |
|---|---|
202 | The run started |
429 | This webhook started a run less than a minute ago. Retry-After says when to try again |
409 | Held: the agent or its project is paused, or the project's run-as person is not an Editor |
404 | Anything 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.
| Field | Meaning |
|---|---|
status | ok if the application answered. |
edition | Desktop, Home Server or Enterprise Server. |
version | The running version. |
platform | windows, macos or linux. |
uptimeSeconds, uptime | Time 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.
| Field | Meaning |
|---|---|
version, platform, serverPort | The running version, the operating system, the port. |
branding | The product name and icon the interface shows. |
fileUpload | Whether documents are added by upload rather than by folder. |
homeServer | Whether this is Home Server. |
teamsEnabled, chatsEnabled, outlookEnabled | Which 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_HOSTSopens it beyond the machine,/mcpanswers only withPROXYMA_EXPOSE_MCP=true.
Claude Code
Run this in a terminal; it also connects the VS Code extension. Manage it afterwards with
/mcp.
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.
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.
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:
ChatGPT on the web cannot reach a server on your own computer.
Gemini CLI
Or in ~/.gemini/settings.json. The field is httpUrl; url
means an SSE server and does not connect.
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.
Cursor
In ~/.cursor/mcp.json for every project, or .cursor/mcp.json in one.
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/toolslists 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.