Wavix Embeddable
Create a widget token
Changed onCreates a Wavix Embeddable widget token that authenticates a browser-based softphone session. The token expires after ttl seconds.
post/v2/webrtc/tokens
Request
- Base URLhttps://api.wavix.com
- URLhttps://api.wavix.com/v2/webrtc/tokens
- AuthHTTP bearer
Request body
Example request
{
"sip_trunk": "my-sip-trunk",
"payload": {},
"ttl": 3600
}Response
Returns the created widget token.
Example response
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"sip_trunk": "my-sip-trunk",
"payload": {},
"ttl": 3600
}Changes
- info
the request property
became optional - info
the
request property default value3600was added
- info
- info
added the optional property
to the response with the status
- info