Start Voice Session
Initiates a real-time voice conversation with an agent.
Endpoint
Parameters
agent_id
string
Yes
Unique identifier of the agent to converse with
Authentication
Requires a valid API key or user authentication token.
Response
Returns connection details for establishing a voice session.
Response Format
Response Fields
room_name
string
Unique identifier for the agent room
room_url
string
WebSocket URL for the agent room connection
token
string
Authentication token for connecting to the room
Example Request
Example Response
Error Responses
401
Unauthorized - Invalid or missing API key
403
Forbidden - Not authorized to access this agent
404
Not Found - Agent with the specified ID does not exist
500
Internal Server Error
Notes
The session starts when the first user connects to the room.
The agent automatically joins the room when a user connects.
Voice sessions use WebRTC for real-time communication.
The connection token expires after a set period for security.
Only one user can connect to a voice session at a time.
Last updated