Skip to main content
The mode field in POST /v1/sessions determines which interaction patterns are available for the life of that session. You cannot change mode mid-session — open a new session if you need to switch.

Text mode

The default mode. Suitable for chat interfaces, kiosk touchscreens, and any channel where you exchange typed messages.Available endpoint:
  • GET {agent_url}/v1/sessions/{sid}/ws — WebSocket: send input, receive the AI’s response. This is the only way to exchange conversation turns in text mode — there is no REST message endpoint. See WebSocket streaming.
When to use:
  • Chat widgets embedded in websites or apps.
  • Kiosk touchscreens where users type or tap.
  • Server-to-server integrations.
  • Any context where audio is unavailable or undesirable.
Browsers must first call POST /v1/sessions/{sid}/ws-ticket and pass the result as ?ticket= on the WS upgrade — browsers cannot set an Authorization header on a WebSocket handshake. Non-browser clients send the Bearer token directly.

Mode comparison