> 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 %}


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.acecloud.ai/knowledge-base/ai-hub/how-to-manage-access-tokens.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
