Example: Mute tokens
Examples of Mute tokens that allow muting individual users in a channel.
Read time 1 minuteLast updated 20 hours ago
- Signed in user muting other user in a channel##signed
- Admin user muting other user in a channel##admin
Signed in user muting other user in a channel
The token in this example allows the user "beef" to mute the user "jerky" in 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
{ "vxi":123456, "sub":"sip:.blindmelon-AppName-dev.jerky.@tla.vivox.com", "f":"sip:.blindmelon-AppName-dev.beef.@tla.vivox.com", "iss":"blindmelon-AppName-dev", "vxa":"mute", "t":"sip:confctl-g-blindmelon-AppName-dev.testchannel@tla.vivox.com", "exp":1600349400}
Access token
e30.eyJ2eGkiOjEyMzQ1Niwic3ViIjoic2lwOi5ibGluZG1lbG9uLUFwcE5hbWUtZGV2Lmplcmt5LkB0bGEudml2b3guY29tIiwiZiI6InNpcDouYmxpbmRtZWxvbi1BcHBOYW1lLWRldi5iZWVmLkB0bGEudml2b3guY29tIiwiaXNzIjoiYmxpbmRtZWxvbi1BcHBOYW1lLWRldiIsInZ4YSI6Im11dGUiLCJ0Ijoic2lwOmNvbmZjdGwtZy1ibGluZG1lbG9uLUFwcE5hbWUtZGV2LnRlc3RjaGFubmVsQHRsYS52aXZveC5jb20iLCJleHAiOjE2MDAzNDk0MDB9.vM9zkCXTORjgv8w7eiMHHHkc4DumTwR_-I06y4SnpHA
Admin user muting other user in a channel
The token in this example allows the user "blindmelon-AppName-dev-Admin" to mute the user "jerky" in 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
{ "vxi":654321, "sub":"sip:.blindmelon-AppName-dev.jerky.@tla.vivox.com", "f":"sip:blindmelon-AppName-dev-Admin@tla.vivox.com", "iss":"blindmelon-AppName-dev", "vxa":"mute", "t":"sip:confctl-g-blindmelon-AppName-dev.testchannel@tla.vivox.com", "exp":1600349400}
Access token
e30.eyJ2eGkiOjY1NDMyMSwic3ViIjoic2lwOi5ibGluZG1lbG9uLUFwcE5hbWUtZGV2Lmplcmt5LkB0bGEudml2b3guY29tIiwiZiI6InNpcDpibGluZG1lbG9uLUFwcE5hbWUtZGV2LUFkbWluQHRsYS52aXZveC5jb20iLCJpc3MiOiJibGluZG1lbG9uLUFwcE5hbWUtZGV2IiwidnhhIjoibXV0ZSIsInQiOiJzaXA6Y29uZmN0bC1nLWJsaW5kbWVsb24tQXBwTmFtZS1kZXYudGVzdGNoYW5uZWxAdGxhLnZpdm94LmNvbSIsImV4cCI6MTYwMDM0OTQwMH0.ix0mFGS1XDXCBXH044f6B2JxutExbH2hZjGqZAwoHH8