Skip to main content
POST
Mint a short-lived ws_token for browser/mobile websocket auth

Authorizations

x-api-key
string
header
required

API key for server-to-server operations (scope=merchant or commerce)

Body

application/json
scope
enum<string>
Available options:
merchant,
commerce
ttl_seconds
integer
Example:

60

Response

Token minted

Standard ws_token mint response envelope.

success
boolean
Example:

true

data
object

Minted ws_token payload. Use data.token as token=<ws_token> when connecting to /ws/* streams.