create_token
create_token
Create a Chat authentication token.
Request
ttl
The maximum time, in minutes, that the access token will be valid for. Between 1 and 43,200 (30 days).
channels
User-defined channel names with read/write permissions. Max of 500 channels. Channel names cannot start with the reserved prefix `sw_` and can be up to 250 characters.
member_id
The unique identifier of the member. Up to 250 characters. If not specified, a random UUID will be generated.
state
An arbitrary JSON object available to store stateful application information in. Must be valid JSON and have a maximum size of 2,000 characters.
Response
token
The generated Chat Token.
Response Example
Response