Authentication
As a first step of the integration, HUDstats will provide a username and password via a secure channel. These credentials are used to obtain a JWT token which is needed for all API calls.
Authentication API:
HTTP POST https://api.hudstats.com/token
curl -X POST -H "Content-Type: application/json" -d '{"username": "user", "password": "1234"}' https://api.hudstats.com/token
eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyIjoidXNlciIsImV4cCI6MTYwMjE2MzY4M30.ydn5qW6_PxPeTtWdXmCDGEpYqksvlD7e5m1wLK7WbL4
The token expires in 24 hours and needs to be renewed using the same call.