> For the complete documentation index, see [llms.txt](https://docs.duplocloud.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.duplocloud.com/docs/advanced-topics/access-control/user-tokens.md). Agents can also search and read this documentation through its [MCP server](https://docs.duplocloud.com/docs/~gitbook/mcp).

# User Tokens

An API token lets an external application, script, or CI/CD pipeline authenticate with the DuploCloud AI Suite as you. Each user creates and manages their own tokens on their **Profile** page. Administrators can see every user's tokens, and revoke or delete them, from the **User Tokens** tab in Access Control.

***

## Prerequisites

* An authenticated user account (any role can create its own tokens)
* The **Administrator** role to view all users' tokens under **AI Admin → Access Control → User Tokens**

***

## View All Tokens (Administrators)

Go to **AI Admin → Access Control** and click the **User Tokens** tab. The cards at the top summarize every issued token: how many there are and their status, which users own them, how many active tokens never expire, and when a token was last used. The table lists each token's name, the last four characters of its value, its owner, when it was created and last used, when it expires, and its status (**Active**, **Expired**, or **Revoked**).

![User Tokens tab](https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2Fgit-blob-f54ca6d16cccf4f6a8c40f29c52d24398b90b208%2Fuser-tokens-step-01-user-tokens-tab.png?alt=media)

Click the **⋮** menu on a row to **Revoke** an active token or **Delete** one that is revoked or expired. Tokens can't be created here: each user creates their own from their Profile page.

{% hint style="info" %}
The **User Tokens** tab appears only in standalone AI Suite deployments. When the AI Suite runs integrated with the DuploCloud platform, the platform issues API tokens instead.
{% endhint %}

***

## Create an API Token

### Step 1 — Open your Profile

Click your name at the bottom of the left-hand sidebar, then click **Profile**.

![Account menu with Profile highlighted](https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2Fgit-blob-06501dc5f9301749c0c89d9bdd24f925443b4a2c%2Fuser-tokens-step-02-account-menu.png?alt=media)

The Profile page shows your user info and, at the bottom, the **API Tokens** table with your own tokens.

![Profile page](https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2Fgit-blob-1ad34143fb78765dd0718cc5bb6143bcab947171%2Fuser-tokens-step-03-profile-page.png?alt=media)

### Step 2 — Click Create Token

In the **API Tokens** section, click **Create Token**. The **Create API Token** dialog opens with two fields: **Token Name** and **Expiry Date**.

![Create API Token dialog](https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2Fgit-blob-2191474cc8a8d4024f32b57884509ea349c17c87%2Fuser-tokens-step-04-create-token-modal.png?alt=media)

### Step 3 — Enter a Token Name

Enter a name that describes what the token is for, such as the pipeline or integration that will use it. The name is required and must be unique among your tokens.

![Token name filled](https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2Fgit-blob-ec66f5efb1282fd4ce015a9cb6f12262e31aeeb0%2Fuser-tokens-step-05-name-filled.png?alt=media)

### Step 4 — Set the Expiry Date

Pick an expiry date from the date picker. It must be later than today.

If you leave the date blank, the token expires after the default period (365 days unless your administrator has changed it). The dialog shows the resulting date next to the field label.

![Expiry date set](https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2Fgit-blob-4615189507d259d702ddc29d4a29e340936e65d2%2Fuser-tokens-step-06-expiry-set.png?alt=media)

### Step 5 — Click Create

Review the name and expiry date, then click **Create**.

![Ready to create](https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2Fgit-blob-9a26ff0bb03dbaf8c48959d26347df45b200d562%2Fuser-tokens-step-07-ready-to-create.png?alt=media)

### Step 6 — Copy the Token

The **Token Created** dialog shows the full token value. **Copy it now**: it is shown only once and can't be retrieved later.

Click **Copy** to copy it to your clipboard, store it somewhere secure, then click **Close**.

![Token Created dialog](https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2Fgit-blob-8a094e84695e0987f12e3d38caa5a20a5aa51eda%2Fuser-tokens-step-08-token-created.png?alt=media)

The new token appears in your **API Tokens** table with **Active** status and the expiry date you set. The **Token** column shows only its last four characters.

![New token in the API Tokens table](https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2Fgit-blob-604343cf431ee60c6d84c0197191e479db2ef62b%2Fuser-tokens-step-09-final-list.png?alt=media)

***

## Revoke or Delete a Token

On your Profile page, click **Revoke** next to an active token to stop it working immediately. Once a token is revoked or has expired, its button changes to **Delete**, which removes it from the list permanently.

{% hint style="info" %}
Each user can have up to 10 tokens at a time that haven't been revoked. Expired tokens count toward this limit until you delete them, so revoke or delete tokens you no longer use to free up a slot.
{% 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 by asking a question.

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

```
GET https://docs.duplocloud.com/docs/advanced-topics/access-control/user-tokens.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.
