Skip to main content
GET
[Beta] Get a workflow run
Pass include_payload=true to also get trigger_payload and run_result. Both can be large, so they are left out by default. trigger_payload is the payload the run’s trigger received. To run the latest version of the workflow on the same input, send it to POST /workflows/{workflow_id}/test as trigger_payload.payload, with the workflow’s trigger_type as trigger_payload.type. Test runs fire their actions for real. run_result is the run’s output as the workflow returned it, usually each step’s result by step id. It is null unless the run completed. For each step’s input, output and error, use GET /workflows/{workflow_id}/runs/{run_id}/run-steps.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workflow_id
string
required
run_id
string
required

Query Parameters

include_payload
string

Send "true" to also return trigger_payload and run_result. Both can be large. Accepts "true" or "false"; defaults to "false".

Response

Default Response

id
string
required

Run UUID

workflow_id
number
required

Workflow version serial ID that was executed

status
enum<string> | null
required

Run status: "idle", "in_progress", "completed", "failed", "canceled"

Available options:
canceled,
completed,
failed,
idle,
in_progress,
waiting
trigger_cause
enum<string>
required

What caused the run: "manual", "automatic", "scheduled"

Available options:
automatic,
manual,
scheduled
duration_in_seconds
number | null
required

How long the run took

run_started_at
string<date-time> | null
required
run_ended_at
string<date-time> | null
required
is_test_run
boolean
required

Whether this was a test run

created_at
string<date-time>
required
trigger_payload
any

Only with include_payload=true. The payload the trigger received. To re-run the latest version with the same input, pass it to testWorkflow as trigger_payload.payload.

run_result
any

Only with include_payload=true. The run's output as the workflow returned it, usually each step's result by step id. Null unless the run completed.