Generate a new PubSub Token
Generate a PubSub Token to be used to authenticate clients to the PubSub Service.
Permissions
The API token must include the following scopes: PubSub.
Request Body — REQUIRED |
---|
ttl integer — REQUIREDThe maximum time, in minutes, that the access token will be valid for. Between 1 and 43,200 (30 days). |
channels object — REQUIREDEach channel with |
member_id stringThe unique identifier of the member. Up to 250 characters. If not specified, a random UUID will be generated. |
state objectAn arbitrary JSON object available to store stateful application information in. Must be valid JSON and have a maximum size of 2,000 characters. |
Responses | ||||||
---|---|---|---|---|---|---|
200 OK
| ||||||
422 Unprocessable Entity. You may have specified invalid parameters.
|