# Authentication

In order to access Authenticated endpoints and to bypass the limitations of the rate-limiting imposed on Free Endpoints, calls need to be authenticated using an [API Token](/authentication/api-tokens.md).

Before an [API Token](/authentication/api-tokens.md) can be issued, a [User](/authentication/users.md) needs to be created, either via the web frontend, or via the API.

Authentication is obtained by passing the [API Token](/authentication/api-tokens.md) as `authorization` Header with type `Bearer`.

```
curl --request GET \
  --url 'https://testapi.aviowiki.com/airports/search?query=London' \
  --header 'Authorization: Bearer 8320d910-ec23-46ea-beda-a9015ea05871'
```

{% hint style="info" %}
Whenever in this documentation we demonstrate API calls using cURL that require authentication, we will use randomly generated API Tokens that do not correspond to any user in our system and will return an error `403` if used against our system.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.aviowiki.com/authentication.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
