Creates a Wavix Embeddable widget token that authenticates a browser-based softphone session. The token expires after ttl seconds.
Wavix API key. Pass as Authorization: Bearer <api_key>. Keys support per-resource scopes (none / read / write). See Restricted keys and scopes.
Attributes for the new widget token.
Name of the SIP trunk the token authenticates against.
"my-sip-trunk"
Arbitrary client-defined data to associate with the token.
{}Time to live in seconds. Default 3600; null means no expiration.
x >= 13600
Returns the created widget token.
Signed JWT used by the Wavix embeddable widget to authenticate.
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
Unique identifier of the WebRTC token.
"550e8400-e29b-41d4-a716-446655440000"
Name of the SIP trunk the token authenticates against.
"my-sip-trunk"
Arbitrary client-defined data associated with the token.
{}Lifetime of the token, in seconds. null means the token does not expire.
3600