Create a voice token
Changed onMints a short-lived token for one of your app users. Call this from your backend and return the token to your app, which passes it to the voice client SDK to register. The identity is bound to the given number, or to your default app-call number when omitted, and calls placed by that identity are routed through the bound number. Minting again re-binds the identity, so an identity can move between numbers.
Request
- Base URLhttps://api.sent.dm
- URLhttps://api.sent.dm/v3/voice/tokens
- Auth
- API key in header x-api-key
- or HTTP bearer
Headers
Unique key to ensure idempotent request processing. Must be 1-255 alphanumeric characters, hyphens, or underscores. Responses are cached for 24 hours per key per customer.
Profile UUID to scope the request to a child profile. Only organization API keys can use this header. The profile must belong to the calling organization.
Request body
Example request
{
"identity": "agent-42",
"number": "+12025550123",
"ttl": 600,
"sandbox": false
}Response
Token minted and identity bound to the number
Changes
- info
endpoint added
- info