Chat Tokens
Create chat token
Generate a Chat Token to be used to authenticate clients to the Chat Service.
Permissions
The API token used to authenticate must have the following scope(s) enabled to make a successful request: Chat.
Learn more about API scopes.
post/api/chat/tokens
Request body
Example request
{
"ttl": 60,
"channels": {
"channel1": {
"read": true,
"write": true
},
"channel2": {
"read": true,
"write": false
}
},
"member_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"state": {
"key": "value",
"key2": "value2"
}
}Response
The request has succeeded.
Example response
{
"token": "eyJ0eXAiOiJWUlQiLCJhbGciOiJIUzUxMiJ9.eyJpYXQiOjE2MjIxMjAxMjMsI...wMCwicnNlIjo5MDB9-BqG-DqC5LhpsdMWEFjhVkTBpQ"
}