401-Authorization

Hello. We have problems with authorization in the API. How can we solve this problem?

We have previously used AeroApi2 and now we have started AeroApi4. Could you send an example of a valid request?

We send a request -" https://aeroapi.flightaware.com/aeroapi/alerts?x-apikey=XXXXXXXXXXXXXp6aT" and get an error response - {“title”: “Invalid API key”, “reason”: “INVALID_API_KEY”, “detail”: “Provided API key is not valid”, “status”: 401}

You should set the x-apikey value as a header in your request, not as part of the URI.

There are some example apps at GitHub - flightaware/aeroapps: Getting started with FlightAware AeroAPI