API Reference

    REST API (read-only)

    Read your flows, their runs, each run's steps and this month's usage with an API key.

    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.

    StatusMeaning
    queuedWaiting for a worker.
    runningRunning now.
    successFinished successfully.
    partially_succeededFinished, but some steps failed.
    failedStopped by an error.
    retryingWaiting to try again after an error.
    waiting_approvalPaused until a person approves or rejects a step.
    skippedNot run; for a step, usually because its branch was not taken.
    rejectedRefused, for example because another run of a flow that allows one run at a time was already in progress.
    heldHeld 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.

    StatusCodeWhenMessage
    401UNAUTHENTICATEDThe 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.
    403FORBIDDENThe key does not carry read.This API key does not have the Read permission.
    403FORBIDDENThe workspace is suspended.This workspace is suspended.
    403API_NOT_ENABLEDREST 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.
    402PENDING_PAYMENTThe 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.
    400INVALID_STATUSstatus is not a flow status.The status filter must be one of: draft, active, paused.
    400INVALID_CURSORcursor 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.
    400INVALID_LIMITlimit is not a whole number from 1 to 100.The limit must be a whole number from 1 to 100.
    400INVALID_STATUSstatus is not a run status.The status filter must be one of: queued, running, success, partially_succeeded, failed, retrying, waiting_approval, skipped, rejected, held.
    400INVALID_RANGEsince 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.
    404NOT_FOUNDNo 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.
    405METHOD_NOT_ALLOWEDA method other than GET or HEAD. The Allow header lists the methods.This endpoint does not support this method. See the Allow header.
    429RATE_LIMITEDToo 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.
    500INTERNALSomething 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.

    EndpointNameDescription
    GET /api/v1/flowsList flowsThe workspace's flows, newest first, with their status and trigger type.
    GET /api/v1/flows/{flowId}Get a flowOne flow with its description, project, trigger address and steps.
    GET /api/v1/flows/{flowId}/runsList a flow's runsThe runs of one flow, newest first, filtered by status and time.
    GET /api/v1/runs/{runId}Get a runOne run's status, timing and error.
    GET /api/v1/runs/{runId}/stepsList a run's stepsThe steps of one run in the order they started, with their status and error.
    GET /api/v1/usageGet usageThis month's runs, the monthly limit and held runs for the workspace.