Mint a subscriber token
Realtime
Mint a subscriber token
Mints a short-lived client token scoped to channels and capabilities, for use by browser subscribers connecting over the realtime WebSocket. Requires scope: realtime:tokens
POST
Mint a subscriber token
Authorizations
Voyant Cloud API token, passed as Authorization: Bearer <token>. Each token carries a fixed set of scopes; an operation rejects tokens missing its required scope.
Body
application/json
Stable subscriber identity; surfaces as the presence clientId.
Example:
"user_42"
Capability grants keyed by channel name or trailing-wildcard pattern (e.g. admin:*).
Example:
{
"orders:org_123": ["subscribe", "presence"]
}Token lifetime in seconds. Default 3600, max 86400.
Required range:
x <= 86400