Skip to main content
GET
Call this from the visitor’s browser. It takes the embed’s public widget key in X-MITHUNAI-Widget-Key, and the browser’s Origin must be allowed by both the deployment’s allowed_origins and the platform-wide widget allowlist. See Website widget. Only threads started with the visitor token you send are returned. Without an X-MITHUNAI-Visitor-Token header the response is an empty list, never other visitors’ threads. A visitor token belongs to one thread, so in practice this returns at most the one conversation that token unlocks. The server reads the embed’s threads across all visitors, newest first, and keeps only the ones your token unlocks. It stops once it has limit of them, or after the embed’s 500 newest threads. On an embed busier than that, an older thread can be missing from the result even though its token is valid; fetch it directly with Get a widget conversation instead. This endpoint returns a single page: next_cursor is always null and has_more is always false. 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.
string
required
The deployment’s public widget key, mithunai_wk_….
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.
string
The visitor token returned when a thread was started. Without it the list is empty.
boolean
default:"false"
Include archived threads. Accepts true, false, 1 or 0, in any letter case. Any other value returns 400 validation_error.
integer
default:"20"
How many of the embed’s most recent threads to consider, from 1 to 100.

Response

object[]
required
The threads your token unlocks, newest first.
string | null
required
Always null.
boolean
required
Always false.
Last modified on November 7, 2026