> For the complete documentation index, see [llms.txt](https://docs.apono.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.apono.io/api-reference/api-overview/api-authentication.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.apono.io/api-reference/api-overview/api-authentication.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
