Skip to content

Global settings API

Deployment-wide runtime knobs are stored in a database-backed, admin-editable settings table. A write here takes effect with no service interruption: it invalidates the cached configuration for all workers of the server node that served the write, so the very next read there sees the new value. Other server nodes and sites re-read the database every ~5 s, so they follow within about 5 s while the database is reachable; during a database outage a node keeps serving its last-read values for up to 60 s.

This is a global (not tenant-scoped) key/value store. Only a fixed, code-declared allowlist of keys can be set — this is not a free-form configuration blob; an unrecognised key is rejected. Each key validates its own shape:

Key Meaning Bounds
workflow_run_retention_days GDPR Art.5(1)(e) storage-limitation ceiling for workflow_run operational content (run state + trigger input). Terminal runs older than this window are deleted on the next retention sweep. Integer, 1–3650
preauth_reject_limit How many rejected authentication attempts (unknown workspace, missing/invalid/expired/revoked token) one client address may make on /v1 within the window before further requests from that address answer 429 auth_rate_limited with Retry-After. Absent → 300. A stored value that is not a number falls back to 300; a number outside the range is clamped to the nearest bound. The admin API rejects out-of-range values. Many clients behind one shared NAT or egress address share one counter, so one of them repeatedly failing (for example a script looping on a revoked or expired token) can briefly block the others' valid requests for up to one window; raise preauth_reject_limit if that network is legitimately noisy. See Error codes. Integer, 10–100000
preauth_reject_window_s The window, in seconds, over which preauth_reject_limit is counted and for how long the block lasts. Absent → 60. A stored value that is not a number falls back to 60; a number outside the range is clamped to the nearest bound. The admin API rejects out-of-range values. Integer, 10–3600
self_serve_purge_days How many days after a self-serve tenant's subscription ends before the retention reaper warns (T-14d, T-1d) and hard-purges the tenant. Read on every hourly sweep, so a change applies on the next tick. Replaces the retired AIG_SELF_SERVE_PURGE_DAYS environment variable. Integer, 15–3650 (default 90 while no row exists)
consent_retention_days How many days after a tenant is erased its AVV consent evidence is kept before it is deleted. Read on every hourly sweep. 0 means the evidence is deleted on the next sweep. Replaces the retired AIG_CONSENT_RETENTION_DAYS environment variable. Integer, 0–4018 (default 1095 while no row exists)
trial_per_domain_daily How many free-trial sign-ups one email domain may start per rolling 24 h (see No-card free trial). A request over the ceiling is refused 429. Default (absent row) is 1000. This is a blunt floor against scripted mass-signup on a single obscure domain — it is not the primary anti-abuse control, because an attacker can rotate domains freely: the per-IP ceiling (5 new trials / 24 h, not configurable; an IPv6 client counts per /64, like the request rate limits), the one-trial-per-canonicalized-email dedup, and the disposable-domain blocklist are what actually bound abuse. Because a popular free-mail domain (e.g. gmail.com) accumulates legitimate sign-ups fast, set this generously; a value low enough to bite a real domain blocks every genuine sign-up from it for the rest of the window. Takes effect on the next read on the node that served the write and within about 5 s on other nodes (settings cache). A malformed stored value falls back safe to the 1000 default — never to "unlimited" and never to zero. Integer, 1–1000000. Rejected → 400: a non-integer, NaN/±inf, or a value outside the range. The floor is 1, not 0, on purpose: a 0 ceiling would refuse every trial sign-up platform-wide, turning a tuning knob into an undocumented kill switch.
sso_flood_cap_per_min How many requests per 60 s one client IP (IPv6: /64) may make to each SSO start and ACS route of one tenant before further requests answer 302 /login?error=sso_rate_limited. This is the flood cap only; the SSO refusal lockout (500 refusals, 30 minutes) is fixed. Absent or empty → 1000. A stored value that is malformed or outside the range falls back safe to 1000 (never to zero or unlimited) and logs a throttled warning. Takes effect on the next read on the node that served the write and within about 5 s on other nodes (settings cache); each gateway node counts separately, so N nodes admit up to N times the cap. The admin API rejects out-of-range values. Integer, 500-100000
support_email Recipient for in-app Contact Support requests. A single email address, local@domain.tld, at most 254 bytes. Surrounding whitespace is trimmed. Rejected: an empty or non-string value, anything containing whitespace or a control character (C0, DEL, or a C1 control U+0080–U+009F), invalid UTF-8 (a stray continuation byte, an overlong or surrogate encoding, a truncated sequence, a code point above U+10FFFF), more than one address, a display name, and a domain with no dot or with a leading/trailing/double dot.
contact_email Recipient for the in-app Contact us enquiry form (upgrade / enterprise / general contact) — a distinct mailbox from support_email (sales vs support). Never sent to the browser. Falls back to the built-in default mail@myrasecurity.com when unset. Same shape and validator as support_email (a single valid local@domain.tld, ≤ 254 bytes; whitespace trimmed; multiple addresses / display names / control characters incl. C1 U+0080–U+009F / invalid UTF-8 / a dot-less or malformed domain rejected).
paid_signup_enabled Whether the direct paid-signup tier grid is offered platform-wide (see Self-serve sign-up). When on, new customers can pick a paid plan during signup and POST /admin/auth/signup/checkout is reachable; when off (the default) they start on the free trial and that route is refused 404. The same toggle also gates the signed-in in-app upgrade flow: when off, every upgrade CTA routes to the Billing & Payments contact form and the price calculator is hidden — no Stripe call is made from an upgrade CTA; when on, the in-app paid upgrade flow (calculator → checkout) is shown. The trial-to-paid conversion (POST /admin/v1/billing/checkout) itself is unaffected either way. A JSON boolean — true or false. Rejected: anything that is not a boolean, including the strings "true"/"false", a number (1/0), null, an object, or an absent value → 400 (never coerced). An absent row reads as false (off).
plan_model_copy_enabled Kill switch for the plan-aware model taglines in the model picker (see Tagline resolution). Ships off (an absent or false value). When set to true, GET /admin/v1/models shows a self-serve workspace short lines written for the models of its plan (tagline_source: "plan_copy"); when false, the generated copy is skipped entirely and every row shows its catalog tagline or the display name only — today's behaviour. Takes effect on the next read on the node that served the write and within about 5 s on other nodes (settings cache). Set it with PUT /admin/v1/settings/plan_model_copy_enabled (no console toggle in v1). A JSON boolean — true or false. Rejected: anything that is not a boolean, including the strings "true"/"false", a number, null, an object, or an absent value → 400 (never coerced). An absent row reads as false (off) — this is a display feature, not an access control.
plan_change_enabled Kill switch for the staged rollout of the self-serve plan change (POST /admin/v1/billing/change/preview and POST /admin/v1/billing/change, see Plan change (staged rollout)). Ships off. While off, those routes answer 404. Also surfaced as plan_change_enabled on GET /admin/auth/me for the caller's workspace, but only when the caller may buy (owner or BILLING_PURCHASE holder). Takes effect on the next read on the node that served the write and within about 5 s on other nodes (settings cache). A JSON boolean — true or false. Rejected: anything that is not a boolean, including the strings "true"/"false", a number, null, an object, or an absent value → 400 (never coerced). An absent or malformed stored value reads as false (off).
plan_change_tenant_allowlist Which workspaces may use the plan change while plan_change_enabled is true. A workspace is allowed only when the flag is on and its tenant id is listed (or the list is exactly ["*"], everyone). [] (the default) allows nobody. Ids are stored lower-case. Takes effect on the next read on the node that served the write and within about 5 s on other nodes (settings cache). A JSON array of at most 500 canonical UUID strings, or exactly ["*"]. Rejected → 400: a non-array, a non-UUID entry, a non-string entry, "*" mixed with other entries, more than 500 distinct entries (duplicates collapse first), or an absent value. An absent or malformed stored value reads as [] (nobody) — the gate fails closed.
stripe_webhook_self_repair_envs Which environments may repair their own Stripe webhook endpoint. The hourly subscription check adds the handled events the endpoint lacks (never removing one) when this environment's name is listed; otherwise it only alerts. Default ["int","beta"] on every environment; production stays off until "prod" is added. Takes effect on the next read on the node that served the write and within about 5 s on other nodes (settings cache). A JSON array of at most 3 distinct environment names from dev, int, beta, prod. Rejected → 400: a non-array, an unknown or non-string entry, more than 3 entries, or an absent value. [] switches repair off everywhere. An absent, malformed or unreadable stored value reads as off — the gate fails closed.
password_mfa_enabled Part of the PCI-DSS sign-in rollout (MAP-3868). Today it decides whether GET /admin/v1/me/security answers for a person (when the routes are live) and whether a session without password plus a second factor is still renewed (MAP-4084); sign-in itself does not read it until the sign-in leaves ship. Kill switch for the staged rollout of the PCI password + MFA sign-in contract. Seeded false by migration 0911. A workspace is covered only when this is true and it passes password_mfa_tenant_allowlist. Takes effect on the next read on the node that served the write and within about 5 s on other nodes (settings cache). JSON boolean (true / false). Anything else → 400. A missing stored value reads as false (off). A malformed one answers 503 on the sign-in routes (see authentication). Operator note: it is read on every renewal of a session without password plus a second factor that is not an external or demo sign-in, so a malformed or unreadable value stops those renewals (503, sessions keep working until they expire) until it is fixed.
password_mfa_tenant_allowlist Part of the PCI-DSS sign-in rollout (MAP-3868). Today it decides whether GET /admin/v1/me/security answers for a person (when the routes are live) and whether a session without password plus a second factor is still renewed (MAP-4084); sign-in itself does not read it until the sign-in leaves ship. Which workspaces are covered by the PCI sign-in contract while password_mfa_enabled is true. Allowed only when the flag is on and the tenant id is listed (or the list is exactly ["*"], everyone). [] (the default, seeded by migration 0911) allows nobody. Ids are stored lower-case. A JSON array of at most 500 canonical UUID strings, or exactly ["*"]. Rejected → 400: a non-array, a non-UUID entry, a non-string entry, "*" mixed with other entries, more than 500 distinct entries (duplicates collapse first), or an absent value. An absent stored value reads as [] (nobody). A malformed one answers 503 on the sign-in routes while password_mfa_enabled is on (see authentication). Operator note: while password_mfa_enabled is on it is read on the same renewals, so a malformed value stops them (503) until it is fixed.
admin_mfa_enforced Part of the PCI-DSS sign-in rollout (MAP-3868). Today it decides whether GET /admin/v1/me/security answers for a person (when the routes are live), and whether a sys:admin holder's session without password plus a second factor is still renewed or may start an impersonation (MAP-4084), and whether a sys:admin holder may sign in with Google, Microsoft, the app redeem, OIDC or SAML (refused with admin_mfa_required, MAP-4083). Platform-wide switch that will make MFA mandatory for admin sign-in. Seeded false by migration 0911; independent of password_mfa_enabled. JSON boolean. Anything else → 400. A missing stored value reads as false (off). A malformed one answers 503 on the sign-in routes (see authentication). Operator note: it is read on every session renewal that lacks password plus a second factor and on every impersonation start without one, so a malformed or unreadable value stops those renewals (503, sessions keep working until they expire) and those starts until it is fixed. It is also read on every Google, Microsoft, OIDC and SAML sign-in of an existing account, so a malformed or unreadable value stops all of those sign-ins, for every person, until it is fixed (fault answers).
avv_current_version The server-pinned current AVV (Art. 28 data-processing agreement) version registrants must accept (replaces a retired deployment setting). Read per request by the signup flow: when set (or defaulted), POST /admin/auth/signup/request requires avv_accepted: true and snapshots this server value onto the intent → consent_record. Default (absent/empty row) is 2026-08-21 ⇒ AVV acceptance is ACTIVE. A malformed stored value read back from the DB falls back safe to the code default (never dormant) and logs. Clearing the key cannot disable acceptance — it restores the active default. There is no switch for it in the web app: set it here. A string version token: 1–32 characters of letters, digits, ., -, _ or : (e.g. 2026-08-21). Surrounding whitespace is trimmed. Rejected → 400: a non-string, empty/whitespace-only, over 32 bytes, or any other character (space, /, !, control bytes, CR/LF).
terms_current_version The server-pinned current Terms/AGB version registrants accept. Read per request by both sign-up funnels and the OAuth sign-up, served to the sign-up page by /signup/legal as terms_version, and snapshotted onto signup_intent.consent_terms_version — the client's submitted consent_terms_version is only the acceptance signal and is never stored, so a stale/forged client cannot pin an arbitrary version onto the legal record. Default (absent/empty row) is 2026-08-10. A malformed stored value read back from the DB falls back safe to the code default and logs. Same validator as avv_current_version. There is no switch for it in the web app: set it here. A string version token: 1–32 characters of letters, digits, ., -, _ or : (e.g. 2026-08-10). Surrounding whitespace is trimmed. Rejected → 400: a non-string, empty/whitespace-only, over 32 bytes, or any other character (space, /, !, control bytes, CR/LF).
wallet_enabled The platform-wide on/off switch for the wallet. The sole gate: the wallet is offered as soon as this is true — the balance cap has been retired and the top-up amounts are configured on the product catalog's wallet_topup row, so no companion keys are required. Changing it also drops the rendered public/tenant catalog feed bodies (the feed advertises top-ups only while the wallet is on; other server nodes follow within 60 s, browsers within their 60 s cache). Default (absent) is off. Set it from the platform admin Feature Flags screen (Organisations) or here directly. Available in every environment since per-call wallet holds shipped (each model call reserves its share of the balance before it is sent — see Budgets — Wallet). A JSON boolean — true or false. Rejected: anything that is not a boolean, including the strings "true"/"false", a number (1/0), null, an object, or an absent value → 400 (never coerced). An absent row reads as false (off).
self_serve_checkout_monthly_max_minor The self-serve limit: the most a self-serve checkout (sign-up and the trial conversion) may reach per month, in EUR cents (self-serve sells EUR prices only — a plan or add-on price in another currency is not sold online, see Which price is charged). What counts is the purchase's monthly net: (seat price + EU-governed add-on price) × seats; an annual price counts as a twelfth (rounded down); a wallet top-up never counts. Above it the checkout is refused 409 above_self_serve_limit and the price calculator offers Discuss requirements instead of payment (the sign-up page: "please contact us"). Reactivation is exempt. Default (absent row) is 200000 (2 000.00). The value is published to the sign-up and workspace catalog feeds as checkout_monthly_max_minor, so a write also drops the rendered feed bodies (other server nodes follow within 60 s, browsers within their 60 s cache). A stored value that cannot be read, or that is not an integer in the range (only possible by a direct database edit), is never replaced by the default: checkout fails closed with 503 checkout_unavailable and logs an error, and the feeds publish null. Integer, 1–99999999. Rejected → 400: a non-integer, NaN/±inf, or a value outside the range.
wallet_autotopup_tax Attaches a Stripe Tax calculation to every automatic wallet top-up (an off-session charge; manual top-ups are taxed by Checkout already), so Stripe records the tax transaction and reverses it on refunds — see Billing — Wallet. Default (absent) is off. Switch it on only once every server runs the release that supports it, and off before any rollback (internal billing runbook). A JSON boolean — same rules as wallet_enabled.
reactivation_emails_enabled The platform-wide on/off switch for the member-reactivation e-mails. Off means no reactivation mail is sent anywhere, whatever the tenants' own settings — this is the incident brake. The feature shipped dark (an absent row reads as off); migration 0337 set it to true in every deployment on 2026-09-29, so it is on unless a platform admin turned it off. On means the sweep runs for every tenant whose tri-state resolves to on. Set it from the platform admin Feature Flags screen (Organisations) or here directly. A JSON boolean — true or false. Rejected: anything that is not a boolean, including the strings "true"/"false", a number (1/0), null, an object, or an absent value → 400 (never coerced). An absent row reads as false (off).
wallet_low_alert_enabled The platform-wide on/off switch for the operator low-balance notice for Enterprise wallets. Switching it off stops new notices within one check (about 5 minutes; a notice already detected may still be sent in that window) and discards any notice not yet sent. Switch it on only once every gateway node runs a release that includes the notice. It defaults to off (an absent row reads as off), so a new environment — including a copy of production data — never starts notifying operators on its own; production switches it on deliberately. If the setting cannot be read, the check of that moment does nothing. A JSON boolean — true or false. Rejected: anything that is not a boolean, including the strings "true"/"false", a number (1/0), null, an object, or an absent value → 400 (never coerced). An absent row reads as false (off).
signup_country_header_trusted Whether the X-Myra-Client-Country header is trusted as the signup country (tenant.signup_country, the region breakdown of GET /stats/growth; see Signup campaign source). The Myra CDN sets that header on the admin-API host from its GeoIP lookup and replaces any client-sent one — but on a request that does not pass the CDN rule it is client-forgeable, so the gateway ignores it entirely while this is off. Turn it on per environment only after verifying that the CDN sets the header there (a header sent by the client must not reach the gateway unchanged). Even when on, the value is a statistic only — it authorizes nothing. A JSON boolean — true or false. Rejected: anything that is not a boolean, including the strings "true"/"false", a number (1/0), null, an object, or an absent value → 400 (never coerced). An absent row reads as false (off).
signup_reminder_enabled The platform-wide on/off switch for the signup-abandonment reminder. Off means no reminder is sent anywhere. The feature shipped dark (an absent row reads as off); migration 0354 set it to true after the DPO/legal sign-off, so it is on wherever this release is deployed (integration already; production when the release lands) unless a platform admin turned it off. There is no switch for it in the web app: set it here. A JSON boolean — true or false. Rejected: anything that is not a boolean, including the strings "true"/"false", a number (1/0), null, an object, or an absent value → 400 (never coerced). An absent row reads as false (off).
signup_reminder_daily_cap The platform-wide ceiling on signup-abandonment reminder e-mails per Berlin calendar day (the per-tick cap of the sweep is 20). A JSON integer between 1 and 1000. Default (absent) is 100. Rejected → 400: a non-integer or a value outside the range.
reactivation_sender_name The human sender display name of every member-reactivation e-mail — e.g. Anna von Myra AI. The sending address never changes (the platform's no-reply mailbox); replies reach the support mailbox through Reply-To = support_email. Unset → the tenant's own product name (white-label safe). Platform-wide: a white-label tenant's members see this name too. A string of 1–64 bytes after trimming, valid UTF-8, no control characters and none of < > " \ @ or =? — the from-spoofing shapes. Rejected → 400, nothing stored (never coerced): anything else, a non-string, over 64 bytes. Exception to the empty-value rule of every other key: "" (or whitespace only) is the explicit clear — it is stored and read as "unset", so the product name applies again; there is no other way to un-freeze a name, since keys cannot be deleted.
reactivation_daily_cap The maximum number of reactivation e-mails per tenant per Berlin calendar day. The sweep additionally sends at most 20 mails per run per gateway node (three runs fall inside a send window), so the practical ceiling is about 60 a day per node regardless of this value; this per-tenant cap is re-checked in the database before every send, so it holds across nodes. Absent → 50. Integer, 1–1000.
oauth_login_enabled The platform-wide on/off switch for Google & Microsoft quick sign-in / registration. One of two gates: a provider's button appears, and its OAuth endpoints answer, only while this is true and that provider's OAuth credentials are provisioned. Default (absent) is off, so the feature ships dark — turning it on is a deliberate go-live act, done alongside provisioning the credentials. Set it from the platform admin Feature Flags screen (Organisations) or here directly. A JSON boolean — true or false. Rejected: anything that is not a boolean, including the strings "true"/"false", a number (1/0), null, an object, or an absent value → 400 (never coerced). An absent row reads as false (off).
oauth_app_scheme_return Whether the native iOS app on iPhones below iOS 17.4 may receive its native-app sign-in handoff code over the custom scheme myraai:// (iOS 17.4+ uses an https callback; Android an explicit-package intent). Those iOS versions cannot catch an https callback, and a malicious app that registers myraai:// on such a device could intercept a code in an attacker-started flow — a risk accepted for exactly those devices. Seeded true by a migration; set false to switch the channel off — the app then hides the Google/Microsoft buttons on those devices and their users sign in with the e-mail code. The server only ever uses the scheme for an iPhone Safari user agent below 17.4. A JSON boolean. Rejected: any non-boolean (incl. "true", 1, null) → 400. An absent or malformed stored value reads as false (off — fails closed).
claim_check_shadow_enabled The platform-wide switch for the whole file-claim check on Workspace turns (details): a pre-filter on every streamed Workspace answer and, on a hit, a self-hosted judge whose verdict is written to the request log's metadata. On by default (an absent row reads as on); false switches the check — and with it the actions below — off. Any other stored value, or settings that cannot be read, also reads as off. A JSON boolean — true or false. Rejected: anything that is not a boolean, including the strings "true"/"false", a number (1/0), null, an object, or an absent value → 400 (never coerced).
claim_check_image_actions_enabled The image arm of the claim check (details): when a Workspace answer says an image was generated, edited or is shown although the turn produced none, and the user asked for an image, one automatic re-dial with only generate_image. A reply that is plainly a phantom (a fabricated image link such as ![](https://…)) is not re-dialled: an honest note in the user's language (German, Danish or English) is appended after it. The false reassurance "added directly to the image above" / "generated in the chat" only selects the turn for the image judge: one re-dial if the judge confirms the claim, otherwise nothing (it fails closed, also when the judge is unavailable); see the image claim check. Nothing is generated by the check. On by default (an absent row reads as on); false switches the image arm off. Independent of claim_check_shadow_enabled and claim_check_actions_enabled. Any other stored value, or settings that cannot be read, also reads as off. A JSON boolean — true or false; the same rejections as claim_check_shadow_enabled → 400.
claim_check_actions_enabled What the file-claim check does with its verdict (details): when an answer says a file was created or changed in its turn and none was, one automatic re-dial with the file tools (when the user asked for a change), otherwise the "No file was created — Create it now" note on the answer. On by default (an absent row reads as on); false leaves only the logging of the check (notes already stored stay visible; their Create it now then runs as an ordinary regenerate with the file request). Any other stored value, or settings that cannot be read, also reads as off. Needs claim_check_shadow_enabled on. A JSON boolean — true or false; the same rejections as claim_check_shadow_enabled → 400.
feedback_triage_enabled The platform-wide on/off switch for automated feedback triage — a background sweep that classifies each new app-feedback and chat-feedback submission (category, sentiment, severity, confidence) with the platform's own model. Off (the default) means no feedback is classified anywhere; the feature ships dark and this is the incident brake. On means the sweep runs (one node at a time; bounded per run). It never sends a response, resolves an item, or creates a ticket — it only classifies and records a status. Each sweep first moves automatic app diagnostics that are stored as ordinary feedback (received, needs_human, or triaged but unanswered and unticketed) to diagnostic, and never classifies one. A JSON boolean — true or false. Rejected: anything that is not a boolean, including the strings "true"/"false", a number (1/0), null, an object, or an absent value → 400 (never coerced). An absent row reads as false (off).
feedback_triage_model The model id the feedback-triage classifier dispatches to (dogfooding the platform's own inference fleet). Unset → the platform's default chat model. A string of at most 64 bytes after trimming surrounding whitespace, with no control characters. "" reads as unset → the code default. Rejected → 400: a non-string, a value over 64 bytes, or a control character.
feedback_triage_min_confidence The minimum AI confidence (percent) required to auto-triage a feedback item; below it, the item is routed to a human (needs_human). High/critical severity and any un-parseable model answer ALWAYS route to a human regardless of this value — the brand safety net. Absent → 70. Integer, 0–100.
feedback_response_enabled The platform-wide on/off switch for automated feedback responses — a background sweep that, for each already-triaged item, sends the user a deterministic acknowledgment (all categories) plus, for a high-confidence question, an AI-drafted answer, delivered in-app and by e-mail. Off (the default) means no response is ever sent; the feature ships dark and this is the incident brake. Requires feedback_triage_enabled to be on to have items to respond to. A JSON boolean — true or false. Rejected: anything that is not a boolean, including the strings "true"/"false", a number, null, or an absent value → 400 (never coerced). An absent row reads as false (off).
feedback_response_model The model id used to draft the substantive answer to a high-confidence question (dogfooding the platform's own inference fleet). Unset → the platform's default chat model. A string of at most 64 bytes after trimming surrounding whitespace, with no control characters. "" reads as unset → the code default. Rejected → 400: a non-string, a value over 64 bytes, or a control character.
feedback_roadmap_autoreply_enabled The on/off switch for the automatic roadmap reply: a background job that answers an open feature request with one of four fixed planned / not-planned texts (English or German) instead of waiting for a person; the model only classifies the request. Requests the job cannot answer safely are held for a person and nothing is sent (the hold reasons are listed in Automatic roadmap replies). Ships on (migration 0515); an absent or malformed row reads as off. A JSON boolean — true or false. Rejected: anything that is not a boolean, including the strings "true"/"false", a number, null, or an absent value → 400 (never coerced).
feedback_roadmap_autoreply_model The model id that classifies the request for the automatic roadmap reply (it writes no text). Unset → the platform's default chat model. A string of at most 64 bytes after trimming surrounding whitespace, with no control characters. "" reads as unset → the code default. Rejected → 400: a non-string, a value over 64 bytes, or a control character.
feedback_response_min_confidence The minimum AI confidence (percent) required to auto-answer a question; below it the question routes to a human with no answer sent. A higher bar than triage (substantively answering is riskier than filing). High/critical severity ALWAYS routes to a human regardless of this value. Absent → 80. Integer, 0–100.
feedback_response_user_daily_cap The per-user cap on auto-response e-mails per rolling day. Over the cap a user is still answered in-app but no e-mail is sent (spam/abuse bound). The "fixed in version" notification counts against the same cap. Absent → 5. Integer, 1–1000.
feedback_response_email_max_age_hours The maximum age, in hours, of a feedback item whose automated response is also e-mailed. A response to an item the user sent longer ago — an acknowledgment or an answer — is delivered in-app only, so a backlog answered days later never arrives as a surprise e-mail. An item without a valid sent date is treated as too old. Absent → 72. Integer, 1–8760 (a numeric string such as "48" is accepted, like every integer setting). Rejected → 400: a non-integer, a fraction, 0, a value above 8760, a boolean, null, or an absent value.
feedback_cs_enabled The platform-wide on/off switch for the CS-automation sweep (runs after triage): auto-resolve praise, auto-create/link a YouTrack ticket for an actionable high-confidence bug/feature, and route the rest to the human queue. Off (the default) means no CS automation runs; the feature ships dark. It also needs the YouTrack integration configured (PUT /admin/v1/feedback/youtrack) — without a token, actionable items fail closed to needs_human. A JSON boolean — true/false. The strings "true"/"false", a number, null, an object, or an absent value → 400 (never coerced). Absent reads as false.
feedback_cs_min_confidence The minimum AI confidence (percent) required to auto-create a ticket for a bug/feature; below it the item goes to a human. A higher bar than triage (ticketing is a stronger action). High/critical severity always routes to a human regardless. Absent → 80. Integer, 0–100.
feedback_cs_max_tickets_per_sweep The rate cap on new YouTrack tickets auto-created per sweep (links to existing tickets and auto-resolves are uncapped). A backstop against a spam/mass-feedback burst minting a flood of tickets; a capped item is deferred to a later sweep, not escalated. Absent → 20. Integer, 0–1000.
active_chat_platforms The active subset of the chat-integration platform picker shown to non-platform-admins. GET /admin/v1/chat-bridge/platforms filters to these names for a non-platform-admin; a platform admin sees all flagged. Absent → the go-live default ["mattermost"]. A JSON array of known platform names (mattermost, slack, teams). Empty [] accepted. Rejected → 400: a non-array, an unknown platform, a non-string element.
mcp_proxy_max_pending_holds The most open pending approval holds one MCP proxy token may have (an OAuth grant counts as one, across token refreshes). A call beyond it is refused with approval_pending_cap. Absent or malformed → 20. A JSON integer between 1 and 1000. Rejected → 400: non-integer, non-numeric, a boolean, or out of range; nothing is persisted. A value written by other means is clamped to the range on read.
trial_linkup_api_key The Myra platform Linkup API key applied to every keyless Linkup gateway — all plans (trials, paid self-serve, admin-provisioned enterprise/POC organisations, and a trial that converted to paid). The key name keeps its historical trial_ prefix (no rename); since it is no longer trial-only. Every new production gateway is created with a keyless Linkup web_search block (unless the creator supplies its own web_search), and the key is injected into such a block at read time — never stored per gateway, never exported, never returned to a client. A gateway with its own web_search.api_key (BYOK) or another provider is never touched. It is a low-value search key, not a credential: a plain setting, returned verbatim on GET and admin-editable live. Absent/unset while at least one production gateway carries a keyless Linkup block → those gateways have no web search (fail closed), the Health dashboard flag web_search_platform_key_missing is true, the gateway logs ERR every 10 minutes and a [platform_alert] fires (at most every 6 h); the post-deploy release check asserts the row exists with a value longer than 20 characters. Set it from the platform-admin Feature Flags screen. A newly set key is eventually effective (≤ ~60 s — the per-gateway folded-config cache TTL), not instant. Seeded automatically at boot (migration 0345): when the row is absent or empty, the most-used well-formed Linkup api_key found in the instance's own gateway.config.web_search rows is copied in, so a fresh deployment needs no manual step; a non-empty value set here or in the console is never overwritten by the migration. If no gateway carries a usable key, the row stays absent and the health flag web_search_platform_key_missing reports it. A string API key: non-empty, at most 512 bytes, containing no whitespace and no control characters (a real Linkup key is a whitespace-free token; whitespace/CR-LF is rejected outright because the value becomes an outbound Authorization header). Rejected → 400: a non-string, empty, whitespace-anywhere (incl. CR/LF/tab), a control byte, or over 512 bytes.
stt_stream_url The WebSocket URL(s) of the streaming speech-to-text service replicas that the gateway's live-transcription relay (GET /admin/v1/chat/transcribe/stream) dials. Per-environment configuration, created by a migration and overridable here. Unset or invalid → live transcription is unavailable (every stream ends unavailable, 1013); the gateway logs the cause at ERR, at most once a minute. Read again on every stream (not cached across a rotation beyond the usual settings cache). A list of 1 to 4 comma-separated URLs (no spaces, no empty element; a single URL is a list of one; each URL at most 2048 bytes, the whole list at most 8195 bytes). A replica that is busy or unreachable before it is ready is failed over to the next one, once (failover). Each URL: a wss:// URL whose host is a name inside the Myra estate (an IP literal or localhost is refused), without userinfo, query, fragment, percent-escape or whitespace, and a path of [A-Za-z0-9-._~/] only, and a numeric port in 1..65535 without a leading zero if given. Rejected → 400: a non-string, an empty value, another scheme or host, a duplicate URL (scheme and host compared case-insensitively, the port with 443 as the default, and the path exactly with an empty path equal to /, so wss://h/p and wss://h:443/p, or wss://h and wss://h/, are duplicates), a port with a leading zero, or any of the excluded parts. The same rule is applied again each time the relay reads the stored value. Exception for dev/test fixtures only: a host:port listed in the AIG_SSRF_ALLOW allowlist may use ws:// and a loopback address.
stt_stream_basic_auth The HTTP Basic credential (base64(user:password)) of the GPU-host reverse proxy in front of the streaming speech-to-text service. Write-only: stored as server-encrypted ciphertext, never returned (value is empty and is_set says whether one is stored). Rotate it with PUT. Absent or undecryptable → live transcription is unavailable (fail closed, no fallback). A base64 string of 4 to 512 bytes (A-Z a-z 0-9 + / and up to two trailing =). Rejected → 400: a non-string, a value outside that length, or any other character.
copilot_entra_aud_allow The accepted Entra token audience(s) for the M365-Copilot document-AI lane (/copilot/v1) — the aud claim the inbound access-token validator (middleware.entra_auth) requires. Set to your Myra app registration's Application ID URI(s): api://{guid} (v2) and/or the bare {guid} (v1). Both this and copilot_entra_azp_allow must be set or the lane is dormant (every token is rejected 401) — this is the go-live switch, and the feature ships dark. Not a secret; returned verbatim on GET. A JSON array of strings. Each entry is non-empty, ≤ 255 bytes, with no whitespace (an App ID URI or GUID). A tagged empty [] is accepted (lane off). Rejected → 400: a non-array, a non-string element, a blank/oversized/whitespace-bearing entry, or more than 8 entries. Deduplicated; persisted canonically.
copilot_entra_azp_allow The accepted Entra authorized-party client id(s) for the M365-Copilot document-AI lane — the azp/appid claim the validator requires (the one Myra multi-tenant Entra app's client id). Companion to copilot_entra_aud_allow; both must be set for the lane to accept any token. Not a secret. A JSON array of directory GUID strings (8-4-4-4-12). A tagged empty [] is accepted (lane off). Rejected → 400: a non-array, a non-GUID element, a non-string element, or more than 8 entries. Deduplicated; persisted canonically.
copilot_entra_scope_required Optional. The delegated scope the Copilot access token must carry (its scp VALUE, not merely that scp is present). Unset → presence-only (any delegated scope from the Myra app is accepted — the aud/azp gate already fences to the one app). Set it to the app's Copilot delegated scope (e.g. access_as_user) to reject a token minted for a lesser scope. Read by middleware.entra_auth; a token whose scp lacks it is 403. A single string scope token: non-empty, ≤ 255 bytes, no whitespace (space delimits the scp claim). Rejected → 400: a non-string, empty, over-length, or a value containing whitespace.
direct_entra_aud_allow The accepted Entra token audience(s) for the direct document-AI lane (/direct/v1) used by the Office.js Outlook add-in. The aud claim middleware.entra_auth requires — set to the add-in's own Entra app registration Application ID URI (api://{host}/{client-id}), a different app from the Copilot lane. Must NOT overlap copilot_entra_aud_allow (a shared aud would let a Copilot server-to-server token onto this browser lane) — the write API rejects an overlapping value 400. Unset (or azp unset) → the direct lane is dormant. Not a secret. A JSON array of strings (App ID URI or GUID; non-empty, ≤ 255 bytes, no whitespace). Tagged empty [] accepted (lane off). Rejected → 400: a non-array, non-string/blank/oversized entry, more than 8 entries, or any entry already present in copilot_entra_aud_allow. Deduplicated; persisted canonically.
direct_entra_azp_allow The accepted Entra authorized-party client id(s) for the direct lane — the azp/appid claim. For Office SSO this is the Microsoft Office host client id(s) (host/platform-dependent), NOT the add-in's app id; these may legitimately overlap the Copilot lane (they are Microsoft's), so no overlap check is applied. Companion to direct_entra_aud_allow; both must be set for the lane to accept a token. Not a secret. A JSON array of directory GUID strings (8-4-4-4-12). Tagged empty [] accepted (lane off). Rejected → 400: a non-array, a non-GUID/non-string element, or more than 8 entries. Deduplicated; persisted canonically.
direct_entra_scope_required Optional. The delegated scope the direct-lane token must carry (its scp VALUE). Independent of copilot_entra_scope_required — a copilot scope requirement does NOT apply to the direct lane and vice versa. Unset → presence-only. A token whose scp lacks it is 403. A single string scope token: non-empty, ≤ 255 bytes, no whitespace. Rejected → 400: a non-string, empty, over-length, or whitespace-bearing value.
sf_sync_webhook_url The n8n webhook URL for the AI-Workspace → Salesforce lead sync. The sync is a no-op until both this and sf_sync_webhook_secret are set (the deliberate go-live act — do not enable before the DPA/privacy review and the account-deletion erasure path are in place; see the sync page). Returned verbatim on GET. A string URL that must start with https:// (it carries a bearer secret) — no whitespace, no control bytes, ≤ 2048 bytes. Rejected → 400: a non-string, empty, http:// or any non-https, a host-less value, whitespace, or a control byte.
sf_sync_webhook_secret The Authorization-header secret n8n requires for the lead sync. Stored encrypted at rest (AES-256 + HMAC, the platform master key) and write-only: GET never returns it — it reports is_set: true with an empty value, and the audit log records a redacted marker, never the value. The sync module decrypts it only to place it in the outbound Authorization header. A string: non-empty, ≤ 1024 bytes, no whitespace and no control bytes (the value becomes an Authorization header — CR/LF/tab or a control byte is a header-injection sink, rejected at the boundary and re-checked after decrypt). Rejected → 400: a non-string, empty, whitespace-anywhere, a control byte, or over 1024 bytes.
myra_fleet_token The bearer the gateway presents to the operator's Myra inference fleet (chat, OCR, embeddings/rerank, speech, image/video, routing classifier, model catalog/sync). Stored encrypted at rest (the platform master key) and write-only: GET reports is_set: true with an empty value, the PUT response carries only is_set, and the audit log records a redacted marker. There is no fallback: while it is unset (or unreadable) every fleet call fails closed — a myra model leg is refused before anything is sent to the fleet (a configured fallback provider can still answer; otherwise the turn returns a configuration error), and document OCR is retried a bounded number of times before the document is marked failed. A tenant's own myra endpoint override never receives this token. Writing a new value rotates it live (all workers of the serving node at once, other nodes within about 5 s). A string of printable ASCII: non-empty, ≤ 1024 bytes, no whitespace and no control bytes (it becomes an Authorization header). Rejected → 400: a non-string, empty, whitespace-anywhere, a control byte (incl. DEL), any non-ASCII byte (≥ 0x80), or over 1024 bytes; nothing is persisted.
github_api_token The token the fetch_url / agentic_fetch tools present to the GitHub contents API when a model fetches a github.com/<owner>/<repo>/tree/… URL, so the full directory listing is read instead of GitHub's ~100-entry page (details). Optional: unset → the API is called unauthenticated (60 requests per hour per egress address), and on an API failure the page is fetched as before (except an offset read after a temporary failure with no source yet in the request, which is refused — see details). It is one token for every tenant, so it must be a GitHub fine-grained personal access token with repository access "Public repositories (read-only)" and no repository grants — a broader token would let any tenant's model list the repositories it can see. Stored encrypted at rest and write-only (as myra_fleet_token). A 401 from GitHub is logged (github_api_token rejected) and the call is retried unauthenticated. A string of printable ASCII: non-empty, ≤ 1024 bytes, no whitespace and no control bytes (it becomes an Authorization header). Rejected → 400: a non-string, empty, whitespace-anywhere, a control byte (incl. DEL), any non-ASCII byte, or over 1024 bytes; nothing is persisted.
audit_chain_key The HMAC key of the tamper-evident audit-log hash-chain. Its presence enables the chain (sealing, checkpoints, and the chain-aware audit-log retention); there is no separate switch. Stored encrypted at rest (the platform master key) and write-only: GET reports is_set: true with an empty value, the PUT response carries only is_set, and the audit log records a redacted marker. Never change it once the chain is running — a different key cannot verify rows sealed under the old one (a re-anchoring event, not a rotation). While it is unset or unusable nothing is sealed and the deployment reports it (health summary audit_chain_disabled, gauge aig_audit_chain_enabled 0, error log). Tenant administrators then see Tamper-evident: off on the Audit log page, and Verify integrity is disabled. A string of printable ASCII, at least 32 and at most 1024 bytes (for example openssl rand -hex 32), no whitespace and no control bytes. Rejected → 400: a non-string, empty, shorter than 32 bytes, whitespace anywhere, a control byte (incl. DEL), any non-ASCII byte, or over 1024 bytes; nothing is persisted.
rag_rerank_model The cross-encoder reranker model id for knowledge search (details) — and the on/off switch of the rerank stage. Default bge-reranker-v2-m3 (ON). Blank, absent or malformed → the rerank stage is off and search serves the hybrid-fused order. A reranker failure never fails a search (it falls back to the hybrid order). A string of at most 128 bytes with no whitespace and no control bytes, printable ASCII; or "" to switch the reranker off. Rejected → 400: a non-string, whitespace/control byte, any byte ≥ 0x80, or over 128 bytes; nothing is persisted.
rag_rerank_top_k Passages kept after a rerank in the in-product document search. Absent or malformed → 8. A JSON integer between 1 and 40. Rejected → 400: non-integer, non-numeric, a boolean, or out of range; nothing is persisted. A value written by other means is clamped to the range on read.
rag_rerank_timeout_ms The read deadline of one reranker call, in milliseconds; on a timeout the hybrid order is served. Absent or malformed → 5000. A JSON integer between 500 and 30000. Rejected → 400 like rag_rerank_top_k; clamped on read.
vector_tier_threshold_chunks A tenant whose shared-table knowledge embeddings reach this many chunks is eligible for the vector-tier promotion job (its own HNSW table; see Document search). Absent or blank → 3000. A JSON integer between 1000 and 10000000. Rejected → 400: non-integer, non-numeric, a boolean, or out of range; nothing is persisted. A value stored outside the range by other means is not clamped: the promotion job refuses to run until it is fixed (a promotion deletes rows from the shared table).
vector_tier_auto_promote_enabled Gate for the periodic vector-tier promotion trigger: when on, the agent scheduler promotes eligible tenants (see vector_tier_threshold_chunks) one per tick. Absent or blank → off. A JSON boolean ({ "value": true }). Rejected → 400: the string "true", a number, or any other non-boolean; nothing is persisted. A malformed value stored by other means is not treated as on: the promotion drain stops (bad_setting, fail-closed) until it is fixed.
sf_sync_sandbox Routes the lead sync to the Salesforce Sandbox (true) rather than production (false/absent). The flag is sent in the payload; n8n uses it to pick the Salesforce target. Only honoured on production (AIG_ENV=prod): every other environment — dev, int, beta, unknown — always sends sandbox: true, whatever this says (MAP-3139). Set it first in the go-live order (see the sync page). A JSON boolean — true or false. Rejected: anything that is not a boolean, including the strings "true"/"false", a number, null, or an absent value → 400 (never coerced). An absent row reads as false (production — but see the environment rule).
sf_sync_enabled The master on/off switch of the Salesforce lead sync (MAP-3139), default off. The sync is active only when this is true and sf_sync_webhook_url and sf_sync_webhook_secret are set. Setting it to false stops every send at once — events and a running backfill — while keeping the URL and secret. Set it last in the go-live order (sf_sync_sandbox, secret, URL, then this). A JSON boolean — true or false. Rejected → 400 (never coerced): the strings "true"/"false"/"on", a number (1/0), an object, an array, null, or an absent value. An absent or malformed stored row reads as off.
sf_sync_backfill_daily_cap The most leads the Salesforce backfill sends per UTC day (MAP-3139; default 1000 ≈ 2000 Salesforce API calls — the API budget is shared company-wide). The pass resumes where it stopped on the next UTC day. To stop the backfill, switch sf_sync_enabled off — a cap of 0 is not allowed (it would be a silent permanent stop). An integer from 1 to 1000000 (a numeric string is normalised to its integer text, like every integer setting). Rejected → 400: 0, a negative, above 1000000, a non-integer (1.5), a non-numeric string, a boolean, an object or null. An absent or out-of-range stored value reads as 1000.
connect_ox_allowed_origins The allow-list of browser Origins permitted to complete the Connect-OX handshake (POST /admin/v1/me/connect/ox) — the exact https:// Origin(s) of the Open-Xchange site(s) that embed the Connect button. Default (absent) is [] ⇒ the handshake is dormant (every mint request → 403, fail closed). The mint endpoint re-validates each stored entry AND requires an exact match against the request's origin, so a substring/prefix or a non-canonical entry never authorizes a token. Enter each origin canonically — the value is stored verbatim, not normalised, so a non-canonical entry would simply never match. A JSON array of canonical https origins. Each entry: https://host[:port], lowercase scheme+host, ASCII host (an IDN must be pre-encoded as punycode xn--…), no path/query/fragment/userinfo/@, an optional port that is not :443, ≤ 200 bytes. A tagged empty [] is accepted (handshake off). Rejected → 400: a non-array, a non-string element, or any entry that is not a canonical origin (uppercase, http://, a trailing/leading/double dot, whitespace, *, null, a bare host, :443, a path, or a non-ASCII byte); more than 50 entries. Deduplicated; persisted canonically.
clickhouse_url Base URL of the ClickHouse HTTP endpoint that receives the request-log shadow-write. Absent or empty = ClickHouse is OFF (the default everywhere; every other clickhouse_* key is then ignored). A NOTICE is logged once at boot when it is off. Per-environment configuration (no migration seeds it); changes are picked up by each node within ~5 s, no restart. A string https://host[:port] (or http:// for a loopback host only: localhost, 127.x.x.x). Host: lowercase DNS name or IPv4; no userinfo, path, query, fragment, IPv6 literal or % escape; port 1..65535; at most 255 bytes, ASCII only. Stored normalised with a trailing / and an explicit port. PUT with the exact string "" clears the value and switches ClickHouse off (whitespace-only is rejected). Rejected → 400: anything else. A stored row that fails this check at read time (hand-edited database) is treated as malformed: the gateway logs ERR at boot (once per node at boot, worker 0) and sends nothing; afterwards only a rate-limited WARN from the flush tick, and only when it discarded rows (buffered rows are dropped and counted).
clickhouse_database ClickHouse database holding the request-log tables. Required once clickhouse_url is set. A string [A-Za-z_][A-Za-z0-9_]*, 1..64 bytes. Rejected → 400: anything else.
clickhouse_cluster Optional ClickHouse cluster name. When set, the gateway runs no DDL (the schema is owned by the cluster rollout) and only verifies the table exists. Unset = single node, the gateway applies its own migrations under the migration lock. PUT an exact "" to clear it (back to single node). Same identifier rule as clickhouse_database.
clickhouse_tls_server_name Optional name used for TLS SNI and certificate verification when the URL host is an IP address or differs from the certificate name. https only; certificates are always verified (against the server trust store). PUT an exact "" to clear it (SNI/verification name returns to the URL host). A DNS name ([a-z0-9-] labels, lowercased), not an IP address.
clickhouse_writer_user ClickHouse user for inserts and migrations. Required once clickhouse_url is set. Identifier rule as above.
clickhouse_writer_password Password of the writer user. Secret: stored encrypted, write-only (is_set only). Required once clickhouse_url is set. A non-empty string without whitespace or control characters, at most 256 bytes.
clickhouse_reader_user / clickhouse_reader_password Optional read-only credentials for the read path. Set both or neither: one without the other is malformed (ClickHouse OFF, ERR). The password is a secret like the writer's. PUT an exact "" to clear either key; clear both to remove the reader. Only one cleared is malformed. Clearing the reader password (the only clearable secret): the PUT of "" stores "" (not encrypted), is_set becomes false, and the audit log records [cleared secret]. User: identifier rule; password: as the writer password.
clickhouse_payload_retention_days Currently not applied: the ClickHouse payload TTL is fixed at 14 days (not configurable), the same as the default of the MySQL payload expiry, whatever this setting holds. Optional; PUT an exact "" to clear (reads as unset). An integer (or digit string) 10..730.
clickhouse_spool_cap_bytes Optional cap in bytes for the on-disk request-log spool that buffers rows for ClickHouse. Applied volume-wide (all gateway hosts sharing the spool volume); default 2 GiB when unset. Rows arriving over the cap are dropped and counted. PUT an exact "" to clear (reads as unset). An integer (or digit string) 16777216..1099511627776.
request_log_read_source_tenant_drilldown Read source for the tenant analytics drilldown (GET /admin/v1/tenants/{id}/analytics). Absent, "" or "mysql" = MySQL (the default). "clickhouse" = served from ClickHouse behind the coverage check; when the check or the ClickHouse read fails the answer comes from MySQL and the response carries read_source: "mysql_fallback" (see the read_source field in Per-tenant analytics timeseries). Do not set "clickhouse" in an environment before the request-log backfill (L5) and reconciliation (L6) have run there. Optional; per-environment configuration (no migration seeds it). Exactly "", "mysql" or "clickhouse" (the stored value stays as given). Rejected → 400, nothing stored: any other string (case variants, leading/trailing spaces, "1", "true", "on", "ch"), a number, a boolean, null, an object or array, a missing value. A stored invalid value written by other means serves MySQL and logs an ERR naming the key.
request_log_read_source_dashboard Read source for the Dashboard aggregates: GET /admin/v1/stats (the window figures and by_tenant), GET /admin/v1/stats/timeseries and the request-log counts of GET /admin/v1/health/dashboard. Absent, "" or "mysql" = MySQL (the default). "clickhouse" = served from ClickHouse behind the coverage check; when the check or the ClickHouse read fails the answer comes from MySQL and is labelled read_source: "mysql_fallback" (/stats, /health/dashboard: body field; /stats/timeseries: response header X-Read-Source). /stats also answers from MySQL (mysql_fallback) when a row in the guard window had its detector hits reset in MySQL after mirroring (retention anonymisation or Art. 17 erasure); see the read_source paragraph of GET /stats. /stats/timeseries and /health/dashboard answer from MySQL (mysql_fallback) when ClickHouse holds a user id that retention already anonymised or an erasure removed in MySQL, or when MySQL holds rows that were anonymised after they were shipped (personal_scrubbed). The figures extend to the current instant like MySQL's, but the check only counts rows older than 5 minutes, so with "clickhouse" the newest minutes may lack rows that are still being shipped. The recent / recent_blocked row lists stay on MySQL. Do not set "clickhouse" in an environment before the request-log backfill (L5) and reconciliation (L6) have run there. Optional; per-environment configuration (no migration seeds it). Exactly "", "mysql" or "clickhouse" (the stored value stays as given). Rejected → 400, nothing stored: any other string (case variants, leading/trailing spaces, "1", "true", "on", "ch"), a number, a boolean, null, an object or array, a missing value. A stored invalid value written by other means serves MySQL and logs an ERR naming the key.
request_log_read_source_analytics Read source for the request-log figures of Cost analytics (GET /admin/v1/stats/analytics): counters.active_users, with compare=1 the period summary (current and previous window), percentiles, top_models, by_tenant, by_gateway, by_channel, by_agent, by_agent_series, by_user, unattributed and the request-log figures of cache_efficiency, and all of GET /stats/usage-series (every dimension). user_attribution, by_department, the user e-mail labels and model prices, the per-agent conversations, the other five counters and previous_window.complete always stay on MySQL. Absent, "" or "mysql" = MySQL (the default). "clickhouse" = served from ClickHouse behind the coverage check; when the check or a ClickHouse read fails the answer comes from MySQL and the response carries read_source: "mysql_fallback" (see GET /stats/analytics). Rows anonymised in MySQL only after shipping (retention, erasure, tenant purge) in the checked window also give mysql_fallback. The check only counts rows older than 5 minutes, so with "clickhouse" rows still being shipped in the newest minutes may be missing. Do not set "clickhouse" in an environment before the request-log backfill (L5) and reconciliation (L6) have run there. Optional; per-environment configuration (no migration seeds it). Exactly "", "mysql" or "clickhouse" (the stored value stays as given). Rejected → 400, nothing stored: any other string (case variants, leading/trailing spaces, "1", "true", "on", "ch"), a number, a boolean, null, an object or array, a missing value. A stored invalid value written by other means serves MySQL and logs an ERR naming the key.
request_log_read_source_compliance Read source for the compliance metrics behind GET /admin/v1/compliance/report (CSV download) and the compliance rollup of GET /admin/v1/governance/dashboard. Absent, "" or "mysql" = MySQL (the default). "clickhouse" = served from ClickHouse behind the coverage check and the anonymisation check; when either fails, or the read fails, MySQL answers and the label is mysql_fallback (CSV: response header X-Read-Source; governance dashboard: body field read_source). An empty settled window (no traffic yet in the guard window, for example a new tenant or a window younger than the 5 minute settle grace) is also answered by MySQL and labelled mysql_fallback. The scheduled monthly snapshot job always reads MySQL, so the stored-report downloads (/admin/v1/compliance/reports/{id}, CSV and PDF) render that snapshot and always read MySQL. Optional; per-environment configuration (no migration seeds it). Exactly "", "mysql" or "clickhouse" (the stored value stays as given). Rejected → 400, nothing stored: any other string (case variants, leading/trailing spaces, "1", "true", "on", "ch"), a number, a boolean, null, an object or array, a missing value. A stored invalid value written by other means serves MySQL and logs an ERR naming the key.
request_log_read_source_guardrails Read source for the gateway guardrail strip GET /admin/v1/gateways/{id}/guardrail-stats. Absent, "" or "mysql" = MySQL (the default). "clickhouse" = served from ClickHouse behind the coverage check and the anonymisation check; when either fails, or the read fails, MySQL answers and the body field read_source is mysql_fallback. The events list (guardrail-events) always reads MySQL. Optional; per-environment configuration (no migration seeds it). Exactly "", "mysql" or "clickhouse". Rejected → 400, nothing stored: any other string (case variants, leading/trailing spaces, "1", "true", "on", "ch"), a number, a boolean, null, an object or array, a missing value. A stored invalid value written by other means serves MySQL and logs an ERR naming the key.
request_log_read_source_alerting Read source for the two request_log failure signals of the alert watcher: errors_5xx (HTTP 5xx count) and guardrail_unavailable (guardrail verdict error / indeterminate count). Absent, "" or "mysql" = MySQL (the default). "clickhouse" = the watcher counts on ClickHouse as well and uses the larger of the two counts per signal (MySQL stays the floor, so a lagging ClickHouse can never hide a failure); when the ClickHouse read fails the MySQL count is used and the alert field read_source is mysql_fallback (WARN logged). With the switch on, a fired alert carries the extra fields read_source, mysql_count and clickhouse_count. The two client_error_log signals always read MySQL. ClickHouse excludes test/benchmark-purpose gateways and fixture tenants byte-exactly; MySQL folds case, so a verdict ERROR (upper case) counts on MySQL only. Optional; per-environment configuration (no migration seeds it). Exactly "", "mysql" or "clickhouse". Rejected → 400, nothing stored, the submitted value is not echoed: any other string (case variants, leading/trailing spaces, "1", "true", "on", "ch"), a number, a boolean, null, an object or array, a missing value. A stored invalid value written by other means serves MySQL and logs an ERR naming the key.
request_log_read_source_abuse Read source for the abuse watcher's self-serve request_log reads (activity velocity and guardrail adversarial counts). Absent, "" or "mysql" = MySQL (the default). "clickhouse" = MySQL still decides every flag, the cooldown and the alerts (alerts are identical to the default and are sent before any ClickHouse call); ClickHouse runs the same flag logic as a shadow and the two results are compared in the log (abuse_watcher: read_source=mysql shadow=clickhouse ..., parity lines; no user ids). A ClickHouse failure only logs a WARN shadow=failed. Costs one extra bounded tenant list and two ClickHouse reads per run. Optional; per-environment configuration (no migration seeds it). Exactly "", "mysql" or "clickhouse". Rejected → 400, nothing stored, the submitted value is not echoed: any other string (case variants, leading/trailing spaces, "1", "true", "on", "ch"), a number, a boolean, null, an object or array, a missing value. A stored invalid value written by other means serves MySQL and logs an ERR naming the key.
request_log_read_source_plan_copy Read source for the weekly per-model speed medians behind the plan model copy (population: existing non-fixture tenants on production gateways, on both sources, the MySQL path changed too; GET /admin/v1/models for self-serve plan callers while plan_model_copy_enabled is true). Absent, "" or "mysql" = MySQL (the default). "clickhouse" = served from ClickHouse behind the coverage check; an empty or non-matching window is served by MySQL and logged at INFO as read_source=mysql_fallback. Speed values are cached per week, so a changed value shows after the cache expires (or on the one-time regeneration). Optional; per-environment configuration (no migration seeds it). Exactly "", "mysql" or "clickhouse" (the stored value stays as given). Rejected → 400, nothing stored: any other string (case variants, leading/trailing spaces, "1", "true", "on", "ch"), a number, a boolean, null, an object or array, a missing value. A stored invalid value written by other means serves MySQL and logs an ERR naming the key.
request_log_read_source_report_intake Read source for the tenant lookup behind the request_log_id link of POST /admin/v1/reports. Absent, "" or "mysql" = MySQL (the default). "clickhouse" = MySQL still decides whether the link is kept or dropped and the report is stored exactly as with the switch off; after the report is filed a background timer asks ClickHouse the same question and the two answers are compared in the log (report_intake: read_source=mysql shadow=clickhouse result=..., no tenant, request or user ids). A ClickHouse failure only logs a WARN and never changes the outcome. Costs one extra ClickHouse point read per filed report that carries a request_log_id. Optional; per-environment configuration (no migration seeds it). Exactly "", "mysql" or "clickhouse". Rejected → 400, nothing stored, the submitted value is not echoed: any other string (case variants, leading/trailing spaces, "1", "true", "on", "ch"), a number, a boolean, null, an object or array, a missing value. A stored invalid value written by other means serves MySQL and logs an ERR naming the key.
siem_allow_private_targets Lets tenants point a syslog SIEM target at their own private network (RFC 1918 and CGNAT 100.64.0.0/10). Off by default: private syslog targets are refused. Loopback, link-local / cloud metadata, unique-local, multicast and the denylist below stay refused either way. See SIEM targets. A boolean. true is refused (400) while siem_egress_deny_cidrs is empty. Anything else → 400.
siem_egress_deny_cidrs The egress denylist: Myra-internal IPv4 ranges the gateway never connects to for a tenant-configured destination — SIEM syslog targets and outbound webhooks. If the stored value cannot be read, or an entry cannot be parsed, every SIEM syslog target and every webhook is refused (503 on save, not sent at delivery) — a broken list never counts as an empty one. It also gates the per-tenant private destination allowlist: neither a tenant's private-destination allowlist nor its ceiling may overlap this list, and neither can be set (other than cleared) while it is empty. A string: IPv4 CIDRs a.b.c.d/n (octets 0–255, n 0–32) separated by commas and/or whitespace, or "" to clear. Stored normalised as a, b, c. Any malformed entry → 400 (nothing stored).
webhook_allow_loopback_receiver Development only. Lets outbound webhooks go to a local test receiver at http://127.0.0.1:<port> or https://127.0.0.1:<port> (port 1024–65535). Nothing else is relaxed. It works only on a development deployment and is ignored elsewhere even if the row exists. See Webhook destination policy. A boolean, default false. true on any non-development deployment → 409 { "code": "dev_only_setting" } (nothing stored); false is always accepted. Anything else → 400.
least_privilege_digest_enabled The platform-wide on/off switch for the weekly least-privilege digest e-mail to agent owners. Default (absent) is off. There is no switch for it in the web app. A JSON boolean — true or false. Rejected → 400 (never coerced): the strings "true"/"false", a number, an object or an array.
partner_payout_maturation_window_days How many days a partner commission accrual is held back before it can be paid out (see Partner payouts). Absent → 45. Integer, 1–3650.
partner_payout_min_cents The platform minimum partner payout, in EUR cents. A smaller balance is carried forward to the next run. A per-partner minimum overrides it. Absent → 10000 (EUR 100). Integer, 0–100000000.
partner_payout_debtor_iban The Myra account that the partner-payout SEPA file debits. Required: a payout run is refused while it is unset. A valid SEPA IBAN (checksum and SEPA country checked); stored in normalised form. Rejected → 400: anything that is not a valid SEPA IBAN.
partner_payout_debtor_bic The BIC of the debtor account. Optional (an IBAN alone is valid). A valid BIC string, or "" to clear. Rejected → 400: a non-string or an invalid BIC.
partner_payout_debtor_name The debtor name on the SEPA file. Absent → Myra Security GmbH. A string of at most 70 characters after trimming, no control characters; "" clears it. Rejected → 400: a non-string, too long, or a control character.
partner_payout_buyer_name, partner_payout_buyer_address, partner_payout_buyer_city, partner_payout_buyer_zip, partner_payout_buyer_vat_id The buyer party (Myra) printed on every self-billing credit note (Gutschrift). The VAT id, street, postal code and city are required for a payout run (§14 UStG); the name defaults to Myra Security GmbH. A string after trimming, no control characters, at most 200 (name, address), 100 (city), 20 (postal code) or 32 (VAT id) characters; "" clears it. Rejected → 400: a non-string, too long, or a control character.
partner_payout_buyer_country The buyer's country on the credit note. Absent → DE. Required for a payout run. A 2-letter ISO country code (stored upper-case), or "" to clear. Rejected → 400: anything else.

Until an admin writes a row for a key, the code's own default applies — for workflow_run_retention_days that is the deployment default set by your operator; for support_email it is the built-in support mailbox. Either way the cutover is a pure addition, not a breaking change. Once a row exists, the database value wins permanently.

Note that an empty value is rejected (400) rather than stored for most keys (the exceptions are the keys whose row above says "" clears the value), and there is no endpoint to delete a key — so support_email cannot be blanked to disable support email; point it at a different mailbox instead. A stored empty value (were one ever written directly to the database) would also read as "no row" and fall back to the built-in default, as would a brief database outage.

How a setting reaches each environment. Every known setting declares one of: a row the platform requires is created by a database migration (today myra_fleet_token, shipped as encrypted ciphertext — never set by hand into one environment); a common API key (today trial_linkup_api_key) is set here on the source environment and copied into derived test environments; every other setting is per-environment configuration set here. Changing a value on an environment with PUT (rotation, restore) is always possible.

Secret settings. A key marked secret (today: sf_sync_webhook_secret, myra_fleet_token, github_api_token, audit_chain_key, clickhouse_writer_password, clickhouse_reader_password) is stored encrypted at rest with the platform master key and is write-only: PUT validates and encrypts the value, and both GET and the PUT response return is_set with an empty value instead of the secret; the audit log records a redacted marker. There is no way to read a secret back through the API — rotate it by writing a new value. (As a safeguard, GET also redacts any stored value that is a master-key ciphertext even if its key is not in the allowlist; both the current and the newer ciphertext format are recognised.)

Base URL: https://<your-gateway-host>/admin/v1

Every endpoint requires the SETTINGS_MANAGE permission, which only the platform admin role holds; any other caller is 403, an unauthenticated caller 401. Access is re-gated server-side — the client is never the authorization boundary.

List settings

GET /admin/v1/settings

Returns every row currently stored (keys with no row are simply absent — the deployment's env-derived default applies):

[
  {
    "key": "workflow_run_retention_days",
    "value": "14",
    "updated_at": 1750000000,
    "updated_by": "<admin-user-id>"
  },
  {
    "key": "trial_linkup_api_key",
    "value": "lk_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    "updated_at": 1750000100,
    "updated_by": "<admin-user-id>"
  }
]

Every row's value is returned verbatim (there is no masked / write-only key), with two exceptions: a value stored as server-encrypted ciphertext is never returned (value is empty and is_set says whether one is stored), and wallet_enabled reports its effective value — where the platform refuses wallet activation, a stored true reads "false" with a refused_reason sentence (and a row is listed even when none is stored, updated_at/updated_by null), so a client can show the refusal before trying to switch it on. No environment refuses it since per-call wallet holds shipped, so today refused_reason is absent and the stored value is returned as is.

Updating a setting

PUT /admin/v1/settings/{key}

Upserts the named key. The change is audited (settings / update in the audit log, entity id = the key, up to 255 characters) and takes effect on the next read that follows the write on the serving node (the config cache is invalidated on success); other server nodes and sites pick it up within about 5 s while the database is reachable. The change and its audit row are written in one transaction: either both are stored or neither is, so a setting is never applied without its audit entry. If the audit row cannot be stored the change is refused and not applied.

Accepted body

{ "value": 14 }

value's accepted shape depends on the key — workflow_run_retention_days requires an integer in 1–3650; self_serve_purge_days requires an integer in 15–3650 and consent_retention_days an integer in 0–4018 (plain decimal digits, no leading zeros — a stored "0090" counts as malformed); unlike the generic clamp-on-read rule below, these two are not clamped: a value stored outside the range or as garbage by other means logs an error and the dependent step (the purge ladder, or the consent-evidence purge) is skipped for that sweep, and the same happens while the settings database is unreadable. A malformed stored value additionally raises an operator alert (retention_setting_malformed, at most about twice a week per gateway node); an unreadable settings database only logs a warning and the next hourly sweep retries. There is no DELETE route — to restore the default, PUT 90 or 1095; support_email requires a single valid email address ({ "value": "aiws.support@myrasecurity.com" }); paid_signup_enabled, plan_change_enabled, password_mfa_enabled, admin_mfa_enforced, wallet_enabled, wallet_autotopup_tax, oauth_login_enabled, oauth_app_scheme_return, reactivation_emails_enabled, wallet_low_alert_enabled, video_generation_available, background_removal_available, verify_after_edit_disabled, feedback_triage_enabled, claim_check_shadow_enabled, claim_check_actions_enabled, vector_tier_auto_promote_enabled (default off; a malformed stored value stops the promotion drain, bad_setting) and signup_country_header_trusted each require a JSON boolean ({ "value": true } — the string "true" or a number is rejected, never coerced); trial_per_domain_daily requires an integer in 1–1000000; self_serve_checkout_monthly_max_minor requires an integer in 1–99999999; replay_tenant_byte_budget_mib requires an integer in 1–1024 (default 64), replay_platform_byte_budget_mib an integer in 64–16384 (default 4096) and replay_side_ring_cap an integer in 1–500 (default 50) — the turn replay store limits; a value stored outside these ranges by other means is clamped to the nearest bound when read; reactivation_daily_cap requires an integer in 1–1000; vector_tier_threshold_chunks requires an integer in 1000–10000000 (default 3000); feedback_triage_min_confidence, feedback_response_min_confidence, feedback_cs_min_confidence each require an integer in 0–100; feedback_response_user_daily_cap requires an integer in 1–1000; feedback_response_email_max_age_hours requires an integer in 1–8760; feedback_cs_max_tickets_per_sweep requires an integer in 0–1000; feedback_response_enabled, feedback_cs_enabled, feedback_roadmap_autoreply_enabled each require a JSON boolean; feedback_triage_model, feedback_response_model, feedback_roadmap_autoreply_model each require a string of at most 64 bytes after trimming, without control characters; avv_current_version requires a 1–32-char version string in [A-Za-z0-9 . - _ :] ({ "value": "2026-08-21" }); terms_current_version requires the same 1–32-char version string ({ "value": "2026-08-10" }); plan_change_tenant_allowlist and password_mfa_tenant_allowlist require a JSON array of tenant UUIDs (case-insensitive, stored lower-case, duplicates collapsed, at most 500) or exactly ["*"]. stripe_webhook_self_repair_envs requires a JSON array of at most 3 distinct environment names from dev, int, beta, prod ([] allowed).

Response 200

{ "ok": true, "key": "workflow_run_retention_days", "value": "14" }

value is echoed back in its coerced form — the value after the key's validator has normalised it (for example a monetary cap is returned as a two-decimal string), which may differ from the raw value sent in the request body. Every value is stored and returned as a string: an integer key echoes "14" for 14, a boolean key "true" / "false", and an array key the JSON text of the array. GET returns the same strings. For a secret key the response is { "ok": true, "key": "<key>", "is_set": true }, without value.

Rejected (fail closed — nothing is persisted)

  • {key} is not one of the known settings keys → 404 { "error": "unknown setting: <key>" }.
  • the body is not a JSON object, or value is missing or null → 400 { "error": "body must be {\"value\": ...}" }.
  • value fails that key's validator → 400 { "error": "<the validator's reason>", "code": "invalid_setting_value" } (the code is present on every refusal by a key's validator). For an integer key that means non-numeric, fractional, NaN/±infinity or out of bounds; for support_email it means a non-string, or anything that is not a single well-formed address (multiple recipients, a display name, embedded whitespace, a C0, DEL or C1 control character, invalid UTF-8, a domain without a dot or with a leading/trailing/double dot, or over 254 bytes); for paid_signup_enabled, plan_change_enabled, password_mfa_enabled, admin_mfa_enforced, wallet_enabled, wallet_autotopup_tax, oauth_login_enabled and oauth_app_scheme_return it means anything that is not a JSON boolean — the strings "true"/"false", a number, an object — so a truthy-looking value can never be coerced into enabling the flag (the same holds for video_generation_available and background_removal_available); for trial_linkup_api_key it means a non-string, an empty value, any whitespace (including a CR/LF or tab), a control byte, or a value over 512 bytes; for avv_current_version and terms_current_version it means a non-string, an empty/whitespace-only value, a value over 32 bytes, or any character outside [A-Za-z0-9 . - _ :].
  • plan_change_tenant_allowlist and password_mfa_tenant_allowlist: a non-array, any non-UUID string, a number/boolean/null/object entry, "*" mixed with other entries, or more than 500 distinct entries → 400.
  • video_generation_available (platform kill switch for the create_video tool) takes a JSON boolean only; anything else is 400. An absent row means off, and so does any stored value that is not a boolean. It gates new submits only: clips already being generated still finish.
  • verify_after_edit_disabled (platform kill switch for the layout check after a file change) takes a JSON boolean only; anything else is 400. true switches the check off; an absent row (and any stored value that is not a boolean) means not disabled — the check is fail-open by design, so leaving it on can never block a file change.
  • background_removal_available (platform kill switch for the remove_background tool) takes a JSON boolean only; anything else is 400. An absent row means off, and so does any stored value that is not a boolean.
  • wallet_enabled set to true where the platform refuses wallet activation → 409 { "error": "the prepaid wallet cannot be enabled on <environment> …" }; nothing is stored. No environment refuses it since per-call wallet holds shipped.
  • copilot_entra_aud_allow / direct_entra_aud_allow: an entry that is already in the other key's list → 400 (the two document-AI audience lists must not overlap).
  • webhook_allow_loopback_receiver set to true on a deployment that is not a development deployment → 409 { "error": "…", "code": "dev_only_setting" }. Setting it to false is always accepted.
  • siem_allow_private_targets set to true while siem_egress_deny_cidrs is empty → 400. Set the denylist first.
  • a non-platform-admin caller → 403; unauthenticated → 401.
  • a secret key while the platform master key is unavailable, or its encryption fails → 500 { "error": "failed to secure the secret value" }; nothing is stored.
  • a database failure while writing the change or its audit row → the change is not applied (one transaction). 503 { "error": "temporarily unavailable; retry later" } means nothing was written (the database was not reached, every attempt hit a lock conflict, or a row lock was held past the lock wait): retry. 500 { "error": "internal error", "request_id": "…" } means the change was not applied, or the outcome is unknown (the connection was lost around the commit): read the setting back before retrying. The database's own text is never returned. A failed read (GET /admin/v1/settings) answers 503 { "error": "temporarily unavailable; retry later" } (retry).