An API Key is required to connect to the WebSocket for real-time updates and to register or cancel a heartbeat. Otherwise, you do NOT need an API Key to use the SX Bet API — all standard requests in this document can be made without one. A baseline rate limiter applies to all requests regardless of API key.Documentation Index
Fetch the complete documentation index at: https://docs.sx.bet/llms.txt
Use this file to discover all available pages before exploring further.
Generating API Key
- Visit sx.bet and register/login to your account. You can connect your MetaMask wallet, or login using your Fortmatic email address.
- If using MetaMask,
signthe Signature Request. - Click the
Accounttab on the top navigation bar. - Click the
Overviewtab on the account navigation bar. - You will see an
API Credentialscard. ClickGENERATE API KEY NOW. An API Key will be displayed. - The API Key generated will not be displayed again, so please copy and save this key for future use.
If you lose your key, you can generate a new one by following the same steps. Any previous keys used will be unauthorized if you generate a new key.
Usage
X-Api-Key header. The above fetches a realtime token used to authenticate WebSocket connections.
Once your API Key is generated (see above), you must add it as a HTTP Header with the name: X-Api-Key.