Skip to main content
POST
Get a workflow

Headers

x-project-id
string<uuid>
required

Project ID for tenant scoping

X-Workspace-Id
string<uuid> | null

Overrides the key's workspace

X-API-Key
string | null

User API key

Body

application/json
view
enum<string>
required

Which slice to return for the workflow

Available options:
detail,
versions,
version_detail,
runs,
run_detail
workflow_id
string<uuid>
required

Workflow id

version_id
string<uuid> | null

Version id (required for view='version_detail')

workflow_run_id
string<uuid> | null

Run id (required for view='run_detail')

include_conversation
boolean
default:true

Include builder conversation in version_detail; set false when the question only asks for the step config/graph and wants the chat history skipped.

run_status
enum<string>[] | null

Run status filter (view='runs')

Available options:
pending,
running,
completed,
failed,
cancelled,
awaiting_interaction
run_search
string | null

Match runs whose name contains this text, e.g. the 6-char suffix of a run name (view='runs')

run_source
enum<string>
default:playbook

Run source (view='runs'): 'playbook' for standalone runs (default - this filter applies even when left unset, so it only returns playbook-sourced runs), 'grid' for grid-cell runs, 'task' for task-triggered runs. run_search does not search across all sources by itself - check each run_source explicitly when the source is unknown.

Available options:
grid,
playbook,
task
run_sort_by
enum<string>
default:created_at

Run sort field

Available options:
created_at
sort_order
enum<string>
default:desc

Sort direction

Available options:
asc,
desc
created_after
string<date-time> | null

Runs created at/after this time

created_before
string<date-time> | null

Runs created at/before this time

page
integer
default:1

1-based page (versions/runs)

Required range: x >= 1
size
integer
default:50

Page size (versions/runs)

Required range: 1 <= x <= 100

Response

Successful Response