For tools and AI agents: this page as Markdown · the public OpenAPI file
Availability
The REST API is being rolled out workspace by workspace and is not yet available to every workspace. Where it is available, an Admin or the Owner switches on REST API access on the API Keys page of the app. It is off until someone does, so no existing key gains access without that click. Until it is on for the workspace, calls with a valid key answer 403 with the code API_NOT_ENABLED, or 404 where the API is not served yet.
Base URL and authentication
Base URL: https://exomations.com/api/v1. Send an API key with the read permission (Read Data in the key form) in the X-Api-Key header. A key placed in the URL, or sent in an Authorization header, is refused with 401. A key reads every flow of its workspace, in every project.
read is the only permission this API checks: execute or build alone cannot read here, and read alone cannot start a flow or use the MCP server.
What it returns
Every endpoint is GET (a HEAD request answers the same without a body) and answers JSON with Cache-Control: no-store. The API only reads: it never starts, changes or stops anything.
It returns metadata only. Flow definitions and step settings, connection details, run data (the trigger payload and the result) and the input and output of steps are not returned. Dates are ISO 8601 strings in UTC; a date that is not set is null.
Flows withheld from AI clients on the MCP server are withheld here too: they are not listed, and they and their runs answer 404. Runs that executed a withheld government step are left out of run lists and answer 404.
Pagination
GET /flows and GET /flows/{flowId}/runs answer { data, nextCursor }, newest first. limit sets the page size, from 1 to 100 (default 20). For the next page, send nextCursor back as cursor, with the same filters; it is opaque, so pass it unchanged. When nextCursor is null the list has ended. A page can hold fewer items than limit, even none, while nextCursor is not null: keep going until it is null. A cursor works only for the list and the workspace that returned it. A cursor can also stop being valid; the answer is then 400 with the code INVALID_CURSOR: start the list again from the first page.
GET /runs/{runId}/steps has no cursor: it answers up to 300 steps, with truncated: true when the run has more.
Run status
A run's status is one of the values below; a step's status uses the same values. A run usually moves forward through them, but not always: a run that a worker picked up but that never began can go from running back to queued once, and is then started again.
| Status | Meaning |
|---|---|
| queued | Waiting for a worker. |
| running | Running now. |
| success | Finished successfully. |
| partially_succeeded | Finished, but some steps failed. |
| failed | Stopped by an error. |
| retrying | Waiting to try again after an error. |
| waiting_approval | Paused until a person approves or rejects a step. |
| skipped | Not run; for a step, usually because its branch was not taken. |
| rejected | Refused, for example because another run of a flow that allows one run at a time was already in progress. |
| held | Held because the workspace is past 120% of its monthly allowance; it starts by itself after a top-up, an upgrade or the monthly reset. |
Rate limits
Calls per minute: 60 per API key, and per workspace, across all its keys, Starter 100 · Professional 200 · Enterprise 500. Over a limit the answer is 429 with the code RATE_LIMITED and a Retry-After header: wait that many seconds. Calls without a valid key are limited per minute as well, and can get the same 429.
Errors
Every error is JSON with three fields: error (a short title), code (a fixed name your code can rely on) and message (a sentence for people). An unknown path under /api/v1 answers 404 with NOT_FOUND.
| Status | Code | When | Message |
|---|---|---|---|
| 401 | UNAUTHENTICATED | The key is missing, not an Exomations API key, unknown, inactive, expired or deleted, or it was sent in the URL or an Authorization header. | A valid API key is required in the X-Api-Key header. |
| 403 | FORBIDDEN | The key does not carry read. | This API key does not have the Read permission. |
| 403 | FORBIDDEN | The workspace is suspended. | This workspace is suspended. |
| 403 | API_NOT_ENABLED | REST API access is off for the workspace. | REST API access is turned off for this workspace. An admin or the owner can turn it on on the API Keys page. |
| 402 | PENDING_PAYMENT | The workspace is awaiting its card verification (every endpoint except GET /usage). | Payment required. Complete the 1 SAR card verification on the Billing page to activate your account. |
| 400 | INVALID_STATUS | status is not a flow status. | The status filter must be one of: draft, active, paused. |
| 400 | INVALID_CURSOR | cursor is not a nextCursor from this list, or is no longer valid: start the list again from the first page. | The cursor is not valid. Pass the nextCursor value from a previous response unchanged. |
| 400 | INVALID_LIMIT | limit is not a whole number from 1 to 100. | The limit must be a whole number from 1 to 100. |
| 400 | INVALID_STATUS | status is not a run status. | The status filter must be one of: queued, running, success, partially_succeeded, failed, retrying, waiting_approval, skipped, rejected, held. |
| 400 | INVALID_RANGE | since or until is not a date-time with a time zone, or since is later than until. | since and until must be ISO 8601 date-times with a time zone (for example 2026-11-01T00:00:00Z), and since must not be later than until. |
| 404 | NOT_FOUND | No such flow or run in the key's workspace (another workspace's IDs and withheld flows answer the same), or an unknown path. | The requested resource was not found. |
| 405 | METHOD_NOT_ALLOWED | A method other than GET or HEAD. The Allow header lists the methods. | This endpoint does not support this method. See the Allow header. |
| 429 | RATE_LIMITED | Too many calls in a minute (calls without a valid key are limited too). | Rate limit reached. Retry after the number of seconds in the Retry-After header. |
| 500 | INTERNAL | Something failed on our side. Retry; if it happens again, contact support. | Something went wrong on our side. Please try again. |
Messages are shown exactly as the server sends them, in English. A value in angle brackets is filled in at run time.
Endpoints
Each endpoint has its own page with its parameters, fields, errors and examples in cURL, JavaScript and Python.
| Endpoint | Name | Description |
|---|---|---|
| GET /api/v1/flows | List flows | The workspace's flows, newest first, with their status and trigger type. |
| GET /api/v1/flows/{flowId} | Get a flow | One flow with its description, project, trigger address and steps. |
| GET /api/v1/flows/{flowId}/runs | List a flow's runs | The runs of one flow, newest first, filtered by status and time. |
| GET /api/v1/runs/{runId} | Get a run | One run's status, timing and error. |
| GET /api/v1/runs/{runId}/steps | List a run's steps | The steps of one run in the order they started, with their status and error. |
| GET /api/v1/usage | Get usage | This month's runs, the monthly limit and held runs for the workspace. |