# 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="https://3637178088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvMP8keAdyp2axoLILtL5%2Fuploads%2Fgit-blob-217553b209abc7d1f00f01a263251e8c524332d1%2FAPI%20token%201.png?alt=media" 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="https://3637178088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvMP8keAdyp2axoLILtL5%2Fuploads%2Fgit-blob-f14a6b0d34bd83f3bd056c0a497fd98f9dd7b748%2Fapitokenform.png?alt=media" 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="https://3637178088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvMP8keAdyp2axoLILtL5%2Fuploads%2Fgit-blob-d2f12007e24a46b482b092690f2d7addaaf58348%2Fmy%20token.png?alt=media" 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="https://3637178088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvMP8keAdyp2axoLILtL5%2Fuploads%2Fgit-blob-204656c780ea556b104b91109be4d974c4f0ba67%2Ftoken%20done.png?alt=media" alt=""><figcaption></figcaption></figure>
