> For the complete documentation index, see [llms.txt](https://docs.platform.softwareone.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.platform.softwareone.com/~/changes/348/developer-resources/rest-api/accounts-api/api-tokens.md).

# API Token

The API Token object represents a user authentication token within the platform.&#x20;

This object contains the following attributes:

<table data-full-width="false"><thead><tr><th width="145">Field Name</th><th width="139">Data Type</th><th>Description</th></tr></thead><tbody><tr><td><code>id</code></td><td>string</td><td><p>The primary identifier for the token.</p><p>Example: TKN-1671-0642</p></td></tr><tr><td><code>href</code></td><td>string</td><td><p>The relative reference to the object in the API.</p><p>Example: /v1/accounts/accounts/ACC-1671-0642/tokens/TKN-4134-7330</p></td></tr><tr><td><code>name</code></td><td>string</td><td><p>The name of the token.</p><p>Example: Robot</p></td></tr><tr><td><code>description</code></td><td>string</td><td><p>A description of the token.</p><p>Example: Test token</p></td></tr><tr><td><code>status</code></td><td>string</td><td>The token's status. Allowed values: <code>active</code>, <code>disabled</code>, or  <code>deleted</code>. </td></tr><tr><td><code>modules</code></td><td><a href="https://docs.platform.softwareone.com/~/changes/348/developer-resources/rest-api/accounts-api/module.md#module-object">module</a></td><td>Module validation when creating API Token.</td></tr><tr><td><code>account</code></td><td><a href="https://docs.platform.softwareone.com/~/changes/348/developer-resources/rest-api/accounts-api/account.md#account-object">account</a></td><td><p>The account under which the token has been defined.</p><p>Example:</p><pre class="language-json" data-overflow="wrap" data-line-numbers><code class="lang-json">{
  "id": "ACC-123-123",
  "name": "Microsoft"
}
</code></pre></td></tr><tr><td><code>token</code></td><td>string</td><td>The token's authentication code.</td></tr></tbody></table>

## Example response

{% code lineNumbers="true" %}

```json
{
    "id": "TKN-4134-7330",
    "name": "Name",
    "description": "Description",
    "icon": "",
    "status": "Active",
    "modules": [
        {
            "id": "MOD-1756-1452"
        },
        {
            "id": "MOD-9042-8216"
        }
    ],
    "token": "CODE"
}
```

{% endcode %}


---

# 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.platform.softwareone.com/~/changes/348/developer-resources/rest-api/accounts-api/api-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.
