Skip to main content

OpenAPI download

Import the JSON file below into an API tool that supports OpenAPI 3.1 to inspect parameters, responses, and authentication requirements. Request and response schemas declare the JSON Schema Draft 7 dialect. The file describes only the published HTTP endpoints listed in the table.

Download Agent Service OpenAPI JSON

Also available: model protocol proxy OpenAPI JSON and Workflow Service OpenAPI JSON. Each file uses its own service address and credential.

Agent Service coverage​

Method and pathPurposeGuide
GET /api/client-handshakeVerify an existing instance credential and service identityConnection and authentication
POST /api/webhook/{agent_id}Trigger an administrator-configured Agent eventAgent Webhook
GET /api/agents/{id}/webhooksRead event settings and available ToolsAgent Webhook
PUT /api/agents/{id}/webhooks/events/{event}Create or replace an event with selected ToolsAgent Webhook
PATCH /api/agents/{id}/webhooksEnable or pause event triggersAgent Webhook
DELETE /api/agents/{id}/webhooks/events/{event}Delete an existing eventAgent Webhook
POST /api/agents/{id}/webhooks/secret/rotateRotate the Agent's dedicated Webhook secretAgent Webhook
GET /api/agents/{agentId}/schedule-messagesRead visible background messages and deliveriesAgent Webhook
GET /api/agentsRead Agent summariesAgent list
GET /api/agents/{id}/input-configRead lightweight input mode and configuration digestInput configuration
GET /api/network/healthRead upstream network observationsInstance Diagnostics and Usage
GET /api/runs/recent-callsRead recent tool-call metadata for the current userRecent tool calls
GET /api/runs/usage/summaryRead recorded usage aggregates for the current userRecorded usage
GET /api/sessions/messages/allRead merged history with revision paginationMerged history
GET /api/runsRead filtered instance Run metadataRun list
GET /api/runs/{id}Read one Run's metadataRun details
GET /api/runs/{id}/runtime-stateRead the raw Run stateRun state
GET /api/runs/{id}/receiptRead receipts owned by the trusted userRun receipts
POST /api/query/startSubmit a new conversation requestConversations and Runs
POST /api/query/follow-upSubmit another turn to an established sessionConversations and Runs
POST /api/query/client-requests/lookupReconcile admission by stable request IDConversations and Runs
GET /api/sessionsList historical sessionsSession history and messages
GET /api/sessions/{runId}Read a full session snapshotSession history and messages
GET /api/sessions/{runId}/messagesPage through durable messagesSession history and messages
GET /api/sessions/messages/searchSearch an Agent’s historical messagesSession history and messages
GET /api/conversation/{agentId}/overviewRead the conversation topic overviewSession history and messages
GET /api/conversation/{agentId}/matters/{id}/fullRead a topic’s messagesSession history and messages
POST /api/attachmentsUpload an attachment and obtain a file referenceAttachments and media
GET /api/attachments/{attachmentId}Download an attachment owned by the current userAttachments and media
POST /api/media/uploadUpload an image, audio, or videoAttachments and media
POST /api/media/access-urlsIssue short-lived media access URLsAttachments and media
GET /media/{filename}Read signed media, including byte rangesAttachments and media
GET /api/taskboardsList readable task boardsTaskBoard reads
POST /api/taskboards/queryQuery boards and tasksTaskBoard reads
GET /api/taskboards/{id}Read a board projectionTaskBoard reads
GET /api/taskboards/{id}/tasks/{taskId}Read one taskTaskBoard reads
GET /api/taskboards/{id}/activityRead board handoff evidenceTaskBoard reads
GET /api/taskboards/{id}/tasks/{taskId}/activityPage task activityTaskBoard reads
POST /api/taskboards/session-board/resolveResolve an existing session boardTaskBoard reads
GET /api/s3/connectionsRead configured connection summariesS3 object reads
GET /api/s3/listList stored objectsS3 object reads
GET /api/s3/downloadDownload bytes or request an object linkS3 object reads
GET /api/runs/{id}/workersList parent Run WorkersGuide
GET /api/runs/{id}/workers/{workerId}/transcriptRead valid-entry transcript pagesGuide
GET /api/manual-topics/archivedRead owner-wide archived topicsGuide
GET /api/sessions/{runId}/runtime-stateRead a session recovery referenceGuide
POST /api/compute/preparation/retryExplicitly retry compute preparationGuide
GET /api/team-archiveList team archive summariesGuide
POST /api/team-archive/{archiveId}/restoreExplicitly restore one teamGuide
POST /api/workflow-definitions/{workflowId}/taskboard-bindingsBind an exact owned Workflow definitionGuide

Braces identify path parameters to replace, corresponding to colon notation in the endpoint guides. Webhook management requires capabilities.webhookManagement: true from the authenticated handshake and the instance owner's credential. Older instances without that capability use administrator-enabled and verified events. Run lists and details use the deployment owner's instance read access; receipt access additionally checks trusted-user ownership.

Model protocol proxy coverage​

Method and pathPurpose
GET /v1/modelsList models configured under enabled Providers
POST /v1/messagesSubmit a Messages request, optionally with streaming SSE
POST /v1/chat/completionsSubmit a Chat Completions request, optionally with streaming SSE

Follow Model protocol proxy to obtain the current loopback Base URL and a Provider-bound safe token. That Base URL already includes /v1. Set the imported server to its origin, preserving the actual port, so the paths in the file add /v1. ProxyBearer uses Bearer and ProxyApiKey uses x-api-key; select either scheme for an operation.

The model inventory is not filtered by the token's Provider binding. Listing a model does not authorize the token to call it. The file presents the published protocol subset; optional parameters, tools, and structured output still depend on conversion and the target backend. The client must inspect and handle errors within a stream.

Workflow Service coverage​

Method and pathPurpose
GET /api/workflowsRead deployed Workflow metadata
POST /api/workflow/webhookTrigger a preconfigured Workflow using required query parameter id
GET /api/workflow/eventsWatch SSE events using required query parameter runId
GET /api/workflow/{id}/runsRead visible Run summaries
GET /api/workflow/{id}/runs/{runId}Read one Run's details

Use the Workflow Service address separately supplied by the administrator and the WorkflowToken scheme, which sends X-Workflow-Service-Token. The default Agent Service reverse proxy does not expose these Workflow paths. See Workflow integration.

The Workflow file presents response fields from the current implementation and permits additional fields. It does not claim that the HTTP interface applies closed Schema validation to every field. The preconfigured Webhook, event stream, and history reads do not issue executionGrantId. The file excludes /api/workflow/run, which requires additional execution authorization, and retired definition writes.

Set the address and credential after import​

Replace the example server https://your-instance.example with the instance HTTPS address supplied by the administrator. Preserve any nonstandard port. This address excludes /api and is separate from the documentation website address. See Connection and authentication.

Authentication scheme in the fileCredentialHow to send it
InstanceTokenExisting instance access tokenX-Agent-Service-Token: <instance token>
WebhookSecretDedicated secret for the target Agent WebhookAuthorization: Bearer <Webhook secret>
SignedMediaSignatureShort-lived signature returned by the media access endpointURL query parameter signature, together with expires

The table applies to the Agent Service file. Select the scheme required by the operation. Provider API keys let DesireCore connect to model providers; the proxy and Workflow files use their own addresses and authentication schemes.

Interpret responses correctly​

A 200 handshake response verifies the current credential. Individual features also depend on instance configuration, permissions, and actual capabilities.

Webhook 200 with accepted: true acknowledges the trigger. The response has no Run ID or final result, and a later background failure does not change the HTTP response. Follow the Webhook guide for result delivery, timeouts, and duplicate requests.

Error structures vary by endpoint. Generated client code should preserve the HTTP status and actual response body. Reverse proxies may also return plain text or a webpage; see Errors and troubleshooting.

Socket.IO connections, subscriptions, and asynchronous events require corresponding client logic. The OpenAPI file describes the HTTP portion and does not represent these events as SSE endpoints.

A conversation submission's 202 response also does not prove completion. Connect Socket.IO first and submit its current socket.id as originSocketId; the HTTP request and socket must identify the same authenticated principal. Stable clientInstanceId belongs to Socket authentication data. After a disconnect, follow the reconciliation steps in Conversations and Runs; a Run's idle state does not prove that a particular submission succeeded.

The file's info.version is the version of this HTTP interface description. It is separate from DesireCore feature effective versions and the handshake's serverVersion and apiProtocolVersion.

For native media playback, use the complete /media/{filename}?expires=…&signature=… URL returned by the issuing endpoint. This read endpoint uses its short-lived signature rather than an instance token. Attachment downloads still require instance authentication. Consult each guide for history, topic, and media access rules.

Runnable observation and merged-history readers are observe.mjs and history.mjs. Restart merged-history reads on revision conflicts instead of combining old pages. Usage aggregates are not final provider invoices.

TaskBoard and S3 read examples are available as taskboards.mjs and s3.mjs. Follow the corresponding guides for opaque cursors, activity revisions, object continuation tokens and download modes.

New standalone examples: workers.mjs for Worker reads and admin.mjs for explicit owner actions. Recovery references, archived topics and compute preparation use the updated history/observe scripts.