Skip to content

`GET /api/runs` — list workspace-scoped runs, newest first, with optional `status` / `kind` / `project_id` / `task_id` filters. Top-level runs only by default; `include_children=true` also surfaces workflow node child runs.

GET
/api/runs
curl --request GET \
--url 'https://example.com/api/runs?trigger=manual' \
--cookie supacloud_session=<supacloud_session>

GET /api/runs — list workspace-scoped runs, newest first, with optional status / kind / project_id / task_id filters. Top-level runs only by default; include_children=true also surfaces workflow node child runs.

status
string
kind
string
project_id
string format: uuid
task_id
string format: uuid
app_id
string format: uuid
include_children
boolean

Include workflow node child runs. Default lists only top-level runs.

top_level
boolean

Force parent_run_id IS NULL regardless of include_children — the V13 Agents tab uses this to keep child agent runs of a workflow out of the top-level Agents listing.

since
string format: date-time

Lower bound on created_at (RFC3339) — the time-range preset the runs view’s scatter and the dashboard’s last-24h widget drive (R6).

until
string format: date-time

Upper bound on created_at (RFC3339) — paired with since (R6).

trigger

Runs list/board trigger-source filter id.

string
Allowed values: manual schedule webhook backlog linear notion

#358 trigger-source filter id (see the RunTriggerFilter component) — mapped to the matching trigger_kind set server-side. An unknown id means no filter.

limit
integer format: int64
offset
integer format: int64

List of runs in the active workspace

Media typeapplication/json
Array<object>
object
app_id
string | null format: uuid
attempt
required
integer format: int32
autonomy_policy_json
One of:

#708 M2 — the autonomy policy SNAPSHOT this run was BOUND to at launch (runs.autonomy_policy_json, ADR 0045 §11.4). The run/task-detail drift view diffs it against the currently-resolved policy to mark axes that changed since the run launched. None for a run with no bound snapshot (a legacy pre-Stage-4 run).

object
ask_threshold
required

Which tool calls raise a human clarification ask (relaxes as autonomy rises).

string
Allowed values: always risky_only never
concurrency_factor_pct

ADR 0045 §3.1 concurrency column (SCG-147) as a percent factor — the SAME curve SC-23 scales the Ops budgets by (sc_types::autonomy_budget_factor_pct: x1.0 up to 50, x1.5 at 75, x2.0 at 100). The backlog dispatcher multiplies only the DEFAULT per-project fan-out cap by it (effective_cap_at_level). #[serde(default)] for pre-existing snapshots.

integer format: int32
dispatch_enabled
required

false ⇒ the UNATTENDED dispatcher (scheduler tick, reactive enqueue) launches nothing; a human’s manual dispatch is an ATTENDED origin and is exempt (ADR 0061 §2) — “manual trigger only”. true from Supervised (50) up (AUD-INT-015).

boolean
effort_bias
required

Signed nudge intended for the router’s effort selection (-1 economical · 0 balanced · +1 generous). An i8 (not an enum) so a consumer can add it to a numeric effort index and clamp; it is intentionally a small bounded range.

NOTE: this axis is currently snapshot-only / informational (the sole such axis; [AskThreshold] and [MergePolicy] are wired) — it is resolved, override-clamped and recorded into runs.autonomy_policy_json (and exposed in the FE policy preview), but no router pass reads it yet (routing effort is still derived solely from item severity). It is a forward axis not yet consumed; wiring it into classify_routing is a follow-up phase.

integer format: int32
merge_ceiling
required

The upper bound the merge step is clamped to.

string
Allowed values: none pr_only auto_on_green full_auto
subscription_fill_target

ADR 0045 §3.1 fill_target column (SCG-147): how full the engine drives a subscription usage window before AUTONOMOUS dispatch holds work back — 0.50 / 0.70 / 0.85 / 0.95 at 25 / 50 / 75 / 100, linear between the stops, and 0.0 below 25 (no autonomous dispatch there: autonomy ships closed, ADR 0045 §8.1 and §11). It binds the backlog dispatcher’s quota gate for the UNATTENDED origins only; a human-initiated launch is never held by it. #[serde(default)] so a run snapshot written before this field deserializes; a 0.0 read there means “unset”.

number format: double
backlog_item_id

AUD-UX-039 — the backlog item this run was dispatched for (runs.backlog_item_id); None for every run the backlog dispatcher did not start (or whose item was deleted). The run surfaces offer Requeue instead of Replay when it is set.

string | null format: uuid
container_id
string | null
cost_usd

Agent cost + token usage for this run’s task (task_id), folded in by the list handler for the runs-board cost column. None for a run with no task (workflow / script / app / node runs) or no recorded outcome.

number | null format: double
created_at
required
string format: date-time
deadline_at
string | null format: date-time
error_message
string | null
finished_at
string | null format: date-time
fired_handle
string | null
git_branch
string | null
id
required
string format: uuid
input

#626 (S1 contract-request, §28 StepInspector) — this run’s input payload, projected from trigger_context.input (the raw trigger_context stays unexposed — only this declared-input sub-key is surfaced, mirroring source_issue); None when the step recorded no input.

input_tokens
integer | null format: int64
is_backlog_run

AUD-UX-039 / SCG-157 — whether the backlog dispatcher started this run (backlog_item_id set, or trigger_kind = 'backlog' when the item was deleted). Replay/Restart are hidden for it on every run surface. Always Some from the server; an Option only so the generated web type stays optional like the DTO’s other fields (a missing value reads as “not a backlog run”).

boolean | null
iteration_index
integer | null format: int32
kind
required

The run kind (runs.kind CHECK). Runtime stays String; the spec narrows it to the closed [RunKindSpec].

string
Allowed values: agent workflow script app gate human end code notify_telegram notify_email notify_webhook notify_discord loop db_query db_execute http_request transform wait_event llm_classify imap_ack connector ssh_exec council workflow_handoff
output_tokens
integer | null format: int64
parent_run_id
string | null format: uuid
project_id
string | null format: uuid
queued_at

Issue #110: when this run was parked in queued. Stays set after the run promotes to starting so the runs view can surface the wait time.

string | null format: date-time
result
required

The run’s output JSON — for a human child run this is the approval prompt ({ title, instructions }) while waiting, and the recorded decision once decided. The runs view renders the human approve/reject affordance from it.

retries

#626 (S1 contract-request, §28 StepInspector) — the per-attempt retry history of this workflow-node step (every attempt sharing this run’s parent_run_id + workflow_node_key + iteration_index), sorted by attempt; None for a step that never retried (single attempt) or a non-step run. Populated by the GET /api/runs/{id} detail handler, which alone has the sibling attempt rows.

Array<object> | null

#626 (S1 contract-request, §28 StepInspector) — one attempt of a retried workflow-node step, for the inspector’s retry-history tab. Derived from the per-attempt runs rows of the same original parent + node key + iteration.

object
attempt
required
integer format: int32
error_message
string | null
finished_at
string | null format: date-time
started_at
string | null format: date-time
status
required

The attempt’s run status (runs.status CHECK), spec-narrowed.

string
Allowed values: pending starting running waiting completed failed cancelled skipped queued interrupted
script_id
string | null format: uuid
source_issue
One of:

The source issue (id/url/title) this run was launched from, projected from trigger_context; None for runs with no issue source. (#532 WS-1-runs.)

object
id
string | null
title
string | null
url
string | null
started_at
string | null format: date-time
status
required

The run status (runs.status CHECK). Runtime stays String; the spec narrows it to the closed [RunStatusSpec].

string
Allowed values: pending starting running waiting completed failed cancelled skipped queued interrupted
task_id
string | null format: uuid
trigger_kind
string | null
workflow_id
string | null format: uuid
workflow_name

#1131 stage-acceptance — the governing workflow’s display NAME for a parent workflow run (workflows.name), so the list surfaces (dashboard attention queue, runs board) can say bank_sync instead of workflow 5f13508c — the exact symmetry of workflow_node_title for node runs (#838 D6). Stamped by the LIST surfaces (GET /api/runs, the runs board — the detail path stays off it: its query count is pinned by run_detail_and_events_query_counts_stay_bounded); None for non-workflow runs and for a deleted workflow. Display only — workflow_id stays the identity.

string | null
workflow_node_key
string | null
workflow_node_title

Execution-original speaking title captured at Run publication, when known. Definition edits/deletion do not change this value. Detail and list lenses read the same immutable evidence. Untitled or uncaptured historical originals are None; the stable workflow_node_key remains the execution identity.

string | null
workspace_id
required
string format: uuid

Example

[
{
"autonomy_policy_json": {
"ask_threshold": "always",
"merge_ceiling": "none"
},
"kind": "agent",
"retries": [
{
"status": "pending"
}
],
"status": "pending"
}
]

Structured client error

Media typeapplication/json

The canonical JSON body of every error response. Every AppError serializes as this exact shape; code is the generated stable machine-readable vocabulary.

object
cap
One of:

Present only on an MCP budget refusal (429) — the refusing layer + retry hint.

object
layer
required

The refusing layer.

string
limit
required

The layer’s budget.

integer format: int64
retry_after_seconds

Seconds until a retry can pass, or null when it never will for this session.

integer | null format: int64
used
required

Calls already counted in the layer.

integer format: int64
code
required

Machine-readable, stable error code.

string
Allowed values: not_found unauthorized forbidden license_required license_expired fresh_auth_required source_not_released bad_request unprocessable precondition_failed conflict artifact_staging_busy artifact_staging_store_unavailable intervention_attachment_limit method_not_allowed rate_limited too_many_requests quota_exceeded mcp_cap_exceeded form_schema_invalid autosave_not_offered submit_not_offered idempotency_key_reused response_cap_reached required_missing database_error docker_error vault_error internal_error artifact_frames_unavailable identity_native_custody_unconfigured launch_concurrency_limit launch_already_active launch_not_pending launch_budget_exhausted launch_draining launch_side_effects_disabled launch_dispatch_disabled no_eligible_runner launch_image_unavailable pull_request_no_git_branch pull_request_no_project project_credential_missing project_credential_expired project_credential_revoked project_credential_substitution project_parent_credential_not_current project_lineage_invalid project_binding_missing project_binding_mismatch project_not_found project_capability_not_granted project_capability_unknown project_capabilities_required project_history_is_not_authority project_task_not_found project_task_project_missing project_task_not_active project_native_origin_missing project_broader_scope_required project_system_scope_required project_lifetime_invalid project_lifetime_not_finite project_lifetime_exceeds_maximum project_delegation_exceeds_parent project_renewal_not_allowed project_delegation_widened project_audience_mismatch project_deployment_claim_missing project_authority_disabled project_issuer_not_current project_operation_not_durable project_dispatch_gate_refused
details
One of:

Present only on a quota-exceeded 403 — the inline upgrade-CTA payload.

object
key
required

The entitlement feature key that was hit, e.g. apps.max_count.

string
limit
required

The plan’s limit for this key.

integer format: int64
upgrade_url
required

Where to send the user to upgrade.

string
used
required

Current usage (count or bytes, per the key).

integer format: int64
error
required

Human-readable message (the server’s English text; the client may localize by code).

string
launch
One of:

Present on a launch refusal (400/403/409) — the structured facts only the refusing class can fill: occupancy, exhausted budget, or required labels.

object
active

Weighted workspace slots already held by starting/running agent runs.

integer | null format: int64
cap_usd

The budget cap that refused.

number | null format: double
effective_spend_usd

Effective spend of the refusing budget scope (spend + in-flight reservations).

number | null format: double
max

The workspace’s configured agent-concurrency cap.

integer | null format: int64
provider

The provider whose budget cap refused; absent for the workspace-wide cap.

string | null
required_labels

Runner labels a fail-policy placement required and no runner offered.

Array<string>

Example

{
"code": "not_found"
}

Authentication required

Media typeapplication/json

The canonical JSON body of every error response. Every AppError serializes as this exact shape; code is the generated stable machine-readable vocabulary.

object
cap
One of:

Present only on an MCP budget refusal (429) — the refusing layer + retry hint.

object
layer
required

The refusing layer.

string
limit
required

The layer’s budget.

integer format: int64
retry_after_seconds

Seconds until a retry can pass, or null when it never will for this session.

integer | null format: int64
used
required

Calls already counted in the layer.

integer format: int64
code
required

Machine-readable, stable error code.

string
Allowed values: not_found unauthorized forbidden license_required license_expired fresh_auth_required source_not_released bad_request unprocessable precondition_failed conflict artifact_staging_busy artifact_staging_store_unavailable intervention_attachment_limit method_not_allowed rate_limited too_many_requests quota_exceeded mcp_cap_exceeded form_schema_invalid autosave_not_offered submit_not_offered idempotency_key_reused response_cap_reached required_missing database_error docker_error vault_error internal_error artifact_frames_unavailable identity_native_custody_unconfigured launch_concurrency_limit launch_already_active launch_not_pending launch_budget_exhausted launch_draining launch_side_effects_disabled launch_dispatch_disabled no_eligible_runner launch_image_unavailable pull_request_no_git_branch pull_request_no_project project_credential_missing project_credential_expired project_credential_revoked project_credential_substitution project_parent_credential_not_current project_lineage_invalid project_binding_missing project_binding_mismatch project_not_found project_capability_not_granted project_capability_unknown project_capabilities_required project_history_is_not_authority project_task_not_found project_task_project_missing project_task_not_active project_native_origin_missing project_broader_scope_required project_system_scope_required project_lifetime_invalid project_lifetime_not_finite project_lifetime_exceeds_maximum project_delegation_exceeds_parent project_renewal_not_allowed project_delegation_widened project_audience_mismatch project_deployment_claim_missing project_authority_disabled project_issuer_not_current project_operation_not_durable project_dispatch_gate_refused
details
One of:

Present only on a quota-exceeded 403 — the inline upgrade-CTA payload.

object
key
required

The entitlement feature key that was hit, e.g. apps.max_count.

string
limit
required

The plan’s limit for this key.

integer format: int64
upgrade_url
required

Where to send the user to upgrade.

string
used
required

Current usage (count or bytes, per the key).

integer format: int64
error
required

Human-readable message (the server’s English text; the client may localize by code).

string
launch
One of:

Present on a launch refusal (400/403/409) — the structured facts only the refusing class can fill: occupancy, exhausted budget, or required labels.

object
active

Weighted workspace slots already held by starting/running agent runs.

integer | null format: int64
cap_usd

The budget cap that refused.

number | null format: double
effective_spend_usd

Effective spend of the refusing budget scope (spend + in-flight reservations).

number | null format: double
max

The workspace’s configured agent-concurrency cap.

integer | null format: int64
provider

The provider whose budget cap refused; absent for the workspace-wide cap.

string | null
required_labels

Runner labels a fail-policy placement required and no runner offered.

Array<string>

Example

{
"code": "not_found"
}

Permission denied

Media typeapplication/json

The canonical JSON body of every error response. Every AppError serializes as this exact shape; code is the generated stable machine-readable vocabulary.

object
cap
One of:

Present only on an MCP budget refusal (429) — the refusing layer + retry hint.

object
layer
required

The refusing layer.

string
limit
required

The layer’s budget.

integer format: int64
retry_after_seconds

Seconds until a retry can pass, or null when it never will for this session.

integer | null format: int64
used
required

Calls already counted in the layer.

integer format: int64
code
required

Machine-readable, stable error code.

string
Allowed values: not_found unauthorized forbidden license_required license_expired fresh_auth_required source_not_released bad_request unprocessable precondition_failed conflict artifact_staging_busy artifact_staging_store_unavailable intervention_attachment_limit method_not_allowed rate_limited too_many_requests quota_exceeded mcp_cap_exceeded form_schema_invalid autosave_not_offered submit_not_offered idempotency_key_reused response_cap_reached required_missing database_error docker_error vault_error internal_error artifact_frames_unavailable identity_native_custody_unconfigured launch_concurrency_limit launch_already_active launch_not_pending launch_budget_exhausted launch_draining launch_side_effects_disabled launch_dispatch_disabled no_eligible_runner launch_image_unavailable pull_request_no_git_branch pull_request_no_project project_credential_missing project_credential_expired project_credential_revoked project_credential_substitution project_parent_credential_not_current project_lineage_invalid project_binding_missing project_binding_mismatch project_not_found project_capability_not_granted project_capability_unknown project_capabilities_required project_history_is_not_authority project_task_not_found project_task_project_missing project_task_not_active project_native_origin_missing project_broader_scope_required project_system_scope_required project_lifetime_invalid project_lifetime_not_finite project_lifetime_exceeds_maximum project_delegation_exceeds_parent project_renewal_not_allowed project_delegation_widened project_audience_mismatch project_deployment_claim_missing project_authority_disabled project_issuer_not_current project_operation_not_durable project_dispatch_gate_refused
details
One of:

Present only on a quota-exceeded 403 — the inline upgrade-CTA payload.

object
key
required

The entitlement feature key that was hit, e.g. apps.max_count.

string
limit
required

The plan’s limit for this key.

integer format: int64
upgrade_url
required

Where to send the user to upgrade.

string
used
required

Current usage (count or bytes, per the key).

integer format: int64
error
required

Human-readable message (the server’s English text; the client may localize by code).

string
launch
One of:

Present on a launch refusal (400/403/409) — the structured facts only the refusing class can fill: occupancy, exhausted budget, or required labels.

object
active

Weighted workspace slots already held by starting/running agent runs.

integer | null format: int64
cap_usd

The budget cap that refused.

number | null format: double
effective_spend_usd

Effective spend of the refusing budget scope (spend + in-flight reservations).

number | null format: double
max

The workspace’s configured agent-concurrency cap.

integer | null format: int64
provider

The provider whose budget cap refused; absent for the workspace-wide cap.

string | null
required_labels

Runner labels a fail-policy placement required and no runner offered.

Array<string>

Example

{
"code": "not_found"
}

Structured server error

Media typeapplication/json

The canonical JSON body of every error response. Every AppError serializes as this exact shape; code is the generated stable machine-readable vocabulary.

object
cap
One of:

Present only on an MCP budget refusal (429) — the refusing layer + retry hint.

object
layer
required

The refusing layer.

string
limit
required

The layer’s budget.

integer format: int64
retry_after_seconds

Seconds until a retry can pass, or null when it never will for this session.

integer | null format: int64
used
required

Calls already counted in the layer.

integer format: int64
code
required

Machine-readable, stable error code.

string
Allowed values: not_found unauthorized forbidden license_required license_expired fresh_auth_required source_not_released bad_request unprocessable precondition_failed conflict artifact_staging_busy artifact_staging_store_unavailable intervention_attachment_limit method_not_allowed rate_limited too_many_requests quota_exceeded mcp_cap_exceeded form_schema_invalid autosave_not_offered submit_not_offered idempotency_key_reused response_cap_reached required_missing database_error docker_error vault_error internal_error artifact_frames_unavailable identity_native_custody_unconfigured launch_concurrency_limit launch_already_active launch_not_pending launch_budget_exhausted launch_draining launch_side_effects_disabled launch_dispatch_disabled no_eligible_runner launch_image_unavailable pull_request_no_git_branch pull_request_no_project project_credential_missing project_credential_expired project_credential_revoked project_credential_substitution project_parent_credential_not_current project_lineage_invalid project_binding_missing project_binding_mismatch project_not_found project_capability_not_granted project_capability_unknown project_capabilities_required project_history_is_not_authority project_task_not_found project_task_project_missing project_task_not_active project_native_origin_missing project_broader_scope_required project_system_scope_required project_lifetime_invalid project_lifetime_not_finite project_lifetime_exceeds_maximum project_delegation_exceeds_parent project_renewal_not_allowed project_delegation_widened project_audience_mismatch project_deployment_claim_missing project_authority_disabled project_issuer_not_current project_operation_not_durable project_dispatch_gate_refused
details
One of:

Present only on a quota-exceeded 403 — the inline upgrade-CTA payload.

object
key
required

The entitlement feature key that was hit, e.g. apps.max_count.

string
limit
required

The plan’s limit for this key.

integer format: int64
upgrade_url
required

Where to send the user to upgrade.

string
used
required

Current usage (count or bytes, per the key).

integer format: int64
error
required

Human-readable message (the server’s English text; the client may localize by code).

string
launch
One of:

Present on a launch refusal (400/403/409) — the structured facts only the refusing class can fill: occupancy, exhausted budget, or required labels.

object
active

Weighted workspace slots already held by starting/running agent runs.

integer | null format: int64
cap_usd

The budget cap that refused.

number | null format: double
effective_spend_usd

Effective spend of the refusing budget scope (spend + in-flight reservations).

number | null format: double
max

The workspace’s configured agent-concurrency cap.

integer | null format: int64
provider

The provider whose budget cap refused; absent for the workspace-wide cap.

string | null
required_labels

Runner labels a fail-policy placement required and no runner offered.

Array<string>

Example

{
"code": "not_found"
}