# Authentication

All endpoints in the Forest Admin API require requests to be authenticated with an application token.

## Generate an application token

In the application, navigate to [your account settings](https://app.forestadmin.com/user-settings) and generate a new application token.

{% hint style="warning" %}
If your project is using SSO, the application token needs to be generated while being logged-in with SSO.
{% endhint %}

## Authenticate calls to the API

The generated token must be used in an `Authorization` header as a `Bearer` token. The resulting HTTP call must contain the following header:

```
Authorization: Bearer [GENERATED_TOKEN]
```


---

# 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.forestadmin.com/public-api/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.
