authorize request on the WebSocket connection.
Authorization is required once per connection. After a successful authorize response, the connection can subscribe to any private channel without re-authorizing.
Step 1: Get a WebSocket token
CallPOST /api/v4/profile/websocket_token to obtain a token. Sign the request using the standard HMAC-SHA512 authentication process — authentication is required for this endpoint.
Rate limit: 10 requests per 60 seconds.
websocket_token value is used as the credential in the next step. Tokens are short-lived — request a fresh token before each new WebSocket connection.
See Get WebSocket Token for the full endpoint reference.
Step 2: Authorize the connection
After establishing the WebSocket connection, send anauthorize request before subscribing to any private channel.
Request:
Success response:
"status": "success", subscribe to any Account Stream channel without further authorization.
Error handling
If authorization fails, theerror field contains a non-null object:
Related resources
- Authorize channel — AsyncAPI spec for the
authorizemethod - Account Streams — All private channels requiring authorization
- REST API Authentication — How to sign the token request
- Get WebSocket Token — REST endpoint reference