Skip to main content
Call POST /v1/sessions from your server with a key that has sessions:create. Supply a fresh Idempotency-Key for each intended conversation; reuse it and the same body for retries.
Set the environment variables on your server and replace the example voice UUID with one available to your organization. Keep the attempt ID stable if you retry.

Optional tool selection

Add this to the request body to select a registered connection and named tools:
Use your actual connection UUID and discovered tool names. Select only the tools the conversation needs. The fragment above extends the request; voice_id is still required.

Response

A successful request returns 201 and a session containing:
This is an illustrative response; use the returned URL and token. Check that a token is present before connecting. Save id for status checks, token refresh, and ending the session.