Voice
Create Voice Session
Open a real-time voice session with an agent. Returns LiveKit connection credentials.
POST
Create voice session
Every endpoint on this page requires either a Clerk-issued JWT (
Authorization: Bearer <token>) or
an organization API key (x-api-key: pk_…). Anonymous calls return 401 Unauthorized. See
Authentication for the full setup.The agent must have
voiceEnabled: true and a voicePipelineMode set. See Create Agent for voice configuration details.Code examples
Connecting via LiveKit
Use thetoken and serverUrl from the response to connect with the LiveKit client SDK:
Node.js
Sample response
Authorizations
Create voice session