Skip to content

`GET /api/team-board` — the dense, server-paginated delivery board for the active workspace: one row per agent profile (or unassigned-agent fallback), each carrying aggregate queued / running / needs-input / done-PR / failed counts plus last activity and cost. Route name unchanged (ADR 0040).

GET
/api/team-board
curl --request GET \
--url https://example.com/api/team-board \
--cookie supacloud_session=<supacloud_session>

GET /api/team-board — the dense, server-paginated delivery board for the active workspace: one row per agent profile (or unassigned-agent fallback), each carrying aggregate queued / running / needs-input / done-PR / failed counts plus last activity and cost. Route name unchanged (ADR 0040).

status
string

Status tab: active / attention / failed (anything else = all).

q
string

Free-text search over the agent profile name + agent type.

sort
string

Whitelisted sort column: last_activity | cost_usd | agent_type | total_tasks | prs_merged | avg_duration_secs. Default last_activity.

dir
string

asc | desc (default desc).

period
string

#626 — the reporting period the WHOLE board is scoped to: today | 7d | 30d | 90d | year (default 7d). Windows the rows, facets, KPIs and trend on tasks.created_at >= since.

limit
integer format: int64
offset
integer format: int64
include_facets
boolean

Recompute the NavTab count facets (default true). The board sends false for a tab/page change (the counts don’t depend on either).

include_kpis
boolean

Compute the windowed KPI block (default true). The board sends false for a tab/page change (the KPIs depend only on the period, not the tab/page).

OK

Media typeapplication/json

GET /team-board body — one page of dense per-profile delivery rows.

object
facets
One of:

NavTab count facets — per-PROFILE-ROW counts over the workspace scope, independent of the active tab. active = rows with any in-flight task, attention = rows with any needs-input task, failed = rows with any failed/cancelled task. The paused filter chip (a row with NO in-flight task) is derived and carries no dedicated count — the FE renders the status chips label-only, so only these four counts are surfaced.

object
active
required
integer format: int64
all
required
integer format: int64
attention
required
integer format: int64
failed
required
integer format: int64
workspace_total
required

AUD-UX-051 (UI law 10) — every task of the workspace with NO period window and NO tab/search cut. Only zero here may read as “no deliveries yet”; an empty period over a non-zero total is a quiet window or a search miss.

integer format: int64
items
required
Array<object>

One dense delivery-board row: an agent-profile bucket with aggregate task counts (no per-task Vecs). profile is resolved for rows with a profile id; fallback_agent_type is set for the unassigned-fallback bucket.

object
active_tasks
required
integer format: int64
avg_duration_secs

#626 — mean wall-clock seconds over the bucket’s completed tasks (“Ø Dauer”); null when no task completed in the window.

number | null format: double
cost_usd
number | null format: double
done_pr
required
integer format: int64
failed
required
integer format: int64
fallback_agent_type
string | null
last_activity
string | null format: date-time
last_model

#626 — the most recent model the bucket’s outcomes recorded; the FE prefers the profile’s pinned fixed_model and falls back to this for a non-fixed (auto-policy) profile. null when no outcome carried a model.

string | null
needs_input
required
integer format: int64
profile
One of:
object
allow_tier_escalation

SC-3 (migration 418) — lets a task under this profile request a STRONGER tier than its own through delegate_subtask / task.create. false = refused.

boolean
autonomy_level

ADR 0045 §3.1 Stage 4 — OPTIONAL profile autonomy override (mig 214, nullable SMALLINT). None = inherit the project/workspace level (sits between project and workspace in the §3.1 precedence chain). #[serde(default)] keeps old AgentProfileVersion JSON snapshots (pre-214) deserializable — they default to None (a no-op).

integer | null format: int32
autonomy_overrides

ADR 0045 §3.1 — per-axis Advanced override vector (mig 214, JSONB NOT NULL DEFAULT '{}'). Empty {} = no per-axis override; the editor reads an optional level key. #[serde(default)] keeps old snapshots deserializable. Runtime stays serde_json::Value; the spec types it as an open map.

object
key
additional properties
avatar_kind
required

Avatar rendering kind (color | initial | icon | image). Runtime String; the spec narrows it to the closed [AvatarKind] the editor offers.

string
Allowed values: color initial icon image
avatar_value
string | null
capability_allowlist
required
Array<string>
color
required
string
created_at
required
string format: date-time
default_agent_type
required
string
description
string | null
effort_default
One of:

ADR 0045 §3.6 — the profile’s default reasoning effort (migration 208, effort_default TEXT). Canonical lowercase string (minimal | low | medium | high | max); None means “inherit the runner default”. #[serde(default)] keeps old AgentProfileVersion JSON snapshots (written before this column existed) deserializable — they default to None (a no-op). Runtime stays String; the spec narrows it to the closed canonical [sc_types::Effort] (its lowercase wire form matches this column’s DB CHECK set).

string
Allowed values: minimal low medium high max
enabled
required
boolean
execution_mode

Issue #364 / ADR 0039 (D7) — Claude execution mode lever (normal | workflow; ultracode was RETIRED from this dimension by #708 who-3, migration 285 — it survives only as the top EFFORT stage). #[serde(default = ...)] keeps old AgentProfileVersion JSON snapshots (written before this column existed) deserializable; they default to "normal" (a no-op). Runtime String; the spec narrows it to the closed [ExecutionMode].

string
Allowed values: normal workflow
fixed_model
string | null
id
required
string format: uuid
interactive_approval

ADR 0045 §3.2 Stage 3 — when true, a task running under this profile arms the interactive-approval gate (the runner’s canUseTool / pre-exec hook pauses on a dangerous tool call, an open question, or a visual before/after and waits for a human Approve/Reject; migration 213). false is today’s behaviour (no gate). #[serde(default)] keeps old AgentProfileVersion JSON snapshots (written before this column existed) deserializable — they default to false (a no-op).

boolean
is_workspace_default

Issue #242 — when true, this profile’s capability_allowlist is the workspace fallback MCP tool set for profile-less / empty-allowlist tasks. At most one profile per team carries this flag (enforced by the partial unique index uq_agent_profiles_workspace_default in migration 119).

boolean
max_subagents

#838 — per-profile DEFAULT for the subagent concurrency ceiling (migration 358, nullable; 1..=64). The env build folds task.config.max_subagents ?? profile.max_subagents ?? workspace_settings.default_max_subagents ?? (no env), so this is the middle tier: the launch override still wins, and with every tier absent no SUBAGENT_MAX_PARALLEL is emitted and the harness keeps its own default. None = today’s behaviour.

The ceiling is only as strong as the harness allows — codex takes a real per-session cap, the rest receive it as an instruction — which is why the UI labels it from model_capabilities.subagent_cap_level instead of implying a guarantee. #[serde(default)] keeps pre-358 AgentProfileVersion snapshots deserializable.

integer | null format: int32
max_turns

#1018 — per-profile DEFAULT for the harness turn limit (migration 340, nullable; > 0). The env build folds task.config.max_turns ?? profile.max_turns ?? (no env) — the task config stays the per-launch override, and with both absent no MAX_TURNS env is emitted so the runner default (500, DEFAULT_MAX_TURNS) applies. None = today’s behaviour. #[serde(default)] keeps pre-340 AgentProfileVersion snapshots deserializable.

integer | null format: int32
mcp_memory_create

ADR 0049 (#547 / #548) — opt-in gate for the agent memory.create MCP tool (migration 249, BOOLEAN NOT NULL DEFAULT false). When false (the default for every profile) a task running under this profile CANNOT directly create a memory — memory.create fails closed; only a workspace admin enabling this on the profile editor opens the unreviewed direct-write path. Distinct from memory_policy.allow_propose_create (the default-true review-first gate). #[serde(default)] keeps old AgentProfileVersion JSON snapshots (written before this column existed) deserializable — they default to false (a no-op).

boolean
mcp_ops_per_hour_cap

#858 W4a — per-profile override of the rolling profile-hourly MCP Ops budget (migration 320, nullable; range 1–1000). None = the ADR 0028 default (30). The workspace-daily Ops ceiling (100/day) is NOT overridable. #[serde(default)] keeps pre-320 snapshots deserializable.

integer | null format: int32
mcp_ops_per_task_cap

#858 W4a — per-profile override of the per-task/per-tool MCP Ops budget (migration 320, nullable; range 1–500). None = the ADR 0028 default (10). Admin-gated via the profile PUT; a long-lived coordinator session raises it deliberately instead of the global default weakening. #[serde(default)] keeps pre-320 AgentProfileVersion snapshots deserializable.

integer | null format: int32
memory_policy
required

The fixed memory-policy knobs the editor reads. Runtime stays serde_json::Value; the spec types it as [AgentMemoryPolicy].

object
allow_personal
required
boolean
auto_inject_kinds
required
Array<string>
auto_inject_scopes
required
Array<string>
max_auto_memories
required
integer format: int64
mcp_read_kinds
required
Array<string>
mcp_read_scopes
required
Array<string>
model_policy
required

Model-selection policy (manual | fixed | auto | tier). Runtime String; the spec narrows it to the closed [ModelPolicy].

string
Allowed values: manual fixed auto tier
model_tier

SC-3 (migration 418) — the calibrator TIER a model_policy = 'tier' profile binds (flagship | balanced | fast | independent_review), resolved at every launch to the first reachable entry of the workspace’s chain for it. NULL for every other policy (DB CHECK). #[serde(default)] keeps pre-418 snapshots deserializable.

string | null
name
required
string
persona_prompt
required
string
placement_policy

SC-6 (migration 435, nullable JSONB) — the profile tier of the runner placement policy: {on_no_runner: queue | fail | local, queue_timeout_minutes}, the same document shape as projects.placement_policy. It sits between the stage and the project in the placement fold; None = inherit. Validated on every write door by sc_kernel::placement_policy::validate_policy_document. #[serde(default)] keeps pre-435 AgentProfileVersion snapshots deserializable.

object | null
post_flight_checks
required

Forward-compatible list of post-flight check entries (e.g. the kind:"visual_verify" gate). Runtime stays serde_json::Value; spec-typed as an array of open maps.

Array<object>
object
key
additional properties
pr_template
string | null
pre_flight_checks
required

Forward-compatible list of pre-flight check entries (each an open object, e.g. a kind-discriminated gate). Runtime stays serde_json::Value; the spec types it as an array of open maps so the value is not stripped.

Array<object>
object
key
additional properties
required_worker_group_ids

ADR 0046 RUNG 1b — OPTIONAL profile worker-group affinity override (mig 227, nullable UUID[]). None = inherit (the head of the first-non-null profile->project->task chain — NULL contributes nothing); Some(vec![]) = an explicit “no affinity from this source”. Resolved into the task’s required_labels by services::runners::groups. #[serde(default)] keeps old AgentProfileVersion JSON snapshots (pre-227) deserializable.

NB: this binding is intentionally EXCLUDED from agent-profile version snapshot/restore — it is dispatch-routing scope (a live operational binding), not part of the profile’s behavioural definition, so a version restore does not carry or revert it (ADR 0046 RUNG 1b review).

Array<string> | null
resource_class
One of:

#1176 — the profile’s RESOURCE CLASS (migration 361, nullable; normal | heavy). The middle tier of task.config.resource_class ?? profile.resource_class ?? workspace_settings.default_resource_class ?? normal.

It sits on the profile because a profile already decides WHO runs — harness, model, effort, MCP allowlist, per-profile Ops caps — and how much machine that work needs is the same kind of fact. “The audit profile is heavy” is a statement about the work, not about one launch.

A class is not just memory: it also weighs more in the workspace concurrency allowance, so raising it does not raise the host’s peak footprint. None = today’s behaviour. Runtime stays String; the spec narrows it to the closed [sc_types::ResourceClass]. #[serde(default)] keeps pre-361 AgentProfileVersion snapshots deserializable.

string
Allowed values: normal heavy
retry_policy
required

Open retry-policy bag. Runtime stays serde_json::Value; spec-typed as an open map.

object
key
additional properties
review_required
required
boolean
script_allowlist

Issue #217 / ADR 0028 — optional slug whitelist for the script.run MCP tool. NULL means any script in the workspace is callable; a non-NULL array (including empty) is an explicit whitelist.

Array<string> | null
slug
required
string
tags
required
Array<string>
tool_approval_deny_minutes

#1175 (migration 363, nullable) — the profile’s TOOL-GATE deny budget in minutes. The middle tier of task.config.tool_approval_deny_minutes ?? profile ?? workspace_settings.default_tool_approval_deny_minutes ?? 1440.

It sits on the profile for the same reason the resource class does: a profile already decides WHO runs and how far it may go unattended, and how long that runbook’s gate may wait before an explicit deny policy expires is the same kind of fact. None = today’s behaviour.

It NEVER affects a hold gate, which is the default for every runner-raised gate and carries no deadline at all (#1164).

integer | null format: int32
updated_at
required
string format: date-time
version
required
integer format: int32
workspace_id
required
string format: uuid
prs_merged
required

#626 — PRs merged by this bucket’s tasks (the “PRs” column).

integer format: int64
queued
required
integer format: int64
running
required
integer format: int64
total_tasks
required
integer format: int64
trend
required

#626 — a per-day task-count sparkline over the window (oldest → newest, gap-filled to a fixed length). Drives the “Trend” column.

Array<integer>
kpis
One of:

#626 — the windowed KPI block (prior-window deltas included), present only when include_kpis (default true).

object
active_new_in_period
required

Tasks created in the window (the period’s new-work volume).

integer format: int64
active_task_total
required

In-flight tasks right now (window-independent — a long run counts whenever it started).

integer format: int64
avg_cycle_time_secs

Mean wall-clock seconds (completion − start) over the window’s completed tasks; null on an empty window.

number | null format: double
avg_cycle_time_secs_prev

The prior window’s mean cycle time (the delta baseline); null when the prior window had no completed task.

number | null format: double
needs_input_total
required

Tasks needing input right now (window-independent).

integer format: int64
prs_draft
required

Draft PRs (pr_is_draft IS TRUE); 0 until a PR-draft writer reports the flag.

integer format: int64
prs_merged
required

PRs merged in the window.

integer format: int64
prs_merged_prev
required

PRs merged in the equal-length window immediately before (the delta baseline).

integer format: int64
prs_open
required

PRs opened and still open (not merged, not closed-unmerged).

integer format: int64
total
required
integer format: int64

Example

{
"items": [
{
"profile": {
"avatar_kind": "color",
"effort_default": "minimal",
"execution_mode": "normal",
"model_policy": "manual",
"resource_class": "normal"
}
}
]
}

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