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

# API Tokens

The **API Tokens** section of the **Settings Page** allows admins to generate API tokens with granular access control settings. Admins can also review, edit and delete already existing API tokens.

API tokens allow client applications to access the Replex API.&#x20;

The following access controls can be configured for each API token:&#x20;

* Agent
* Api Key
* Billing
* Budget
* Cluster
* Custom Pricing
* Invitation
* Organization
* Recommendations
* Role
* Saml Integration
* Scopes
* Teams
* User

Granular permissions are provided for each access control category outlined above.

### Create API Token

To create a new API token, click on **+ Add API Token** in the top right of the **API Tokens** section.&#x20;

Name the API token and choose the access controls that you want to be a part of that token. Access controls can be turned on/off by clicking on the toggles under each **Access Control** heading.

![Create New API Token](/files/-MTujuhLLGcz0_FqjYe6)

Click save to create the new API token. This will create the new **API Token.**&#x20;

On the next pop-up screen, make sure you copy the newly created token by clicking on the copy symbol in front of the token text field.

{% hint style="info" %}
This is the only time the token can be copied. In case of loss you will need to create a new token.
{% endhint %}

### Edit or Remove API Tokens&#x20;

Admins can edit previously added **API Tokens** by clicking the edit icon in front of each token.

![Edit API Token](/files/-MTtuFetXC_Tou6fYlZV)

Previously added **API Tokens** can be deleted by clicking on the delete icon in front of each token.

### Using API Tokens

To use the token to access the API it must be sent as authorization header in every request.

Following a curl example request with the authorization header to get information about the organisation.

```
curl --location --request GET 'https://replex.replex.io/api/v1/organizations/:OrgID' \
--header 'Authorization: Api-Key <API-Token>'
```

In Postman this can be configured in the Authorization tab as follows.

![Postman API-Token configuration](/files/-MlG30z0mJ_KRigIPqpw)


---

# 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 dynamically by asking a question.

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

```
GET https://docs.replex.io/settings/api-tokens.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.
