Mint a visitor identity token
Mint a short-lived token that vouches for who a signed-in user is, for the chat widget’s identityToken. Call it from your server, once per page render. Without an externalId (or with one over 255 characters) it answers external_id_required. Requires scope: widget:identify.
Authorizations
A Custral API key, created in Settings → Developers → Applications, sent as Authorization: Bearer sk_…. The X-Api-Key header is also accepted and takes precedence. Use a secret key (sk_…) from your server; a publishable key (pk_…) may hold only objects:read and usage:write. Never expose a secret key in a browser.