Skip to content
Start here

Tokens

Rotate a token
client.moq.relays.tokens.rotate(stringrelayId, TokenRotateParams { account_id, type } params, RequestOptionsoptions?): TokenRotateResponse { token, type }
POST/accounts/{account_id}/moq/relays/{relay_id}/tokens/rotate
ModelsExpand Collapse
TokenRotateResponse { token, type }
token: string

New token value (shown once). Treat as sensitive.

type: "publish_subscribe" | "subscribe"
One of the following:
"publish_subscribe"
"subscribe"