Skip to content

GET /workspaces/{id}/settings — read the persisted workspace settings the FE pre-hydrates from (today: the system-LLM credential pin). A workspace MEMBER may read it; the PATCH on the same path stays admin-only.

GET
/api/workspaces/{id}/settings
curl --request GET \
--url https://example.com/api/workspaces/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/settings \
--cookie supacloud_session=<supacloud_session>

GET /workspaces/{id}/settings — read the persisted workspace settings the FE pre-hydrates from (today: the system-LLM credential pin). A workspace MEMBER may read it; the PATCH on the same path stays admin-only.

id
required
string format: uuid

Workspace ID whose settings to read

Workspace settings (the system-LLM credential pin)

Media typeapplication/json

The workspace-settings read body. Carries the system-LLM credential pin (null when unpinned) and — ADR 0049 P3 / Tier-3 (#547/#548) — the per-scope memory GOVERNANCE policy (always present; a never-configured workspace returns the conservative default). A passthrough() on the FE schema leaves room for further settings without a wire break.

object
agent_commit_co_author
required

#1546 G1 (mig 679) — the workspace tier of the agent-commit co-author setting (stored: true | false | null) and what applies (effective, source). A member may read it; PATCH stays admin-only.

object
effective
required

Whether agent commits carry the launching human’s Co-authored-by line here (before that person’s own opt-out, which always wins).

boolean
source
required

Where effective came from: project | workspace | built_in.

string
stored
required

This tier’s own setting; null inherits the tier above.

boolean | null
allow_debug
required

#583 Item 2 / #582 — the Debug-light CEILING. When true, members may opt their own live/follow session into debug; when false (the fail-closed default), no one can enable debug in this workspace. A workspace MEMBER may read it (correct: a non-admin needs it to gate the per-session toggle UI).

boolean
artifact_comment_followup
required

#1527 S4 (ADR 0085) — the workspace tier of the artifact comment follow-up policy (stored: auto | approval | null) and what applies (effective, source). A member may read it; PATCH stays admin-only.

object
effective
required

The policy in force for member comments (auto | approval); an external comment always needs approval.

string
source
required

document | project | workspace | built_in.

string
stored

This tier’s own setting (auto | approval), None = inherited.

string | null
artifact_external_delivery
required

#1527 external delivery — the default a NEW link gets and the workspace ceiling.

object
default
required

What a NEW link gets when its creator says nothing.

string
Allowed values: review direct
max
required

The most a link may choose.

string
Allowed values: review direct
calibration_carrier_preference
required

#1227 (mig 371) - the calibrator’s CARRIER ORDER for this workspace: subscription_first (the default - every model reachable through a subscription with measured headroom orders ahead of every model reachable only through an API key) or score (the score alone decides). Always present; a workspace that never touched it reads the default.

string
Allowed values: subscription_first score
calibration_domains
required

Effective configurable calibration domains, independent of execution kind.

closeout_config
required

#712 — the workspace-tier standard-closeout config ({memory, project_docs, user_docs, wiki}, mig 283). Always present: a workspace that never configured closeout returns the built-in default so the closeout panel hydrates without a sparse-table special case. It is the DEFAULT every project inherits (per step) when the project + task tiers leave a step unset.

default_max_subagents
required

#838 (mig 358) — the workspace-DEFAULT ceiling on how many subagents ONE task may run at once, or null when no workspace default is set. The last tier of task.config.max_subagents ?? profile.max_subagents ?? this ?? (no env).

These subagents are helpers the HARNESS spawns inside one task and one container — not Claude Code’s team-mode subagents (agent_teams / max_teammates, separate worktrees) and not sub-tasks (real task rows). Only the first shares a memory allowance, which is what the ceiling protects. How hard it binds varies by harness: the FE labels it from the selected model’s subagent_cap_level, so an advisory limit is never shown as a guarantee.

integer | null format: int32
default_resource_class
required
One of:

#1176 (mig 361) — the workspace-DEFAULT resource class, or null when no workspace default is set. The last tier of task.config.resource_class ?? profile.resource_class ?? this ?? normal.

A class decides how much MACHINE a task gets: its container memory cap AND how many of the workspace’s parallel slots it holds — one budget, not two, so heavy trades parallelism for room instead of multiplying the host’s peak footprint. This tier is the only one a PROFILE-LESS task can reach, which is every workflow and auto-dev run.

string
Allowed values: normal heavy
default_tool_approval_deny_minutes

#1175 (mig 363) — the workspace-DEFAULT tool-gate deny budget in minutes, or null when none is set. The last tier of task.config.tool_approval_deny_minutes ?? profile ?? this ?? 1440.

It bounds ONLY a gate whose caller explicitly chose the deny timeout policy. The default for every runner-raised gate is hold, which waits for a person however long that takes and has no deadline to configure.

integer | null format: int32
environment_scope_floor
required

#708 W8 — the workspace environment-scope FLOOR (all | production | staging | development, mig 290), or null when no floor is set. A concrete value narrows every autonomous run’s blast radius to at most that environment class. A workspace MEMBER may read it (to render the resolved effective gates); PATCH stays admin-only.

string | null
failure_notify
required
One of:

#838 — the workspace-level workflow-failure alert target (telegram_bot resource + chat id, mig 319), or null when alerting is off. A workflow run terminalizing to failed sends one Telegram message there.

object
chat_id
required

The channel the alert is sent to — a Telegram chat id (numeric or @channel) or a Discord channel snowflake, per the resource’s kind.

string
resource_id
required

The chat resource whose bot token sends the alert. #1052: a telegram_bot OR a discord resource — the transport follows this resource’s kind, so the alert reaches whichever chat surface the workspace works in.

string format: uuid
harness_config
required

#1397 (mig 404) — the workspace’s per-harness agent config bag ({"opencode": {…}}), or null when never configured. A workspace MEMBER may read it so the settings card hydrates; PATCH stays admin-only.

lane_tier_chains
required

SC-16 - the workspace’s LANE tier-chain override (workspace_settings.lane_tier_chains, keyed by vision_judge, image_gen, video_gen, speech_gen, music_gen, model3d_gen, security_review, document_extraction), or null when never configured. A separate document from model_fallback_chains: the two namespaces are never mixed, and an entry’s agent names the GATEWAY PROVIDER a lane call goes to. Member-readable, admin-writable - the same rule as vision_model.

lane_tier_chains_effective
required

SC-16 - the RESOLVED lane chains a lane call runs on (workspaces::resolve_lane_tier_chains_effective, the same function the code-node lane runtime uses). Only document_extraction has a built-in default (#1549); an unconfigured workspace resolves to that default alone. A stored override that does not parse resolves to {}: no lane chain is in force, and a code-node lane call refuses with invalid_stored_chain.

mcp_external_ops_hourly_limit
required

#977 — the external-MCP OPS per-token hourly aggregate override (mig 330), or null when the env/default (30/h) applies.

integer | null format: int32
mcp_external_read_hourly_limit
required

#977 — the external-MCP READ per-tool hourly-window override (mig 330), or null when the built-in window applies.

integer | null format: int32
memory_embedding
required

#1228 slice 2 — the workspace’s memory-EMBEDDING config (mig 368): pinned provider and/or model, or empty = auto (first keyed provider, provider default model). Always present so the card hydrates.

object
model
string | null
provider
string | null
memory_embedding_effective
required
One of:

#1228 slice 2 — what is IN FORCE: the embedder the workspace actually resolves (config + credentials), or null when no usable embedding credential exists — in which case retrieval runs on the deterministic hash. Resolved by the SAME fold the query paths and the re-index sweep use.

object
indexed_rows
required

… of which carry a vector under model_key; the rest wait for the sweep.

integer format: int64
live_rows
required

Live (unarchived, valid) memories of the workspace.

integer format: int64
model
required
string
model_key
required

The stored memory_embeddings.model key (<provider>:<model>) — the re-index migration key.

string
price_estimated
required

#1228 review F6.4 — true when this model is NOT in the embedding price table: every ledger booking under it is costed at the ceiling estimate, not at a list price. Derived from the PURE table (never from a runtime call), so an operator reading this page learns that the spend figure is an estimate without the page itself costing anything.

boolean
provider
required
string
sweep_error

The background re-index’s last error, when it is currently failing.

string | null
sweep_failed_since

Since when it has been failing (the first failure after a success).

string | null format: date-time
memory_governance
required

ADR 0049 P3 / Tier-3 — the per-scope memory governance policy (auto-publish / require-review / retention-days, keyed by workspace|project|personal). Always present so the governance panel hydrates without a sparse-table special case; a never-configured workspace gets the conservative default.

object
personal

The governance rule for ONE memory scope: whether new memories of that scope skip the review queue (auto_publish), whether they must be human-reviewed (require_review), and how long they are retained before the decay sweep may archive them (retention_days, 0 = keep forever).

auto_publish and require_review are intentionally NOT collapsed into one flag: the conservative default is “review required, not auto-published”, and a future “auto-published BUT still logged for review” mode keeps both axes meaningful. The validation below rejects the contradictory auto_publish && require_review combo.

object
auto_publish

New memories of this scope skip the review queue and land live immediately.

boolean
require_review

New memories of this scope must be human-reviewed before they go live.

boolean
retention_days

Days a memory of this scope is retained before the decay sweep may archive it; 0 keeps it forever. Defaults per scope: shared scopes (workspace/project) start at [DEFAULT_SHARED_RETENTION_DAYS] (#1228), personal at 0.

integer format: int32
<= 10000
not matching
auto_publish
required
require_review
required
project

The governance rule for ONE memory scope: whether new memories of that scope skip the review queue (auto_publish), whether they must be human-reviewed (require_review), and how long they are retained before the decay sweep may archive them (retention_days, 0 = keep forever).

auto_publish and require_review are intentionally NOT collapsed into one flag: the conservative default is “review required, not auto-published”, and a future “auto-published BUT still logged for review” mode keeps both axes meaningful. The validation below rejects the contradictory auto_publish && require_review combo.

object
auto_publish

New memories of this scope skip the review queue and land live immediately.

boolean
require_review

New memories of this scope must be human-reviewed before they go live.

boolean
retention_days

Days a memory of this scope is retained before the decay sweep may archive it; 0 keeps it forever. Defaults per scope: shared scopes (workspace/project) start at [DEFAULT_SHARED_RETENTION_DAYS] (#1228), personal at 0.

integer format: int32
<= 10000
not matching
auto_publish
required
require_review
required
workspace

The governance rule for ONE memory scope: whether new memories of that scope skip the review queue (auto_publish), whether they must be human-reviewed (require_review), and how long they are retained before the decay sweep may archive them (retention_days, 0 = keep forever).

auto_publish and require_review are intentionally NOT collapsed into one flag: the conservative default is “review required, not auto-published”, and a future “auto-published BUT still logged for review” mode keeps both axes meaningful. The validation below rejects the contradictory auto_publish && require_review combo.

object
auto_publish

New memories of this scope skip the review queue and land live immediately.

boolean
require_review

New memories of this scope must be human-reviewed before they go live.

boolean
retention_days

Days a memory of this scope is retained before the decay sweep may archive it; 0 keeps it forever. Defaults per scope: shared scopes (workspace/project) start at [DEFAULT_SHARED_RETENTION_DAYS] (#1228), personal at 0.

integer format: int32
<= 10000
not matching
auto_publish
required
require_review
required
message_retention_days
required

AUD-WIR-051 — the durable agent-mailbox retention window in days (1..=3650), or null when the pinned default applies. A member may read it; PATCH stays admin-only.

integer | null format: int32
model_defaults_gap
required

Why the model-defaults step is not done yet, naming the offending tier and entry; null when [Self::model_defaults_ready] is true. Surfaced so the checklist can say what to fix rather than only that something is unfinished.

string | null
model_defaults_ready
required

Whether the workspace’s DEFAULT models are decided and reachable — the onboarding “Standardmodelle” step. true when the fast and balanced tiers each lead with an entry whose provider this workspace holds a credential for and, where that head is a subscription, carry at least one fallback provider behind it and at most min(reachable providers, 4).

Computed server-side on purpose. It is the SAME value workspaces::graduate_onboarding refuses on, so the checklist step and the server can never disagree about whether the step is done — a browser-local re-derivation of the rule is exactly how a button and a gate drift apart.

boolean
model_fallback_chains
required

#926 — the workspace-level quota-fallback chain OVERRIDE (#867 substrate, sparse per-tier JSON as stored), or null when never configured — the built-in chains (TierChains::builtin) then apply. Round-trips exactly what the admin PATCHed; the effective chains additionally layer any per-profile retry_policy.model_fallback.chains override at task launch.

model_fallback_chains_effective
required

#984 item 926 — the RESOLVED quota-fallback chains a task at this workspace would actually get: the stored model_fallback_chains override merged over TierChains::builtin() (sc_svc_orchestration::model_fallback::resolve_chains, the SAME seam the runtime resolver uses). Always present — a workspace that never configured an override still has effective chains (the built-in ones) — so the GUI editor can prefill from this rather than hard-coding a model list. A malformed stored override degrades to the built-in chains here too, mirroring the resolver’s own fail-open-to-built-in posture.

system_llm_credential
One of:

The owner-pinned credential backing INTERNAL system-prompt LLM calls, or null when no pin is set (the default most-specific precedence applies).

object
id
required

The pinned credential id (api_key_refs.id or agent_oauth_tokens.id).

string format: uuid
kind
required

The credential kind: api_key or oauth_token.

string
vision_model
required

#838 (B1) — the workspace’s VISION-model override (mig 357), or null when the instance default applies. This is the model that describes an image for a model that cannot read one, and the fallback the visual-verify judge uses when a project arm has pinned no vision_judge_model of its own. A workspace MEMBER may read it (so the settings panel hydrates); PATCH stays admin-only.

string | null
vision_model_effective
required

#838 (B1) — the RESOLVED default a task at this workspace would actually use: the override above, else the instance default. Present so the settings panel can show what is in force (“inheriting gpt-5.6-luna”) instead of an empty field that looks like nothing is configured. null only when neither tier is set anywhere.

This reports what is CONFIGURED, not whether it is currently usable — usability additionally depends on the live catalog and a keyed provider, both of which can change between this read and a task launch, so asserting it here would be a claim the response cannot honour.

string | null
voice_config
required

#980 (mig 408) — the workspace’s voice-stack config ({"mode": …, "asr"?, "streaming_asr"?, "tts"?, "llm"?}), or null when never configured (the deployment’s own stack applies). A workspace MEMBER may read it so the settings card hydrates; PATCH stays admin-only.

voice_transcript_retention_days
required

AUD-INT-027 / SCG-156 (ADR 0079 D6) — the workspace’s voice TRANSCRIPT window in days (1..=3650), or null when the pinned 30-day default applies. A member may read it; PATCH stays admin-only.

integer | null format: int32

Example

{
"artifact_external_delivery": {
"default": "review",
"max": "review"
},
"calibration_carrier_preference": "subscription_first",
"default_resource_class": "normal"
}

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

Workspace not found

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