cURL
curl --request POST \ --url https://api-beta.pepay.io/api/v1/ws/token \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data ' { "scope": "merchant", "ttl_seconds": 60 } '
200
merchant
API key for server-to-server operations (scope=merchant or commerce)
commerce
60
Token minted
Standard ws_token mint response envelope.
true
Minted ws_token payload. Use data.token as token=<ws_token> when connecting to /ws/* streams.
data.token
token=<ws_token>
/ws/*
Show child attributes
Was this page helpful?