Save them
Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication
/api/v1/tenants/{tid}/assistant/settingsSave them. Turning on needs the API key and the data-processing notice accepted (ASSISTANT_KEY_REQUIRED, ASSISTANT_NOTICE_REQUIRED). Audited as assistant.settings
Authentication: API key (Authorization: Bearer …) or session cookie __Host-panel_session.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tid | path | string | required | |
X-CSRF-Token | header | string | optional | Required on unsafe requests authenticated by session cookie; API keys do not use it. |
Request body
required
Content type: application/json
enabledboolean requiredmodelstring optionalAllowed values:"claude-opus-5-5""claude-sonnet-5-5""claude-haiku-5-5"api_keystring | null optionalLeft out: the saved key stays. Empty string: removed. Stored sealed, never shown again.
accept_noticeboolean optionalAccept the data-processing notice of notice_version (needed to turn it on)
monthly_tokensinteger requiredDefault monthly tokens per account; 0 is no limit
- minimum 0
tenant_budgetsmap<string, integer> optionalallow_resellersboolean requiredcustomersstring requiredAllowed values:"none""plans""all"allowed_plansarray<string> optionalallow_writesboolean requiredChanges the user confirms one by one
retention_daysinteger optional- minimum 0
- maximum 365
mcp_enabledboolean requiredmcp_allow_writesboolean required
Example
{
"enabled": true,
"model": "claude-opus-5-5",
"api_key": "string",
"accept_notice": true,
"monthly_tokens": 0,
"tenant_budgets": {
"key": 0
},
"allow_resellers": true,
"customers": "none",
"allowed_plans": [
"string"
],
"allow_writes": true,
"retention_days": 0,
"mcp_enabled": true,
"mcp_allow_writes": true
}Responses
200 Settings
Content type: application/json
enabledboolean requiredmodelstring requiredidstring requiredlabelstring requiredinput_per_mnumber requiredoutput_per_mnumber requiredcache_read_per_mnumber requiredcache_write_per_mnumber required
key_setboolean requiredkey_hintstring requiredLast 4 characters of the saved key
notice_versionstring requirednotice_acceptedboolean requirednotice_accepted_atstring (date-time) | null optionalmonthly_tokensinteger requiredtenant_budgetsmap<string, integer> requiredallow_resellersboolean requiredcustomersstring requiredAllowed values:"none""plans""all"allowed_plansarray<string> requiredallow_writesboolean requiredretention_daysinteger requiredmcp_enabledboolean requiredmcp_allow_writesboolean requiredmonthstring requiredusagearray<object> requiredtenant_idstring requiredtenant_namestring requiredtenant_idstring requiredmonthstring requiredYYYY-MM, UTC
requestsinteger requiredinput_tokensinteger requiredoutput_tokensinteger requiredcache_read_tokensinteger requiredcache_write_tokensinteger requiredcost_micro_usdinteger requiredEstimate from list prices, in millionths of a US dollar
tokensinteger requiredbudgetinteger required
Example
{
"enabled": true,
"model": "string",
"models": [
{
"id": "string",
"label": "string",
"input_per_m": 0,
"output_per_m": 0,
"cache_read_per_m": 0,
"cache_write_per_m": 0
}
],
"key_set": true,
"key_hint": "string",
"notice_version": "string",
"notice_accepted": true,
"notice_accepted_at": "2026-01-01T00:00:00Z",
"monthly_tokens": 0,
"tenant_budgets": {
"key": 0
},
"allow_resellers": true,
"customers": "none",
"allowed_plans": [
"string"
],
"allow_writes": true,
"retention_days": 0,
"mcp_enabled": true,
"mcp_allow_writes": true,
"month": "string",
"usage": [
{
"tenant_id": "string",
"tenant_name": "string",
"usage": {
"tenant_id": "string",
"month": "string",
"requests": 0,
"input_tokens": 0,
"output_tokens": 0,
"cache_read_tokens": 0,
"cache_write_tokens": 0,
"cost_micro_usd": 0
},
"tokens": 0,
"budget": 0
}
]
}default Error
Content type: application/json
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required