For the complete documentation index, see llms.txt. This page is also available as Markdown.

Settings

Get Settings

get

Return non-secret runtime settings for the admin dashboard.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Responses
200

Successful Response

application/json

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.

default_pricingbooleanRequired
master_key_sourcestring · enumRequired

Whether the dashboard master key is configured at startup or generated and stored by Otari.

Possible values:
model_discoverybooleanRequired
require_pricingbooleanRequired
secret_key_configuredbooleanRequired

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.

versionstringRequired
get/api/v1/settings
GET /api/v1/settings HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
200

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

Update Settings

patch

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.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Body

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).

budget_estimate_default_output_tokensinteger · nullableOptional
default_pricingboolean · nullableOptional
file_understanding_enabledboolean · nullableOptional
model_cache_ttl_secondsinteger · nullableOptional
model_discoveryboolean · nullableOptional
model_discovery_negative_ttl_secondsnumber · nullableOptional
model_discovery_timeout_secondsnumber · nullableOptional
models_dev_cache_ttl_secondsinteger · nullableOptional
models_dev_metadataboolean · nullableOptional
pricing_refreshstring · enum · nullableOptionalPossible values:
public_catalogboolean · nullableOptional
reject_user_mismatchboolean · nullableOptional
require_pricingboolean · nullableOptional
stream_missing_usage_policystring · enum · nullableOptionalPossible values:
vision_describe_max_tokensinteger · nullableOptional
vision_describe_modelstring · nullableOptional
vision_strategystring · enum · nullableOptionalPossible values:
Responses
200

Successful Response

application/json

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.

default_pricingbooleanRequired
master_key_sourcestring · enumRequired

Whether the dashboard master key is configured at startup or generated and stored by Otari.

Possible values:
model_discoverybooleanRequired
require_pricingbooleanRequired
secret_key_configuredbooleanRequired

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.

versionstringRequired
patch/api/v1/settings
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"
}

Get Country Database

get

Describe the stored country file, and say whether client_country_database is read instead.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Responses
200

Successful Response

application/json

The country file a request's address is looked up in.

client_country_database_setbooleanRequired

Whether client_country_database names a file. That file is read, and a stored one is not.

get/api/v1/settings/country-database
GET /api/v1/settings/country-database HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
200

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

Upload Country Database

put

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.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Body
filestringRequired

A MaxMind DB country file, such as GeoLite2 Country or DB-IP Lite Country.

Responses
200

Successful Response

application/json

The country file a request's address is looked up in.

client_country_database_setbooleanRequired

Whether client_country_database names a file. That file is read, and a stored one is not.

put/api/v1/settings/country-database
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"
  }
}

Delete Country Database

delete

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.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Responses
204

Successful Response

No content

delete/api/v1/settings/country-database
DELETE /api/v1/settings/country-database HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
204

Successful Response

No content

Get Mail Settings

get

Report the effective outgoing-mail configuration.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Responses
200

Successful Response

application/json

What this deployment can send, and what stands in the way if it cannot.

enabledbooleanRequired

Whether a transport is configured at all.

from_emailstring · nullableRequired

The 'From' address on outgoing mail, if one is configured.

from_namestringRequired

The 'From' display name on outgoing mail.

missingstring[]Required

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.

public_base_urlstring · nullableRequired

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.

readybooleanRequired

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.

transportstringRequired

The transport a send would use: 'smtp', 'console' (logged, not delivered), or 'none'.

get/api/v1/settings/mail
GET /api/v1/settings/mail HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
200

Successful Response

{
  "enabled": true,
  "from_email": "text",
  "from_name": "text",
  "missing": [
    "text"
  ],
  "public_base_url": "text",
  "ready": true,
  "transport": "text"
}

Send Test Mail

post

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.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Body

Where to send the test message.

tostring · email · max: 255Required

Recipient of the test message.

Responses
200

Successful Response

application/json

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.

okbooleanRequired
reasonstring · nullableOptional
transportstringRequired
post/api/v1/settings/mail/test
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"
}

Get Maintenance Mode

get

Report whether new dashboard sign-ins are frozen.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Responses
200

Successful Response

application/json

Whether this deployment is currently refusing new dashboard sign-ins.

enabledbooleanRequired

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
GET /api/v1/settings/maintenance-mode HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
200

Successful Response

{
  "enabled": true
}

Update Maintenance Mode

patch

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.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Body

Turn the sign-in freeze on or off.

enabledbooleanRequired

True to freeze new dashboard sign-ins, false to allow them again.

Responses
200

Successful Response

application/json

Whether this deployment is currently refusing new dashboard sign-ins.

enabledbooleanRequired

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.

patch/api/v1/settings/maintenance-mode
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
}

Rotate Master Key

post

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.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Responses
200

Successful Response

application/json

A newly generated dashboard master key, returned once.

master_keystringRequired

The new plaintext master key. Store it now; it is never returned again.

post/api/v1/settings/master-key/rotate
POST /api/v1/settings/master-key/rotate HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
200

Successful Response

{
  "master_key": "text"
}

Last updated

Was this helpful?