Skip to content

POST Generate access tokens for Agora RTM/RTC channels including related channel / user information

Generate access tokens for Agora RTM/RTC channels including related channel / user information

POSThttps://api.rooom.com/viewers/{viewerToken}/access-token
Try it out

Parameters

Path Parameters

NameTypeDescription
viewerTokenrequired
Example: _viewerToken_
stringViewer token.

Body

multipart/form-data
NameTypeDescription
tokenTyperequiredarrayToken type(s)
userTypeintegerUser-Type (1-9)
userIdstringUser-ID for renewal
channelSuffixstringSuffix for special communication channel (e.g. npc-id, max 64 alphanumeric chars plus underscore/hyphen)

Responses

200Success
400Bad Request
404Viewer not found
POST /viewers/{viewerToken}/access-token Generate access tokens for Agora RTM/RTC channels including related channel / user information viewerToken Viewer token. tokenType Token type(s) userType User-Type (1-9) userId User-ID for renewal channelSuffix Suffix for special communication channel (e.g. npc-id, max 64 alphanumeric chars plus underscore/hyphen)