Authentication
You can authenticate in two ways: an API key, or a JWT from the OAuth password grant. Pick one. Both go in the request headers.
API key
Send your key in the x-api-key header on every request.
Keep your key on the server. Never ship it in a browser or a mobile app, where anyone could read it and make requests as you.
JWT (OAuth password grant)
Ask the auth service for a token with the password grant, then send it as a bearer token.
The response gives you an access token and a refresh token. Send the access token on each API call:
The access token expires after about two hours. Before it does, use the refresh token to get a new one instead of sending the password again.
The test auth service lives at https://test-auth.worldticket.net/auth. For the exact token payload and client setup, see the GO7 docs.

