Mint a hosted widget voice session
Validates the published widget, exact browser Origin, Agent/account status, credit posture, and durable per-widget/per-IP daily limits, then returns one short-lived origin-locked omni:session token. The request body cannot select an organization, project, or Agent.
Headers
Path Parameters
^wdgt_[A-Za-z0-9_-]{32,64}$Response
Short-lived widget session
"omni.session"
The ephemeral session token. Use as the WebSocket subprotocol pyai-key.<token>. Short-lived and origin-locked; safe to hand to the browser.
"pyai_live_sess_a1B2…"
Token expiry, Unix epoch milliseconds.
The Omni realtime WebSocket URL to connect to.
"wss://api.pyai.com/v1/omni?format=pcm16&rate=24000"
Echoed back when supplied on the request.