curl --request GET \
--url https://api.deck.co/v2/workflow-runs/{workflow_run_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.deck.co/v2/workflow-runs/{workflow_run_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.deck.co/v2/workflow-runs/{workflow_run_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.deck.co/v2/workflow-runs/{workflow_run_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.deck.co/v2/workflow-runs/{workflow_run_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.deck.co/v2/workflow-runs/{workflow_run_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.deck.co/v2/workflow-runs/{workflow_run_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "wrun_AbC123xYz456",
"object": "<string>",
"workflow_id": "wflo_AbC123xYz456",
"status": "queued",
"result": "<string>",
"runtime_ms": 123,
"session_id": "<string>",
"trigger_id": "<string>",
"steps": [
{
"name": "<string>",
"type": "task",
"status": "<string>",
"output": "<unknown>",
"task_runs": [
{
"task_run_id": "trun_AbC123xYz456",
"status": "<string>",
"result": "<string>",
"created_at": "2026-06-18T00:00:00Z",
"runtime_ms": 123,
"errors": [
{
"type": "<string>",
"code": "<string>",
"message": "<string>",
"field": "<string>"
}
],
"item": "<unknown>",
"input": "<unknown>",
"storage": [
{
"id": "stor_AbC123xYz456",
"object": "<string>",
"file_name": "<string>",
"file_type": "<string>",
"file_size": 123,
"purpose": "attachment",
"created_at": "2026-08-24T12:00:00Z",
"url": "<string>",
"extraction": "<unknown>"
}
],
"artifacts": {
"screenshots": [
{
"file_name": "<string>",
"file_type": "<string>",
"file_size": 123,
"created_at": "2026-08-24T12:00:00Z",
"url": "<string>",
"reasoning": "<string>"
}
]
}
}
]
}
],
"errors": [
{
"type": "<string>",
"code": "<string>",
"message": "<string>",
"field": "<string>",
"step": "<string>"
}
],
"created_at": "2026-06-18T00:00:00Z",
"updated_at": "2026-06-18T00:00:00Z",
"request_id": "<string>"
}{
"errors": {},
"type": "<string>",
"title": "<string>",
"status": 123,
"traceId": "<string>"
}{
"errors": [
{
"type": "<string>",
"code": "<string>",
"message": "<string>",
"field": "<string>"
}
],
"request_id": "<string>"
}{
"errors": [
{
"type": "<string>",
"code": "<string>",
"message": "<string>",
"field": "<string>"
}
],
"request_id": "<string>"
}{
"errors": [
{
"type": "<string>",
"code": "<string>",
"message": "<string>",
"field": "<string>"
}
],
"request_id": "<string>"
}{
"errors": [
{
"type": "<string>",
"code": "<string>",
"message": "<string>",
"field": "<string>"
}
],
"request_id": "<string>"
}{
"errors": [
{
"type": "<string>",
"code": "<string>",
"message": "<string>",
"field": "<string>"
}
],
"request_id": "<string>"
}Retrieve a workflow run
Returns a single workflow run by ID, including each step’s status, output, and task runs.
curl --request GET \
--url https://api.deck.co/v2/workflow-runs/{workflow_run_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.deck.co/v2/workflow-runs/{workflow_run_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.deck.co/v2/workflow-runs/{workflow_run_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.deck.co/v2/workflow-runs/{workflow_run_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.deck.co/v2/workflow-runs/{workflow_run_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.deck.co/v2/workflow-runs/{workflow_run_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.deck.co/v2/workflow-runs/{workflow_run_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "wrun_AbC123xYz456",
"object": "<string>",
"workflow_id": "wflo_AbC123xYz456",
"status": "queued",
"result": "<string>",
"runtime_ms": 123,
"session_id": "<string>",
"trigger_id": "<string>",
"steps": [
{
"name": "<string>",
"type": "task",
"status": "<string>",
"output": "<unknown>",
"task_runs": [
{
"task_run_id": "trun_AbC123xYz456",
"status": "<string>",
"result": "<string>",
"created_at": "2026-06-18T00:00:00Z",
"runtime_ms": 123,
"errors": [
{
"type": "<string>",
"code": "<string>",
"message": "<string>",
"field": "<string>"
}
],
"item": "<unknown>",
"input": "<unknown>",
"storage": [
{
"id": "stor_AbC123xYz456",
"object": "<string>",
"file_name": "<string>",
"file_type": "<string>",
"file_size": 123,
"purpose": "attachment",
"created_at": "2026-08-24T12:00:00Z",
"url": "<string>",
"extraction": "<unknown>"
}
],
"artifacts": {
"screenshots": [
{
"file_name": "<string>",
"file_type": "<string>",
"file_size": 123,
"created_at": "2026-08-24T12:00:00Z",
"url": "<string>",
"reasoning": "<string>"
}
]
}
}
]
}
],
"errors": [
{
"type": "<string>",
"code": "<string>",
"message": "<string>",
"field": "<string>",
"step": "<string>"
}
],
"created_at": "2026-06-18T00:00:00Z",
"updated_at": "2026-06-18T00:00:00Z",
"request_id": "<string>"
}{
"errors": {},
"type": "<string>",
"title": "<string>",
"status": 123,
"traceId": "<string>"
}{
"errors": [
{
"type": "<string>",
"code": "<string>",
"message": "<string>",
"field": "<string>"
}
],
"request_id": "<string>"
}{
"errors": [
{
"type": "<string>",
"code": "<string>",
"message": "<string>",
"field": "<string>"
}
],
"request_id": "<string>"
}{
"errors": [
{
"type": "<string>",
"code": "<string>",
"message": "<string>",
"field": "<string>"
}
],
"request_id": "<string>"
}{
"errors": [
{
"type": "<string>",
"code": "<string>",
"message": "<string>",
"field": "<string>"
}
],
"request_id": "<string>"
}{
"errors": [
{
"type": "<string>",
"code": "<string>",
"message": "<string>",
"field": "<string>"
}
],
"request_id": "<string>"
}Authorizations
Secret key (sk_live_...)
Path Parameters
Unique identifier for the workflow run (prefixed with wrun_).
^wrun_"wrun_AbC123xYz456"
Query Parameters
Comma-separated list of additional fields to include on each task_runs entry. Supported values: input, storage, artifacts. Sections are omitted from the response (not returned as null) when their flag is not present.
Response
OK
Workflow run object.
Unique identifier for the workflow run, prefixed with wrun_.
^wrun_"wrun_AbC123xYz456"
Always workflow_run.
The workflow that was run.
^wflo_"wflo_AbC123xYz456"
Lifecycle state. paused means the current step is waiting on external input; the step's own status carries the reason.
queued, running, paused, completed, failed, canceling, canceled Outcome once terminal: success only when every task run succeeded, failure if any failed, unknown otherwise. null while running and for a canceled run.
Milliseconds from the first step's start until the run reached a terminal status, excluding time spent queued. null until terminal.
The session every step of this run executes in. Prefixed with sess_. Assigned when the run is created through the API, or when a trigger-created run is admitted, so null while such a run is queued.
The trigger that created this run. Prefixed with trg_. null for runs created through the API.
Per-step state, in definition order.
Show child attributes
Show child attributes
Error objects, each naming its step, when the run failed. null otherwise.
Show child attributes
Show child attributes
"2026-06-18T00:00:00Z"
"2026-06-18T00:00:00Z"
Unique identifier for the API request. Include this when contacting support.
Was this page helpful?