Skip to content

PATCH /workspaces/{id}/settings — update workspace settings (admin only). Carries the ADR 0045 onboarding-safe flag (graduating a workspace flips `onboarding_mode` to `false` and unlocks autonomous dispatch) and the backlog QUIET-HOURS window (Stage 1). All fields optional; see [`PatchWorkspaceSettingsRequest`]. Requires workspace admin (`ManageMembers`).

PATCH
/api/workspaces/{id}/settings
curl --request PATCH \
--url https://example.com/api/workspaces/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/settings \
--header 'Content-Type: application/json' \
--cookie supacloud_session=<supacloud_session> \
--data '{ "agent_commit_co_author": true, "allow_debug": true, "artifact_comment_followup": "auto", "artifact_external_delivery_default": "example", "artifact_external_delivery_max": "example", "autonomy_level": 1, "autonomy_overrides": "example", "calibration_carrier_preference": "subscription_first", "calibration_domains": "example", "closeout_config": "example", "default_max_subagents": 1, "default_resource_class": "normal", "default_tool_approval_deny_minutes": 1, "environment_scope_floor": "example", "failure_notify": { "chat_id": "example", "resource_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }, "harness_config": "example", "lane_tier_chains": "example", "mcp_external_ops_hourly_limit": 1, "mcp_external_read_hourly_limit": 1, "memory_embedding": { "model": "example", "provider": "example" }, "memory_governance": { "personal": { "auto_publish": true, "require_review": true, "retention_days": 1 }, "project": { "auto_publish": true, "require_review": true, "retention_days": 1 }, "workspace": { "auto_publish": true, "require_review": true, "retention_days": 1 } }, "message_retention_days": 1, "model_fallback_chains": "example", "onboarding_mode": true, "quiet_hours_end": "example", "quiet_hours_start": "example", "required_worker_group_ids": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "system_llm_credential": { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "kind": "example" }, "vision_model": "example", "voice_config": "example", "voice_transcript_retention_days": 1 }'

PATCH /workspaces/{id}/settings — update workspace settings (admin only). Carries the ADR 0045 onboarding-safe flag (graduating a workspace flips onboarding_mode to false and unlocks autonomous dispatch) and the backlog QUIET-HOURS window (Stage 1). All fields optional; see [PatchWorkspaceSettingsRequest]. Requires workspace admin (ManageMembers).

id
required
string format: uuid

Workspace ID whose settings to patch

Media typeapplication/json

PATCH body for workspace settings (ADR 0045 Stage 1). All fields optional: onboarding_mode graduates/re-arms the onboarding guard; the quiet-hours pair configures (both set), clears (both null) or leaves unchanged (absent) the backlog dispatch QUIET-HOURS window. Times are HH:MM, interpreted UTC.

object
agent_commit_co_author

#1546 G1 (mig 679) — the workspace tier of the agent-commit co-author setting: whether an agent commit carries Co-authored-by: <name> <email> of the human who launched the run. DOUBLE-Option: absent = no change; null = inherit the built-in default (ON); true | false SETS it. A person’s own opt-out always wins. Workspace-admin only; audited workspace.agent_commit_co_author.update.

boolean | null
allow_debug

#583 Item 2 / #582 — the Debug-light CEILING (allow_debug). Absent = no change; a value SETS the ceiling. Workspace-admin only (the handler already gates PATCH on WorkspaceAction::ManageMembers). true lets members opt their own live/follow session into debug; false (re-)closes the ceiling.

boolean | null
artifact_comment_followup
One of:

#1527 S4 (ADR 0085) — the workspace tier of the artifact comment follow-up policy (workspace_settings.artifact_comment_followup, mig 673): what a comment on a document whose task has ended leads to. DOUBLE-Option: absent = no change; null = inherit the built-in approval; auto | approval SETS it (anything else is a 400). Workspace-admin only; audited workspace.artifact_comment_followup.update.

string
Allowed values: auto approval
artifact_external_delivery_default

#1527 external delivery — the value a NEW share link gets (review | direct). DOUBLE-Option: absent = no change; null = the built-in review; a word SETS it. The default may not exceed the ceiling. Workspace-admin only; audited workspace.artifact_external_delivery.update.

string | null
artifact_external_delivery_max

#1527 external delivery — the workspace ceiling (review | direct): with review no link may deliver external feedback directly. Same shape and audit as the default.

string | null
autonomy_level

ADR 0045 Stage 4 — the workspace base autonomy level (0..=100). Absent = no change; null = clear back to the DEFAULT level; a value SETS the level (clamped to the plan ceiling before persist). DOUBLE-Option so the slider patch is distinguishable from an unrelated (onboarding/quiet-hours) patch.

integer | null format: int32
autonomy_overrides

ADR 0045 Stage 4 — the Advanced per-axis override vector. Absent leaves the stored overrides unchanged; a value replaces them ({} clears them). Only applied when the autonomy fields are touched.

calibration_carrier_preference
One of:

#1227 (mig 371) - the calibrator’s CARRIER ORDER. Single Option: absent = no change; a value SETS it (subscription_first | score, else 400). The column is NOT NULL, so there is no clear - a workspace that wants the default sends it by name. Workspace-admin only.

string
Allowed values: subscription_first score
calibration_domains

Dynamic domain definitions; null restores the defaults.

closeout_config

#712 — the workspace-tier standard-closeout config ({memory, project_docs, user_docs, wiki}, mig 283). Absent leaves the stored default unchanged; a value REPLACES the workspace default (shape-validated — a malformed bag is a 400). It is the DEFAULT every project inherits per step. Workspace-admin only (the handler gates PATCH on WorkspaceAction::ManageMembers).

default_max_subagents

#838 (mig 358) — the workspace-DEFAULT subagent concurrency ceiling. DOUBLE-Option: absent = no change; null = clear the default (the harness’s own behaviour applies unless a profile or the launch sets one); a value SETS it (1..=64, else 400). Workspace-admin only.

The upper bound tracks the container’s single memory allowance, which every subagent of a task shares — see workspaces::subagent_settings.

integer | null format: int32
default_resource_class
One of:

#1176 (mig 361) — the workspace-DEFAULT resource class. DOUBLE-Option: absent = no change; null = clear the default (the built-in normal applies unless a profile or the launch names one); a value SETS it (normal | heavy, else 400). Workspace-admin only.

The value is stored CANONICALISED (trimmed, lowercased), because the launch fold and the concurrency SQL both compare against the canonical wire string — a stored "Heavy" would pass this write and then silently never match.

string
Allowed values: normal heavy
default_tool_approval_deny_minutes

#1175 (mig 363) — the workspace-DEFAULT tool-gate deny budget in minutes. DOUBLE-Option: absent = no change; null = clear the default (the built-in day applies unless a profile or the task names one); a value SETS it ([5, 43200], else 400). Workspace-admin only.

It governs the deny timeout policy ONLY. hold — the default for every runner-raised gate since #1164 — carries no deadline, and nothing set here can give it one.

Out of range is REFUSED, not clamped: a stored value that is not the value that applies is the failure this whole tier exists to avoid.

integer | null format: int32
environment_scope_floor

#708 W8 — the workspace environment-scope FLOOR (all | production | staging | development, mig 290). Absent = no change; null = clear (no floor); a value MANDATES that no autonomous run acts outside that environment class (the blast radius is narrowed to it). An invalid value is a 400. Workspace-admin only.

string | null
failure_notify
One of:

#838 — the workflow-failure alert target (mig 319). DOUBLE-Option: absent = no change; null = disarm alerting; a value SETS the target (the resource must be a telegram_bot in THIS workspace, the chat id non-empty — an invalid target is a 400). Workspace-admin only.

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

#1397 (mig 404) — the per-harness agent config bag ({"opencode": {...}}). DOUBLE-Option: absent = no change to the stored bag; null = clear it (no per-harness overrides); a value REPLACES it. The service validates the shape and REFUSES model/provider/mcp/enabled_providers with a 400 — those re-route an admitted run and are not guardrails. Workspace-admin only.

lane_tier_chains

SC-16 - the workspace’s LANE tier-chain override (workspace_settings.lane_tier_chains): the same sparse per-tier form, keyed by the lane tiers (vision_judge, image_gen, video_gen, speech_gen, music_gen, model3d_gen, security_review, document_extraction); an entry’s agent names the GATEWAY PROVIDER, and a document_extraction entry takes no effort. DOUBLE-Option: absent = no change; null = clear (no lane chain); a value REPLACES it. A text tier key, a malformed entry or a lane with no reachable entry is a 400. Workspace-admin only.

mcp_external_ops_hourly_limit

#977 — the external-MCP OPS per-token hourly aggregate override (mig 330). DOUBLE-Option: absent = no change; null = clear back to the env/default (30/h); a value SETS it (1..=100000, else 400). Workspace-admin only.

integer | null format: int32
mcp_external_read_hourly_limit

#977 — the external-MCP READ per-tool hourly-window override (mig 330). DOUBLE-Option: absent = no change; null = clear back to the built-in window; a value SETS it (1..=100000, else 400). Workspace-admin only.

integer | null format: int32
memory_embedding
One of:

#1228 slice 2 — the memory-EMBEDDING config (mig 368). Absent = no change; null = clear back to full auto; an object {provider?, model?} = set (normalized + validated: a provider must have an embeddings API, a model is one token). An all-empty object clears too. Workspace-admin only.

object
model
string | null
provider
string | null
memory_governance
One of:

ADR 0049 P3 / Tier-3 (#547/#548) — the per-scope memory GOVERNANCE policy (auto-publish / require-review / retention-days, keyed by workspace|project|personal). Absent leaves the stored policy unchanged; a value REPLACES it (the panel always sends the full three-scope policy). Validated (no contradictory auto-publish + require-review; bounded retention) before persist. Workspace admin.

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

AUD-WIR-051 — the durable agent-mailbox retention window in days (1..=3650). Absent = no change; null = back to the pinned default. A message keeps the window stamped when it was sent. Workspace-admin only.

integer | null format: int32
model_fallback_chains

#926 — the workspace-level quota-fallback chain OVERRIDE (#867 substrate, workspace_settings.model_fallback_chains): a sparse per-tier JSON object ({"flagship": [{"agent":"claude","model":"…"}, …], …}) consumed by TierChains::from_json. DOUBLE-Option: absent = no change; null = clear back to the built-in chains; a value REPLACES the override (validated fail-closed — an unknown tier key or malformed entry is a 400). Workspace-admin only.

onboarding_mode

Onboarding-safe flag. false graduates the workspace (autonomous backlog dispatch + uncapped autonomy); absent leaves it unchanged.

boolean | null
quiet_hours_end

Quiet-window end (HH:MM, UTC). Absent = no change; null = clear.

string | null
quiet_hours_start

Quiet-window start (HH:MM, UTC). Absent = no change; null = clear.

string | null
required_worker_group_ids

ADR 0046 RUNG 1b — the workspace worker-group FLOOR binding (the always-unioned isolation primitive). Absent = no change; a value (incl. []) REPLACES the floor. Persisted only when present, so an unrelated settings patch never clears it. Workspace admin.

Array<string> | null
system_llm_credential
One of:

#532 (A5) — the OWNER-pinned credential that backs INTERNAL system-prompt LLM calls (backlog classify / judge / recommendations / debate / vision). DOUBLE- Option: absent = no change; null = clear the pin (back to the default most-specific precedence); a value PINS the credential by id + kind. Validated to be visible to the workspace before persist (never trust the id for cross-workspace access).

object
id
required

The credential’s primary key (an 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

#838 (B1) — the workspace’s VISION-model override (mig 357). DOUBLE-Option: absent = no change; null (or a blank string) = clear back to the instance default; a value SETS the model id used to describe images and, when a project arm pins no judge model of its own, to judge visual verification. Shape-validated only (a single token, bounded length) — an unusable id degrades at RESOLVE time rather than being rejected here, because the catalog is a remote document and a write must not fail on an upstream outage. Workspace-admin only.

string | null
voice_config

#980 (mig 408) — the workspace voice-stack config ({"mode": "web-only" | "hybrid" | "local-only", "asr"?, "streaming_asr"?, "tts"?, "llm"?}). DOUBLE-Option: absent = no change; null = clear (the deployment default applies); a value REPLACES it. The service validates the closed mode/provider sets and canonicalizes the value, so an unknown provider is a 400. Workspace-admin only.

voice_transcript_retention_days

AUD-INT-027 / SCG-156 (ADR 0079 D6) — the voice TRANSCRIPT window in days (1..=3650). Absent = no change; null = back to the pinned 30-day default. A call keeps the window stamped when it opened. Workspace-admin only.

integer | null format: int32

Settings patched; the echo round-trips the persisted values

Media typeapplication/json

The 200 body of PATCH /api/workspaces/{id}/settings — the typed echo apply_settings_patch builds and returns. ok plus the request-echoed onboarding / quiet-hours fields are ALWAYS present (the quiet-hours pair echoes the request, so it is null when absent/cleared); every remaining block is Some(..) ONLY when the patch touched it and skip_serializing_if omits the key otherwise — so the wire shape carries exactly the fields the patch changed.

object
agent_commit_co_author
One of:

#1546 G1 — the agent-commit co-author tier after the write (only when touched).

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

#583 Item 2 / #582 — echoed Debug-light CEILING — present ONLY when the patch touched it.

boolean | null
artifact_comment_followup
One of:

#1527 S4 — the artifact comment follow-up tier after the write — present ONLY when the patch touched it.

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
One of:

#1527 external delivery — the pair after the write (only when touched).

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
autonomy_level

Persisted autonomy level (0..=100, clamped to the plan ceiling) — present ONLY when the patch touched the autonomy fields.

integer | null format: int32
autonomy_overrides

Persisted per-axis override vector — present ONLY when the patch touched the autonomy fields.

calibration_carrier_preference
One of:

#1227 - echoed carrier order - present ONLY when the patch touched it, carrying the canonical stored value.

string
Allowed values: subscription_first score
calibration_domains
closeout_config

#712 — echoed workspace-tier standard-closeout config — present ONLY when the patch touched it (round-trips the persisted/validated config).

default_max_subagents

#838 — echoed workspace-default subagent ceiling — present ONLY when the patch touched it. Some(Some(n)) = set; Some(None) = cleared.

integer | null format: int32
default_resource_class
One of:

#1176 — echoed workspace-default resource class — present ONLY when the patch touched it. Some(Some(class)) = the persisted (canonicalised) value; Some(None) = cleared. The echo carries what was actually STORED, so a client that sent " HEAVY " sees "heavy".

string
Allowed values: normal heavy
default_tool_approval_deny_minutes

#1175 — echoed workspace-default deny budget — present ONLY when the patch touched it. Some(Some(minutes)) = the persisted value; Some(None) = cleared. No canonicalisation is possible or needed: an integer has one spelling, and an out-of-range value never reaches here because the write refuses it with a 400 first.

integer | null format: int32
environment_scope_floor

#708 W8 — echoed environment-scope FLOOR — present ONLY when the patch touched it. Some(Some(scope)) = the mandated floor; Some(None) = cleared (no floor).

string | null
failure_notify
One of:

#838 — echoed workflow-failure alert target — present ONLY when the patch touched it. Some(Some(target)) = armed; Some(None) = disarmed.

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

#1397 (mig 404) — the per-harness agent config bag — present ONLY when the patch touched it. Some(Some(bag)) = the persisted (validated) bag; Some(None) = cleared (no per-harness overrides).

lane_tier_chains

SC-16 - echoed LANE chain override - present ONLY when the patch touched it. Some(Some(chains)) = the persisted (validated) override; Some(None) = cleared.

mcp_external_ops_hourly_limit

#977 — echoed external-MCP OPS aggregate override — present ONLY when the patch touched it. Some(Some(n)) = set; Some(None) = cleared.

integer | null format: int32
mcp_external_read_hourly_limit

#977 — echoed external-MCP READ window override — present ONLY when the patch touched it. Some(Some(n)) = set; Some(None) = cleared.

integer | null format: int32
memory_embedding
One of:

#1228 slice 2 — echoed memory-embedding config — present ONLY when the patch touched it: Some(Some(config)) = the stored (normalized) config, Some(None) = cleared back to full auto.

object
model
string | null
provider
string | null
memory_governance
One of:

ADR 0049 P3 / Tier-3 — echoed per-scope memory governance policy — present ONLY when the patch touched it (the panel always sends the full three-scope policy, so the echo round-trips the persisted/validated policy).

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

AUD-WIR-051 — echoed mailbox retention window — present ONLY when the patch touched it. Some(Some(days)) = the stored window; Some(None) = cleared back to the pinned default.

integer | null format: int32
model_fallback_chains

#926 — echoed quota-fallback chain override — present ONLY when the patch touched it. Some(Some(chains)) = the persisted (validated) override; Some(None) = cleared back to the built-in chains.

ok
required

Always true on a successful patch.

boolean
onboarding_mode

Echoed onboarding-safe flag (the request value; null when the field was absent from the request).

boolean | null
quiet_hours_end

Echoed quiet-window end (HH:MM, UTC); null when absent/cleared.

string | null
quiet_hours_start

Echoed quiet-window start (HH:MM, UTC); null when absent/cleared.

string | null
system_llm_credential
One of:

Echoed system-LLM credential pin ({id,kind}) or null when cleared — present ONLY when the patch touched the pin. DOUBLE-Option: the OUTER layer gates presence (absent ⇒ key omitted), the INNER carries Some(pin) (echoes {id,kind}) vs None (echoes null, i.e. the pin was cleared back to the default precedence). Mirrors the apply path’s three-state echo; utoipa flattens the nested Option into a single nullable SystemLlmCredentialPinEcho.

object
id
required

The pinned credential’s primary key.

string format: uuid
kind
required

The credential kind: api_key or oauth_token.

string
vision_model

#838 (B1) — echoed VISION-model override — present ONLY when the patch touched it. Some(Some(model)) = the persisted (normalized) id; Some(None) = cleared back to the instance default. The echo carries the NORMALIZED value, not the raw request, so a client that sent " gpt-5.6-luna " sees what was actually stored.

string | null
voice_config

#980 (mig 408) — the voice-stack config — present ONLY when the patch touched it. Some(Some(config)) = the persisted (canonicalized) config; Some(None) = cleared.

voice_transcript_retention_days

AUD-INT-027 — echoed voice transcript window — present ONLY when the patch touched it. Some(Some(days)) = the stored window; Some(None) = cleared back to the pinned default.

integer | null format: int32

Example

{
"artifact_external_delivery": {
"default": "review",
"max": "review"
},
"calibration_carrier_preference": "subscription_first",
"default_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"
}