authenticate needs this header:
POST /api/v1/flights/authenticate with your API user’s username and password. The response tells you how long it lasts:
Rules
- Cache the token and reuse it. Refresh it shortly before
expiresInseconds have passed. Don’t authenticate per request. authenticateallows 10 calls per minute per IP. Beyond that you get HTTP 429.- Any call can return HTTP 401 if the token expired or was revoked. Authenticate once more and retry that call.
- Token validity is checked with zero clock tolerance, so keep your servers on NTP.
- Store the password and tokens in a secret store. Never log them.

