Skip to content

Org Settings

Get Model Config

Return the org’s model policy (allowlists + defaults) per scope.

Readable by any org member — it drives client-side model-picker filtering and default selection. The real enforcement is server-side (agent CRUD + chat send), so this endpoint carries no secrets and no budget data.

Requires membership.

Parameters

NameInTypeRequiredDescription
org_idpathstring (uuid)yes

Responses

StatusDescriptionBody
200Successful ResponseModelConfigResponse
422Validation ErrorHTTPValidationError

Get Ai Settings

Get AI provider settings for the organization (secrets redacted).

Requires ADMIN or OWNER role.

Parameters

NameInTypeRequiredDescription
org_idpathstring (uuid)yes

Responses

StatusDescriptionBody
200Successful ResponseAIProviderSettingsResponse
422Validation ErrorHTTPValidationError

Update Ai Settings

Update AI provider settings for the organization.

Requires ADMIN or OWNER role. Only fields present in the request body are updated; omitted fields are left unchanged.

Parameters

NameInTypeRequiredDescription
org_idpathstring (uuid)yes

Request body (required)

FieldTypeRequiredDescription
ai_gateway_account_idstringno
ai_gateway_gateway_idstringno
ai_gateway_log_payloadsstringno
ai_gateway_mode"" | "custom" | "off"no
ai_gateway_tokenstringno
anthropic_api_keystringno
anthropic_base_urlstringno
anthropic_credential_source"" | "api_key" | "cloudflare"no
anthropic_enabled"" | "true" | "false"no
openai_api_keystringno
openai_base_urlstringno
openai_credential_source"" | "api_key" | "cloudflare"no
openai_enabled"" | "true" | "false"no

Responses

StatusDescriptionBody
200Successful ResponseAIProviderSettingsResponse
422Validation ErrorHTTPValidationError

Get Org Limits

Get model governance (two allowlists + defaults) and budget for the org.

Requires ADMIN or OWNER role.

Parameters

NameInTypeRequiredDescription
org_idpathstring (uuid)yes

Responses

StatusDescriptionBody
200Successful ResponseOrgLimitsResponse
422Validation ErrorHTTPValidationError

Update Org Limits

Update the org’s two model allowlists, default models, and/or budget.

Only fields present in the request body are updated; omitted fields are left unchanged. For default-model fields, an explicit null clears the default.

Invariant: when a scope’s allowlist is non-empty, its default model must be set and within the allowlist (422 otherwise). Response affected_agents lists agents left outside the (new) agent allowlist — they downgrade to the agent default at run time.

Requires ADMIN or OWNER role.

Parameters

NameInTypeRequiredDescription
org_idpathstring (uuid)yes

Request body (required)

FieldTypeRequiredDescription
agent_default_modelDefaultModelno
agent_model_allowliststring[]no
budget_limit_usdstringno
chat_default_modelDefaultModelno
chat_model_allowliststring[]no
process_default_modelDefaultModelno
prompt_model_allowliststring[]no
tool_router_default_modelToolRouterDefaultModelno

Responses

StatusDescriptionBody
200Successful ResponseOrgLimitsResponse
422Validation ErrorHTTPValidationError

GET /api/orgs/{org_id}/settings/limits/usage

Section titled “GET /api/orgs/{org_id}/settings/limits/usage”

Get Org Limits Usage

Get the org’s current spend vs. its configured budget cap.

Returns two spend figures (M11 — see OrgLimitsUsageResponse): the chat-attributed total the budget cap enforces against (spend_usd) and the fuller metered total including chat-less LLM calls (metered_spend_usd), so the two no longer read as unlabelled disagreeing numbers. Useful for the admin limits panel.

Requires ADMIN or OWNER role.

Parameters

NameInTypeRequiredDescription
org_idpathstring (uuid)yes

Responses

StatusDescriptionBody
200Successful ResponseOrgLimitsUsageResponse
422Validation ErrorHTTPValidationError

Get Runtime Settings

Get the org’s AI runtime overrides (compaction + model thinking).

A null field means the org inherits; platform_defaults says what that inheritance currently resolves to.

Requires ADMIN or OWNER role.

Parameters

NameInTypeRequiredDescription
org_idpathstring (uuid)yes

Responses

StatusDescriptionBody
200Successful ResponseOrgRuntimeSettingsResponse
422Validation ErrorHTTPValidationError

Update Runtime Settings

Set (or clear) the org’s AI runtime overrides.

Omitted fields are left unchanged; an explicit null drops the override so the setting falls back to the platform tier. Values are re-read at the start of every run, so a change here lands on the next turn.

Requires ADMIN or OWNER role.

Parameters

NameInTypeRequiredDescription
org_idpathstring (uuid)yes

Request body (required)

FieldTypeRequiredDescription
compaction_enabledbooleanno
compaction_thresholdnumberno
thinking_enabledbooleanno

Responses

StatusDescriptionBody
200Successful ResponseOrgRuntimeSettingsResponse
422Validation ErrorHTTPValidationError