Skip to content
Navigation

List runs

GET
/v1/runs

Read environment-scoped run history. Continue at the next cursor using the same filters.

Authorization

  • bearerAuth
    optional
    HTTP Bearer

    Authorization: Bearer <token>

  • browserSession
    optional
    API key in cookie
  • localBrowserSession
    optional
    API key in cookie

Query parameters

  • status
    optional
    string
    ·
    one of 8 values

    Filter by status. Use waiting for runs paused at a Wait Until or Wait for Reply checkpoint and scheduled for runs that have a future start time.

    Allowed values: scheduled, queued, waiting, running, retrying, succeeded, failed, cancelled
  • task
    optional
    string

    Filter by task slug.

    maxLength: 64 · pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$
  • limit
    optional
    integer

    Maximum runs to return.

    maximum: 100 · minimum: 1
  • cursor
    optional
    string

    Opaque nextCursor returned by a previous page.

Returns

200

Page of runs

JSON
  • runs
    array of
    object
    required
    • id
      string
      required
    • task
      string
      required
      maxLength: 64 · pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$
    • status
      string
      ·
      one of 8 values
      required
      Allowed values: scheduled, queued, waiting, running, retrying, succeeded, failed, cancelled
    • attempt
      integer
      required
      maximum: 5 · minimum: 0
    • maxAttempts
      integer
      required
      maximum: 5 · minimum: 1 · default: 3
    • createdAt
      string
      required
      format: date-time
    • runId
      optional
      string
    • taskName
      optional
      string
    • source
      optional
      string
    • payload
      optional
      object
    • output
      optional
      unknown
    • error
      optional

      Any of the following:

      • string
      • null
    • startedAt
      optional

      Any of the following:

      • string
      • null
    • finishedAt
      optional

      Any of the following:

      • string
      • null
    • runAt
      optional

      Any of the following:

      • string
      • null
    • nextAttemptAt
      optional

      Any of the following:

      • string
      • null
    • waitUntil
      optional
      string

      Planned resume time for Wait Until or the reply deadline for Wait for Reply.

      format: date-time
    • waitStartedAt
      optional
      string | null

      Time when a wait run entered its pause, or null until it has paused.

      format: date-time
    • waitResumedAt
      optional
      string | null

      Time when a wait run resumed, or null before resumption.

      format: date-time
    • replyTimeoutSeconds
      optional
      integer

      Timeout applied to this Wait for Reply run.

      maximum: 2592000 · minimum: 5
    • waitOutcome
      optional
      reply
      or
      timeout
      or
      null

      Outcome of a Wait for Reply run. Null until the run resumes.

    • reply
      optional
      object | null

      The accepted reply on a full Wait for Reply run record. Null while there is no accepted reply, including after timeout. Run summaries omit this field.

      • receivedAt
        string
        required
        format: date-time
      • payload
        object
        required
    • durationMs
      optional

      Any of the following:

      • number
      • null
    • previousRunId
      optional

      Any of the following:

      • string
      • null
  • nextCursor
    required

    Any of the following:

    • string
    • null

400

Invalid input
JSON
  • error
    string
    required

401

Authentication is required
JSON
  • error
    string
    required

403

The credential lacks permission
JSON
  • error
    string
    required

Type to search…

↑↓ navigate↵ selectEsc close