provider Agents Platform GET /v1/convai/conversation/token
@utdk/elevenlabs /v1/convai/conversation/token
Get Webrtc Token
Get a WebRTC session token for real-time communication.
agent_id query required
Agent id (agent_…) or speech engine external id (seng_), resolved to the same underlying resource.
string
participant_name query
Optional custom participant name. If not provided, user ID will be used
branch_id query
The ID of the branch to use
environment query
The environment to use for resolving environment variables (e.g. 'production', 'staging'). Defaults to 'production'.
xi-api-key header
Your API key. This is required by most endpoints to access our API programmatically. You can view your xi-api-key using the 'Profile' tab on the website.

Try it

Authentication
Configure credentials for ElevenLabs API Documentation
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

getLivekitToken
GET/v1/convai/conversation/token
Get a WebRTC session token for real-time communication.

required

Agent id (agent_…) or speech engine external id (seng_), resolved to the same underlying resource.

Optional custom participant name. If not provided, user ID will be used

The ID of the branch to use

The environment to use for resolving environment variables (e.g. 'production', 'staging'). Defaults to 'production'.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import elevenlabs from '@utdk/elevenlabs';

await elevenlabs.getLivekitToken()