# API Authentication

### Generate an API Token

1. Log in to the[ Apono App](https://app.apono.io/) or [User Portal](https://portal.apono.io/my-access).
2. Click the **Profile** icon in the bottom left corner.
3. Click **Settings** and then **Personal API Token** to view your API tokens.

{% hint style="success" %}
You can also access the API tokens page directly via the following links, depending on your platform: [Admin](https://app.apono.io/personal-api-tokens) or [Portal](https://portal.apono.io/api-tokens).
{% endhint %}

4. Click the **Add API Token** button to generate a new token.
5. Give the new token a name and click Generate New Token.

<div align="left"><figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXc8_pfmV1nQzNso46EB-FCyyiZMVgRDh2dcJczko5uxKd2F5hApHnhY42PDyOzEJzT6fXY0AZximFkuuuYveZTsDB7Wihuq8qHXT7TxWD3_Uj9aALZhodC5KwQKjMZTCbFBvaoFbA?key=ROd2bNhCFJnGd8lEJEvmCA" alt=""><figcaption></figcaption></figure></div>

{% hint style="warning" %}
Record Your API Tokens in a Safe Place. This is the only time that the unencrypted token is displayed.
{% endhint %}

### Use the API Token

When using any Apono API endpoint, you will be asked to authenticate with one of your tokens. Add this to your request header:

```
--header 'authorization: Bearer <your-api-token>'
```

If you are accessing endpoints under the `/user/` path, the end user must generate the authenticated token. These endpoints are designed for actions that reflect the permissions and context of the individual user making the request.

To enable API token generation for end users, please contact Apono Support at <support@apono.io>.

This capability must be explicitly enabled for your organization before end users can generate their tokens.


---

# 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.apono.io/api-reference/api-overview/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.
