Setup and Authentication - Saba-sports/OddsDirectAPI GitHub Wiki
In order to use the Odds Direct API, you need to pass the authorization method.
First, you will need to login to get the JWT token through /login API, and then every time when a client sends a request, the token need to be carried with the request. If the token has expired, you can request /refreshToken to get a new JWT token. To be clear, the /login and /refreshToken cannot be accessed directly from the end-user. It needs to be asked through your backend service.
- Anonymous login is also provided and returns delayed odds. For details, please contact the technical manager.
How to use JWT token
JWT needs to be included in the HTTP headers of every request to the API:
Authorization: Bearer JWT_Token
(Replace "JWT_Token" with the token value you have received from Login API or RefreshToken API .)