API Reference

    List a flow's runs

    The runs of one flow, newest first, filtered by status and time.

    GET/api/v1/flows/{flowId}/runs

    Lists the runs of one flow, newest first. Filter with status, and with since and until on the time the run was recorded (both included). Run data is not returned; read a run's steps with GET /runs/{runId}/steps.

    For tools and AI agents: this page as Markdown · the public OpenAPI file

    Authorization

    The REST API is being rolled out and is not yet available to every workspace. Send an API key with the read permission in the X-Api-Key header. REST API access must be switched on for the workspace; see the REST API overview.

    Path parameters

    NameTypeRequiredDescription
    flowIdstringYesThe flow's ID.

    Query parameters

    NameTypeRequiredDescription
    statusstring: queued, running, success, partially_succeeded, failed, retrying, waiting_approval, skipped, rejected, heldNoOnly runs with this status (see Run status).
    sincestringNoOnly runs recorded at or after this time. An ISO 8601 date-time with a time zone, for example 2026-11-01T00:00:00Z.
    untilstringNoOnly runs recorded at or before this time. Same format as since.
    limitintegerNoItems per page, from 1 to 100. Default 20.
    cursorstringNoThe nextCursor of the previous page, unchanged.

    Response

    The answer is { data, nextCursor }; each item of data has these fields:

    NameTypeDescription
    idstringThe run's ID.
    statusstringThe run's status (see Run status).
    startedAtstring (date-time) | nullWhen the run started.
    completedAtstring (date-time) | nullWhen the run finished.
    durationMsinteger | nullHow long the run took, in milliseconds.
    errorstring | nullThe 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.
    replayOfExecutionIdstring | nullFor a replay, the ID of the run it replays; otherwise null.
    NameTypeDescription
    dataarrayThe items of this page.
    nextCursorstring | nullPass it as cursor for the next page; null when the list has ended.

    200

    {
      "data": [
        {
          "id": "0b6f6c1e-5a55-4d0e-9a57-2f7c1d0e8a11",
          "status": "failed",
          "startedAt": "2026-11-16T08:30:12.000Z",
          "completedAt": "2026-11-16T08:30:13.840Z",
          "durationMs": 1840,
          "error": "Request failed with status 503",
          "replayOfExecutionId": null
        }
      ],
      "nextCursor": null
    }

    Errors

    This endpoint's own errors:

    StatusCodeWhenMessage
    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.
    400INVALID_LIMITlimit is not a whole number from 1 to 100.The limit must be a whole number from 1 to 100.
    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.
    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.

    Every endpoint can also answer the errors that apply to all of them, listed on the REST API overview.

    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.
    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.
    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.
    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.

    Examples

    curl "https://exomations.com/api/v1/flows/YOUR_FLOW_ID/runs?status=failed&since=2026-11-01T00:00:00Z&limit=50" \
      -H "X-Api-Key: exo_your_key"
    
    # Next page: add &cursor=<nextCursor from the previous answer>