Register WebSocket credential¶
POST /api/user/register-websocket
Create - or return the existing - persistent WebSocket credential for your account. The response contains the public WebSocket URL and an API key to present when connecting; once connected you receive a TxNotification message for each transaction status change. The credential is stable across calls. Authenticate with either an api-key header or an Authorization Bearer JWT. No request body is required.
Authentication
Send your API key in the api-key header.
Responses
| Status | Description |
|---|---|
200 |
The WebSocket credential. |
401 |
Authentication failed. Plausible codes: AUTH_001, AUTH_002, AUTH_004, AUTH_005. |
500 |
Server error. Plausible codes: SYSTEM_001. |