Base URL
application/json, except the CSV export endpoints, which return text/csv.
Hosts
Use
api.cactal.ai for everything you build. The examples throughout these docs assume it.
Authentication
Send an API key as a bearer token on every request:Versioning
The path prefix/v1 is the API’s compatibility boundary. Within /v1, Cactal makes additive changes only: new endpoints, new optional parameters, and new response fields. Breaking changes would ship under a new prefix.
Build clients that tolerate unknown response fields.
Response codes
Every non-2xx response has the same body shape — see Errors.
Conventions
- Ids are opaque 21-character strings. Never parse or construct them.
- Timestamps are ISO 8601 strings in UTC, for example
2026-07-08T18:30:00.000Z. - List endpoints use cursor pagination with an
{ "items": [...], "nextCursor": "..." }envelope — see Pagination. A few fixed-cardinality reads, capped by a product rule rather than by data volume, return plain objects. - Write endpoints take their parameters in the JSON body;
GETendpoints take them as query parameters; path parameters are always in the URL.
Machine-readable metadata
Each endpoint in this reference carries agent-oriented extensions in the OpenAPI spec:x-cactal-required-capability (the capability your key needs), x-cactal-read-only, x-cactal-destructive, and x-cactal-idempotent. Use the contextual menu on any page to copy it as Markdown or download the full spec.
How do I find my organization id?
How do I find my organization id?
GET /v1/organizations returns the organizations your key can access. Organization-scoped keys see their own organization; website-scoped keys see the organization that owns their websites.Is there an SDK?
Is there an SDK?
Not yet. The API is plain JSON over HTTPS and works with any HTTP client. Agents can skip HTTP entirely and use the MCP server, which exposes every endpoint on this reference as a typed tool.
Does the API support webhooks?
Does the API support webhooks?
Not yet. Poll list endpoints or deployment status where you need to observe changes.