Skip to content
Navigation

Get a run

GET
/v1/runs/{runId}

Inspect the job payload, result, run state, attempt timings and recorded activity.

Authorization

  • bearerAuth
    optional
    HTTP Bearer

    Authorization: Bearer <token>

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

Path parameters

  • runId
    string
    required

    ID returned at submission.

    pattern: ^run_[a-f0-9]{32}$

Returns

200

Run with attempts and events

JSON
  • run
    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
  • attempts
    array of
    object
    required
    • number
      integer
      required
      maximum: 5 · minimum: 0
    • status
      string
      ·
      one of 7 values
      required
      Allowed values: scheduled, queued, running, retrying, succeeded, failed, cancelled
    • startedAt
      string
      required
      format: date-time
    • finishedAt
      optional

      Any of the following:

      • string
      • null
    • statusCode
      optional

      Any of the following:

      • integer
      • null
    • durationMs
      optional

      Any of the following:

      • number
      • null
    • error
      optional

      Any of the following:

      • string
      • null
  • events
    array of
    object
    required
    • id
      string
      required
    • type
      string
      required

      Recorded event type. Wait checkpoints emit wait.started followed by wait.resumed if they resume. Wait for Reply records wait.reply_received or wait.timed_out before wait.resumed.

    • time
      string
      required
      format: date-time
    • attempt
      optional

      Any of the following:

      • integer
      • null
    • detail
      optional
      string | null

401

Authentication is required
JSON
  • error
    string
    required

403

The credential lacks permission
JSON
  • error
    string
    required

404

Resource not found in this environment
JSON
  • error
    string
    required

Type to search…

↑↓ navigate↵ selectEsc close