Sign in

Create a call token

View as Markdown
POST/call/tokens

Step 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

RequiredContent-TypeShape
Yesapplication/jsonCallTokenRequest
NameTypeRequiredDescription
agent_idstringYesAt least 1 characters.
channelenum(sip | web)NoDefault "web".

Responses

StatusDescriptionContent-TypeShape
200Successful Responseapplication/jsonCallTokenResponse
422Validation Errorapplication/jsonHTTPValidationError