Settings
Return non-secret runtime settings for the admin dashboard.
Enter your API key here (sent as Otari-Key header).
Successful Response
Operator-facing runtime settings surfaced to the dashboard.
The top-level flags are kept for the callers that read them directly
(pricing warnings, the models/providers pages); config is the full
read-only view with the settable/startup-only marking.
Whether the dashboard master key is configured at startup or generated and stored by Otari.
Whether OTARI_SECRET_KEY is set on the server. Provider credentials are encrypted at rest with it, so a deployment without it can store none. The dashboard reads the same fact from the membership context's provider_key_encryption_available, because this endpoint is operator-only and the provider-key pages are read by tenants.
GET /api/v1/settings HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
Successful Response
{
"config": [
{
"description": "text",
"exclusive_minimum": 1,
"group": "text",
"key": "text",
"minimum": 1,
"options": [
"text"
],
"settable": true,
"type": "bool",
"value": true
}
],
"default_pricing": true,
"master_key_source": "configured",
"model_discovery": true,
"require_pricing": true,
"secret_key_configured": true,
"version": "text"
}Persist and apply runtime setting changes.
Each provided field is stored as an override (winning over config/env) and applied to the running gateway immediately. Operator-gated: these change how the gateway meters and lists models.
Enter your API key here (sent as Otari-Key header).
Change one or more runtime settings. Omitted fields are left unchanged.
Only the hot-changeable subset is accepted; startup-only fields are not settable over the API (they are display-only in the dashboard).
Successful Response
Operator-facing runtime settings surfaced to the dashboard.
The top-level flags are kept for the callers that read them directly
(pricing warnings, the models/providers pages); config is the full
read-only view with the settable/startup-only marking.
Whether the dashboard master key is configured at startup or generated and stored by Otari.
Whether OTARI_SECRET_KEY is set on the server. Provider credentials are encrypted at rest with it, so a deployment without it can store none. The dashboard reads the same fact from the membership context's provider_key_encryption_available, because this endpoint is operator-only and the provider-key pages are read by tenants.
Validation Error
PATCH /api/v1/settings HTTP/1.1
Otari-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 520
{
"budget_estimate_default_output_tokens": 1,
"default_pricing": true,
"file_understanding_enabled": true,
"model_cache_ttl_seconds": 1,
"model_discovery": true,
"model_discovery_negative_ttl_seconds": 1,
"model_discovery_timeout_seconds": 1,
"models_dev_cache_ttl_seconds": 1,
"models_dev_metadata": true,
"pricing_refresh": "manual",
"public_catalog": true,
"reject_user_mismatch": true,
"require_pricing": true,
"stream_missing_usage_policy": "estimate",
"vision_describe_max_tokens": 1,
"vision_describe_model": "text",
"vision_strategy": "describe"
}{
"config": [
{
"description": "text",
"exclusive_minimum": 1,
"group": "text",
"key": "text",
"minimum": 1,
"options": [
"text"
],
"settable": true,
"type": "bool",
"value": true
}
],
"default_pricing": true,
"master_key_source": "configured",
"model_discovery": true,
"require_pricing": true,
"secret_key_configured": true,
"version": "text"
}Describe the stored country file, and say whether client_country_database is read instead.
Enter your API key here (sent as Otari-Key header).
Successful Response
The country file a request's address is looked up in.
Whether client_country_database names a file. That file is read, and a stored one is not.
GET /api/v1/settings/country-database HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
Successful Response
{
"client_country_database_set": true,
"stored": {
"built_at": "2026-01-01T00:00:00.000Z",
"database_type": "text",
"sha256": "text",
"size_bytes": 1,
"uploaded_at": "2026-01-01T00:00:00.000Z"
}
}Store a country file in place of the one stored before.
A file larger than 32 MiB answers 413, and one that is no MaxMind DB country file answers 400. Either way the file stored before stays. While client_country_database is set, the stored file is kept but not read.
Enter your API key here (sent as Otari-Key header).
A MaxMind DB country file, such as GeoLite2 Country or DB-IP Lite Country.
Successful Response
The country file a request's address is looked up in.
Whether client_country_database names a file. That file is read, and a stored one is not.
The file is larger than 32 MiB.
The body holds no file in the field file.
PUT /api/v1/settings/country-database HTTP/1.1
Otari-Key: YOUR_API_KEY
Content-Type: multipart/form-data
Accept: */*
Content-Length: 15
{
"file": "text"
}{
"client_country_database_set": true,
"stored": {
"built_at": "2026-01-01T00:00:00.000Z",
"database_type": "text",
"sha256": "text",
"size_bytes": 1,
"uploaded_at": "2026-01-01T00:00:00.000Z"
}
}Remove the stored country file.
Answers 404 when none is stored, and 409 when it is the only country source for provider_supported_countries or for the supported countries of an enabled hosted provider.
Enter your API key here (sent as Otari-Key header).
Successful Response
No content
DELETE /api/v1/settings/country-database HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
Successful Response
No content
Report the effective outgoing-mail configuration.
Enter your API key here (sent as Otari-Key header).
Successful Response
What this deployment can send, and what stands in the way if it cannot.
Whether a transport is configured at all.
The 'From' address on outgoing mail, if one is configured.
The 'From' display name on outgoing mail.
Settings that must be set before mail works, in config order. Empty exactly when 'ready' is true, so the dashboard can name what to configure rather than only reporting that mail is off.
This deployment's own externally-reachable URL, which mail needs before it can send. The links themselves are built from ui_base_url, or from this when that is unset.
Whether a message carrying a link back to this deployment can be sent, which is what every message the control plane sends needs. Matches 'mail_ready' on /api/v1/bootstrap.
The transport a send would use: 'smtp', 'console' (logged, not delivered), or 'none'.
GET /api/v1/settings/mail HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
Successful Response
{
"enabled": true,
"from_email": "text",
"from_name": "text",
"missing": [
"text"
],
"public_base_url": "text",
"ready": true,
"transport": "text"
}Send one templated test message to prove the configuration works.
Refuses with 503 when the deployment cannot send a linked message, naming the missing settings; the dashboard disables the control in that state, so reaching this is a direct API call or a race with a configuration change.
The recipient is the only caller-supplied value: the body is a fixed template, so this cannot be used to put chosen text in someone's inbox from the deployment's own address, and the message says outright that no account was created for whoever receives it.
Enter your API key here (sent as Otari-Key header).
Where to send the test message.
Recipient of the test message.
Successful Response
The outcome of one test send.
reason carries the transport's own error text, which is the whole value
of a test button (an operator needs to know it was a refused login rather
than a wrong port). Safe here and only here: this endpoint is master-key
gated, unlike the public error paths that must not leak internals.
Validation Error
POST /api/v1/settings/mail/test HTTP/1.1
Otari-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 23
{
"to": "name@gmail.com"
}{
"ok": true,
"reason": "text",
"transport": "text"
}Report whether new dashboard sign-ins are frozen.
Enter your API key here (sent as Otari-Key header).
Successful Response
Whether this deployment is currently refusing new dashboard sign-ins.
When true, POST /api/v1/auth/session refuses every credential with 503 so nobody starts a new dashboard session during a redeploy. Sessions already issued keep working, and the management API and the data plane are unaffected: a caller presenting the master key or an API key through the header is never frozen out.
GET /api/v1/settings/maintenance-mode HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
Successful Response
{
"enabled": true
}Freeze or unfreeze dashboard sign-ins, for this and every other replica.
The new state is persisted and nothing is applied to the running worker, because every reader goes back to the stored row. That is what makes one call enough for a deployment running more than one of them.
Enter your API key here (sent as Otari-Key header).
Turn the sign-in freeze on or off.
True to freeze new dashboard sign-ins, false to allow them again.
Successful Response
Whether this deployment is currently refusing new dashboard sign-ins.
When true, POST /api/v1/auth/session refuses every credential with 503 so nobody starts a new dashboard session during a redeploy. Sessions already issued keep working, and the management API and the data plane are unaffected: a caller presenting the master key or an API key through the header is never frozen out.
Validation Error
PATCH /api/v1/settings/maintenance-mode HTTP/1.1
Otari-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 16
{
"enabled": true
}{
"enabled": true
}Regenerate the database-backed master key and invalidate the old one.
Only the first-run generated master key can be rotated here. When a master key is supplied through config or OTARI_MASTER_KEY, the dashboard cannot invalidate it; the operator must change that value and restart instead.
Every dashboard session is revoked with the rotation (a session only proves possession of the now-dead key); the caller's own session is re-minted under the new key, for the same identity it named, so the tab that performed the rotation stays signed in as who it was. A caller that authenticated with a header key has no session identity to re-mint for, so it is not handed one: it was not signed in to the dashboard to begin with.
Enter your API key here (sent as Otari-Key header).
Successful Response
A newly generated dashboard master key, returned once.
The new plaintext master key. Store it now; it is never returned again.
POST /api/v1/settings/master-key/rotate HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
Successful Response
{
"master_key": "text"
}Last updated
Was this helpful?
