Get a LiveKit token to start a conversation with an agent.
This endpoint generates a WebRTC token for real-time communication with a specific agent. Similar to ElevenLabs /v1/convai/conversation/token endpoint.
Args: agent_id: The ID of the agent to connect to participant_name: Optional custom participant name user_id: User ID from authentication (automatically injected)
Returns: TokenResponse containing only the JWT token
Raises: HTTPException: 404 if agent not found or access denied HTTPException: 500 if token generation fails
API key for authentication
The id of the agent
Optional participant name. If not provided, user ID will be used
Successful Response
Response model for conversation token endpoint