Mint a short-lived ws_token for browser/mobile websocket auth
Mint a WebSocket Token
Mint a short-lived token used to authenticate WebSocket connections.
POST
Mint a short-lived ws_token for browser/mobile websocket auth
Overview
Use this endpoint to mint a short-lived token for WebSocket authentication. Tokens are scoped (merchant or commerce) and can be issued with a TTL.
Authentication
- Server auth:
x-api-key(merchant) orx-commerce-api-key(commerce)
Request
SDK
cURL
Response
Errors
400invalid scope/ttl (or scope mismatch for the provided API key type)401invalid API key
Examples
Connect to merchant events with the minted token:Authorizations
API key for server-to-server operations (scope=merchant or commerce)
Body
application/json

