> For the complete documentation index, see [llms.txt](https://docs.acecloud.ai/knowledge-base/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.acecloud.ai/knowledge-base/ai-hub/how-to-manage-access-tokens.md).

# How to Manage Access Tokens

**What are Access Tokens?**

Access tokens are API credentials that allow you to securely authenticate programmatic requests to your inference endpoints. Instead of using your account credentials directly, you generate a scoped token that grants access only to the specific endpoints you choose. This ensures that your deployed models are only accessible to authorized clients and applications.

By default, tokens expire after **30 days**. You can set a custom expiration date. Once a token is deleted, any API requests using it will immediately fail.

## a. How to Create an Access Token?

{% stepper %}
{% step %}

### Log in to Your Account

{% endstep %}

{% step %}

### Open Access Tokens

From the left-hand menu, select **AI HUB** and then choose **Access Tokens**.

<figure><img src="/files/x8Y2Nq1Ldlu8dr10P3KN" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Create the Access Token

Click on **Create Access Token**.

<figure><img src="/files/nb8vDcE81Z8tJmgJFa1A" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Fill in the Token Details

<figure><img src="/files/SKLHDpiI5nekz4ik4htc" alt=""><figcaption></figcaption></figure>

| **Field**             | **Description**                                                                              |
| --------------------- | -------------------------------------------------------------------------------------------- |
| Token Name            | A unique name for your token. Use lowercase letters, numbers, and hyphens only.              |
| Accessible Endpoints  | Select one or more endpoints this token is allowed to access.                                |
| Expires At (Optional) | Set a custom expiration date and time for the token. Tokens expire after 30 days by default. |
| {% endstep %}         |                                                                                              |

{% step %}

### Create

Click **Create** to generate the token.

<figure><img src="/files/rjy6AIFm4ejB6BlJrWYG" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Copy and store your token immediately after creation. For security reasons, it will not be shown again.
{% endhint %}
{% endstep %}
{% endstepper %}

## b. How to Delete an Access Token?

{% stepper %}
{% step %}

### Click the **Actions** menu next to the token you want to delete and select **Delete Access Token**.

<figure><img src="/files/xyyq5VIYeS9QkxGvivjj" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### A confirmation dialog will appear. Click **Delete Access Token** to confirm.

<figure><img src="/files/0LoTFK9HhgJX35e3UdXG" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

{% hint style="danger" %}
Deleting a token is permanent. Any API requests using this token will immediately fail.
{% endhint %}
