Skip to main content
GET
Call this from the visitor’s browser when your page loads, before you render the widget launcher. It does not take an API key or a console session. It takes the embed’s public widget key in the X-MITHUNAI-Widget-Key header, and the browser’s Origin must be allowed by both the deployment’s allowed_origins and the platform-wide widget allowlist. See Website widget. A 200 is the whole answer: it proves the key names a live deployment, the page’s origin is permitted and the organization is active. status is always active. The response deliberately says nothing about the organization, the assistant or the deployment’s name. brand carries your organization’s public brand overrides so the widget can render in your colours without a custom build. It is sparse: it contains only the fields your organization has set, and is {} when none are. Documentation, support and legal links are never included. See Branding. A refusal made before the key and the origin are accepted (a missing or invalid key, an origin the deployment does not allow, or the per-address limit checked before the key is read) carries no Access-Control-Allow-Origin header, so in a cross-origin browser request fetch rejects with a network error instead of exposing the error body. Once the key is accepted and the origin is allowed, every response carries the header, refusals included, so your page can read a 404, a 429 and its Retry-After. An unknown, malformed, revoked or expired widget key all return the same 401. An unknown, malformed, revoked or expired widget key all return the same 401.
string
required
The deployment’s public widget key, mithunai_wk_…. An mithunai_sk_ API key is not accepted here.
string
required
Set by the browser. It must exactly match an origin allowed for this deployment. When you call from outside a browser, set it yourself.

Response

string
required
Always active.
string | null
required
The presentation stored on the embed, chat, sidebar, search or deflector, or null. The widget applies it only when its snippet names no data-mode.
object
required
Your organization’s public brand overrides, in camelCase. Every section and field is optional.
Last modified on November 11, 2026