Skip to main content
POST
Call this from the visitor’s browser. It does not take an API key or a console session. It takes the embed’s public widget key in the X-ARUKZ-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. The response contains a visitor_token. It is returned once, in this response, and cannot be retrieved again: only its hash is stored. Keep it for the life of the thread (for example in sessionStorage) and send it as X-ARUKZ-Visitor-Token on every later request about this conversation. Every visitor on your site shares the same widget key, so the visitor token is what stops one visitor reading another’s conversation. The assistant is always the one the deployment embeds. An assistant_id in the body is ignored and replaced; you cannot point a widget at a different assistant. The conversation starts empty; ask the first question with Send a widget message. The body must be a JSON object. Send {} when you have no title or metadata. When a request is refused, the response 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.
string
required
The deployment’s public widget key, arukz_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
A title for the thread, up to 200 characters. When omitted, the thread is titled New conversation until the first question renames it.
object
Your own string labels for the thread, such as the page it started on. At most 20 entries. Keys are 1 to 64 characters, start with a lowercase letter and contain only a-z, 0-9, _, . and -. Values are strings of up to 512 characters. Do not use keys beginning with arukz.: they are reserved for the platform and are never returned in responses.

Response

Returns 201 Created.
object
required
The new conversation.
string
required
The token that unlocks this thread. Send it as X-ARUKZ-Visitor-Token on later requests. Shown only in this response.
Last modified on September 26, 2026