Endpoint
Request
| Field | Type | Required | Description |
|---|---|---|---|
agent_id | integer | Yes | ID of the agent to start a session with |
Examples
Response (201)
| Field | Type | Description |
|---|---|---|
call_id | integer | Unique call identifier for this mic session |
token | string | LiveKit access token for joining the room |
room_name | string | LiveKit room name |
server_url | string | LiveKit WebSocket server URL |
Error Responses
| Status | Description |
|---|---|
400 | Missing agent_id in request body |
402 | Insufficient account balance |
404 | Agent not found |
502 | Internal service error (e.g. failed to create LiveKit room) |