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/apiOn 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 force | Requests a minute, per key |
|---|---|
| Free or trial | 20 |
| Starter | 60 |
| Professional | 120 |
| Business | 300 |
| Enterprise | 600 |
Every response to a key carries the standard headers:
RateLimit-Policy: 60;w=60
RateLimit-Limit: 60
RateLimit-Remaining: 42
RateLimit-Reset: 17Over 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": "..." }. QuoterequestIdto support. You may send your ownX-Request-Id.
| Status | Meaning |
|---|---|
| 400 | Missing or malformed input |
| 401 | No key, or an invalid or revoked key |
| 402 | Out of credits or run quota |
| 403 | Not allowed: a halted agent, a policy refusal, or an approval not yet granted |
| 404 | Not found, or not yours |
| 409 | Conflict, e.g. useRelease on a workflow with no release |
| 429 | Rate limited. Back off and retry |
| 501 | Server-side workflow execution is switched off on this installation |
Endpoints
| Method | Path | What it does |
|---|---|---|
| POST | /api/agents/execute | Run one agent step (Agents) |
| GET | /api/agents/approvals/{id}/status | Status of an approval raised by an agent step |
| POST | /api/workflows/run | Start a workflow (Workflows) |
| GET | /api/workflows/runs | Recent runs for you and your organisation |
| GET | /api/workflows/runs/{correlationId} | One run and every step's result |
| GET | /api/workflows/approvals | Approvals 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/balance | Credit balance (session token) (Credits) |
* | /api/developer/webhooks… | Manage webhook endpoints (Webhooks) |
| GET | /api/status | Measured 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/catalogue | Every connector (Integrations) |
* | /api/vault/knowledge… | Knowledge documents and synced folders (Vault) |
| POST | /api/v1/chat/completions | Self-hosted model, OpenAI-compatible; nothing stored (Private Inference API) |
| GET | /api/v1/models | Models the Private Inference API serves |
| POST | /api/v1/embeddings | Embeddings from a self-hosted model |