Endpoint
| Method | Path | Description |
|---|---|---|
POST | /v1/mic-session | Create a mic session against an agent |
Create a session
Request fields
| Field | Type | Required | Description |
|---|---|---|---|
agent_id | integer | yes | Agent id in this org |
Response
| Field | Type | Description |
|---|---|---|
call_id | integer | Call id — the session appears in Call history with direction="mic" |
token | string | Short-lived LiveKit JWT |
room_name | string | LiveKit room |
server_url | string | LiveKit WebSocket URL — pass to the Web SDK |
Connecting from the browser
Use the LiveKit Web SDK to join the room with the returned token. The agent joins the room from Core’s side and you publish your microphone as the local participant.Errors
| Status | Condition |
|---|---|
400 | agent_id is required |
402 | Insufficient balance |
404 | Agent not found |
502 | LiveKit room creation failed |
Mic sessions count as calls for billing purposes. The session is
billed as a regular voice call using the agent’s
product tier.Related
Agents
Configure the agent you’ll talk to.
Calls
Inspect mic-session call logs and transcripts.
Web Widget
Embed a production-ready mic widget on your own site.