API Reference
Devices

Mint a WebRTC token for this device

POST
/v1/devices/token

Authenticated with the device secret. The PBX identity is taken from the device record — a caller-supplied name is ignored, so a device cannot mint a token that rings as a colleague. Tokens are short-lived (about an hour); refresh on launch and on returning to the foreground.

Authorization

deviceAuth
AuthorizationBearer <token>

A per-device secret issued by POST /v1/devices/enroll, presented as Authorization: Device <secret>.

A distinct scheme rather than another bearer flavour: the bearer namespace already carries workspace API keys and session JWTs, and a device secret authorises far less than either — it can mint a WebRTC token for its own identity and report presence, and nothing else.

In: header

Response Body

application/json

curl -X POST "https://example.com/v1/devices/token"
{  "token": "string",  "endpoint": "string",  "protocol": "string",  "clientName": "string",  "turnServer": {},  "expiresIn": 3600}
Empty
Empty