# Token Generation

Datafy uses a security token to identify communication from the agents installed on your machines, and to associate it with your account. The token is secret, and cannot be accessed again after it is generated.

{% hint style="info" %}
The token is required for the [Datafy agent installation](https://docs.datafy.io/set-up-and-installation/datafy-installation/installation).
{% endhint %}

## Creating a New Token

{% hint style="info" %}
Tokens are associated with a specific Datafy app account, which is associated with a single AWS account. A new token should be generated from the relevant Datafy app account for every AWS account Datafy is installed on.
{% endhint %}

1. Open the account menu at the top right corner of the Datafy app
2. Open the **Admin Portal**
3. Navigate to the **API Tokens** section in the sidebar
4. Select **Generate Token**
5. Configure the token:
   * Give it a meaningful description, like `<your-company>-datafy-token`.
   * Set the role to **Admin**
   * Set expiration date to `never`
6. Save the generated token in a secure manner, and use it when [installing the Datafy agent](https://docs.datafy.io/set-up-and-installation/datafy-installation/installation)

{% hint style="warning" %}
Make sure to save tokens in a secure manner, so they are accessible for future installations in the same account
{% endhint %}
