Skip to content
Back to the app

API Reference ​

The CHANGENTS.AI REST API runs agents and workflows, reports their progress, decides approvals, and sends signed webhooks. The OpenAPI 3.1 specification is downloadable from /developer, and is the reference for every field.

Base URL ​

https://changents.ai/api

On your own installation, use your installation's address with /api.

Authentication ​

Send an API key from /developer in either header:

Authorization: Bearer cgnt_sk_<clientId>.<secret>
X-API-Key: cgnt_sk_<clientId>.<secret>

A few account endpoints take a signed-in session token instead. You can also exchange a key for a short-lived OAuth 2.0 access token. See Authentication.

Rate limits ​

Each API key has its own budget of requests a minute, set by the plan in force for the key's owner (or their organisation's plan, when that is higher). The budget is shared by every API the key reaches: /api/agents, /api/workflows, /api/v1, /api/v1/mcp, /api/v1/a2a, /api/v1/objects and /api/v1/actions.

Plan in forceRequests a minute, per key
Free or trial20
Starter60
Professional120
Business300
Enterprise600

Every response to a key carries the standard headers:

RateLimit-Policy: 60;w=60
RateLimit-Limit: 60
RateLimit-Remaining: 42
RateLimit-Reset: 17

Over the limit, the answer is 429 with a Retry-After header in seconds and { "error": "...", "code": "rate_limited", "plan": "starter", "limit": 60, "retryAfterSeconds": 17 }. The Private Inference API answers in its own error shape, and the MCP and A2A servers in JSON-RPC. Those three also keep their own per-key limit (60 a minute by default); a request must be inside both. Separately, every caller shares a per-address limit of 1,500 requests in 15 minutes.

Run allowance (how many runs a plan may start) is a different limit and answers 402; see Billing.

Requests and responses ​

  • Bodies are JSON (Content-Type: application/json).
  • Responses are the JSON body itself, with no extra wrapper.
  • Errors are { "error": "...", "message": "...", "requestId": "..." }. Quote requestId to support. You may send your own X-Request-Id.
StatusMeaning
400Missing or malformed input
401No key, or an invalid or revoked key
402Out of credits or run quota
403Not allowed: a halted agent, a policy refusal, or an approval not yet granted
404Not found, or not yours
409Conflict, e.g. useRelease on a workflow with no release
429Rate limited. Back off and retry
501Server-side workflow execution is switched off on this installation

Endpoints ​

MethodPathWhat it does
POST/api/agents/executeRun one agent step (Agents)
GET/api/agents/approvals/{id}/statusStatus of an approval raised by an agent step
POST/api/workflows/runStart a workflow (Workflows)
GET/api/workflows/runsRecent runs for you and your organisation
GET/api/workflows/runs/{correlationId}One run and every step's result
GET/api/workflows/approvalsApprovals waiting that you can see
GET/api/workflows/approvals/{approvalId}One approval and its context
POST/api/workflows/approval/{actionId}Approve or reject
GET/api/credits/balanceCredit balance (session token) (Credits)
*/api/developer/webhooks…Manage webhook endpoints (Webhooks)
GET/api/statusMeasured status and uptime. No authentication
POST/api/hooks/{token}Start a webhook trigger's workflow; optional signature (Triggers)
*/api/triggers…Webhook, email, event and file triggers (Triggers)
*/api/schedules…Scheduled runs (Triggers)
GET/api/connectors/catalogueEvery connector (Integrations)
*/api/vault/knowledge…Knowledge documents and synced folders (Vault)
POST/api/v1/chat/completionsSelf-hosted model, OpenAI-compatible; nothing stored (Private Inference API)
GET/api/v1/modelsModels the Private Inference API serves
POST/api/v1/embeddingsEmbeddings from a self-hosted model

Served from this deployment. No page view leaves it.