# Authentication

There are three ways you can authenticate on the mediarithmics API:

* Long-term API tokens
* Signature authentication

Check our guide on [Authentication](https://developer.mediarithmics.io/resources/api-overview/authentication) for a complete view.

In our example we will generate and use a long-term API token in the UI:

* connect to the [mediarithmics platform](https://navigator.mediarithmics.com/)
* navigate to settings
* then My Account > API Tokens
* click on the "New API Token" to generate a long-term API token

We will now use this token in the `Authorization` header of all our requests to the mediarithmics API.


---

# 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://developer.mediarithmics.io/resources/your-first-integration/make-the-first-bulk-import/api-basics/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.
