Skip to content
Navigation

Replay a run

POST
/v1/runs/{runId}/replay

Create a new run ID with the earlier payload and a link to the failed or cancelled run.

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}$

Header parameters

  • Idempotency-Key
    optional
    string

    Reuse the same value when repeating the same submission. Reusing it with different inputs returns a conflict.

    maxLength: 160 · minLength: 1

Returns

200

Previously accepted run with the same idempotency key

JSON
  • 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

202

Run accepted

JSON
  • 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

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

409

This operation conflicts with the current state
JSON
  • error
    string
    required

429

Workspace run limit reached
JSON
  • error
    string
    required

Type to search…

↑↓ navigate↵ selectEsc close