Create a call token
POST
/call/tokensStep one of a preview call: mint a single-use call token for one of your agents from your server, then open Realtime's WebSocket with it.
Auth
Authentication required.
Parameters
No parameters.
Request body
| Required | Content-Type | Shape |
|---|---|---|
| Yes | application/json | CallTokenRequest |
| Name | Type | Required | Description |
|---|---|---|---|
| agent_id | string | Yes | At least 1 characters. |
| channel | enum(sip | web) | No | Default "web". |
Responses
| Status | Description | Content-Type | Shape |
|---|---|---|---|
| 200 | Successful Response | application/json | CallTokenResponse |
| 422 | Validation Error | application/json | HTTPValidationError |