GET
/api/v1/runs/{runId}Returns one run of the key's workspace. Use it to follow the executionId that Trigger a flow returned: poll until status is no longer queued, running, retrying, waiting_approval or held.
For tools and AI agents: this page as Markdown · the public OpenAPI file
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
runId | string | Yes | The run's ID: the executionId a trigger call returned, or an id from a run list. |
Response
The answer is one object with these fields:
| Name | Type | Description |
|---|---|---|
id | string | The run's ID. |
flowId | string | The flow the run belongs to. |
status | string | The run's status (see Run status). |
startedAt | string (date-time) | null | When the run started. |
completedAt | string (date-time) | null | When the run finished. |
durationMs | integer | null | How long the run took, in milliseconds. |
error | string | null | The run's error message, or null. At most 2,000 characters; credentials, e-mail addresses, long digit runs and internal addresses are masked, so do not parse it. It reads The error text is not available. when it cannot be shown. |
replayOfExecutionId | string | null | For a replay, the ID of the run it replays; otherwise null. |
200
{
"id": "4d2a9b70-1c3e-4f58-8a6d-0e7b5c9f2a14",
"flowId": "7a17617d-3c4e-4f0a-9b1e-2d5c8e0f4a61",
"status": "success",
"startedAt": "2026-11-16T09:02:40.000Z",
"completedAt": "2026-11-16T09:02:41.410Z",
"durationMs": 1410,
"error": null,
"replayOfExecutionId": "0b6f6c1e-5a55-4d0e-9a57-2f7c1d0e8a11"
}Errors
This endpoint's own errors:
| Status | Code | When | Message |
|---|---|---|---|
| 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. |
Every endpoint can also answer the errors that apply to all of them, listed on the REST API overview.
| 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. |
| 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. |
| 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. |
| 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.
Examples
curl https://exomations.com/api/v1/runs/YOUR_RUN_ID \
-H "X-Api-Key: exo_your_key"const res = await fetch("https://exomations.com/api/v1/runs/YOUR_RUN_ID", {
headers: { "X-Api-Key": process.env.EXOMATIONS_KEY }, // exo_...
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.code}: ${body.message}`);
console.log(body.status, body.error);import os, requests
res = requests.get(
"https://exomations.com/api/v1/runs/YOUR_RUN_ID",
headers={"X-Api-Key": os.environ["EXOMATIONS_KEY"]}, # exo_...
timeout=15,
)
body = res.json()
if res.status_code != 200:
raise RuntimeError(f"{body['code']}: {body['message']}")
print(body["status"], body["error"])