# API Token Management

To access Logilica's data store and interact with the platform through its APIs, we support a token-based access model.

## API Token Generation

To generate and manage tokens navigate to **Settings -> API Tokens** and click on "**Generate New API Token**".

<figure><img src="/files/7BekEBa8ZpSyrxzRIQPd" alt=""><figcaption><p>Organisation Settings for API Token</p></figcaption></figure>

## Token Settings

In the token creation process, you need to define the following:

* a name for the token
* an expiration date, and
* a set of scopes.

<figure><img src="/files/C9lwO9Wff7AcVMWptdj3" alt="" width="375"><figcaption><p>Setting token scopes</p></figcaption></figure>

The scopes visible to you might depend on your access right. Please get in touch with your administrator if you cannot see the relevant scopes.

## Copy the Generated Token

Once you generate the token, ensure to copy and store it safely.

<figure><img src="/files/je10ZnwGztRJTy4wdBfF" alt="" width="388"><figcaption></figcaption></figure>

{% hint style="warning" %}
**Warning:** for security reasons, you cannot see the token key later.\
If you lose the key, you must generate a new token.
{% endhint %}

## Revoking Tokens

Once tokens have been generated, they can be revoked individually or in bulk.

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


---

# Agent Instructions: 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.logilica.com/advanced/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.
