Example: Transcription token

The token in this example allows the user "beef" to begin a speech-to-text transcription for the channel "testchannel".

The token expiration time is September 17, 2020 at 1:30 PM UTC.

The token signing key is "secret!" (not including quotes).

Header

{}

Payload

Note: Spacing has been added to this code for demonstration purposes. You can also list claims in any order.

{
    "vxi":542680,
    "f":"sip:.blindmelon-AppName-dev.beef.@tla.vivox.com",
    "iss":"blindmelon-AppName-dev",
    "vxa":"trxn",
    "t":"sip:confctl-g-blindmelon-AppName-dev.testchannel@tla.vivox.com",
    "exp":1600349400
}

Access token

e30.eyJ2eGkiOjU0MjY4MCwiZiI6InNpcDouYmxpbmRtZWxvbi1BcHBOYW1lLWRldi5iZWVmLkB0bGEudml2b3guY29tIiwiaXNzIjoiYmxpbmRtZWxvbi1BcHBOYW1lLWRldiIsInZ4YSI6InRyeG4iLCJ0Ijoic2lwOmNvbmZjdGwtZy1ibGluZG1lbG9uLUFwcE5hbWUtZGV2LnRlc3RjaGFubmVsQHRsYS52aXZveC5jb20iLCJleHAiOjE2MDAzNDk0MDB9.-A0w_fcPCZaG5NMksnbSrGSVXNNt25YqlRjcKcLkGnA