# Create Access Token - New UI

To use the JFrog Connect API v2, you need an access token. There are two types of tokens, described below, and you can use either one for the API.

{% hint style="success" %}
**Important**: Use this page only if you have the new web UI. If you have the old UI, use [Create Access Token](https://docs.connect.jfrog.io/developers/api-reference/create-access-token) for the old UI.
{% endhint %}

## **User Token**

The user-scoped token provides access according to the user role (admin or non-admin) defined for the user in the JFrog Platform. If the user is a non-admin role, the token has access according to permissions defined for the user in the User Permissions page in Connect. Only an administrator user can generate a user token.

The user token is created in JFrog Platform and valid in both JFrog Platform and Connect.

To generate a user token, refer to the [Access Tokens](https://jfrog.com/help/r/jfrog-platform-administration-documentation/access-tokens) page.&#x20;

## **Device Details Token**

This token, also known as a *resource-scoped token* or a *custom token*, has permissions that are customized for a specific purpose. For example, the token allows access by any Connect user, but allows access only to certain resources (e.g., a device or a project) and functions (e.g., read or write), and not to others. This increases the system security by enabling you to construct a token that is very specific to the permissions allowed.

The Device Details Token can be created only in Connect and only by an [administrator](https://docs.connect.jfrog.io/administration/settings/user-management) user. The token is valid only in Connect. Once you have created the token, it is managed in JFrog Platform where all of your tokens are managed.

{% hint style="success" %}
**Tip**: All of your tokens are managed in JFrog Platform.
{% endhint %}

## Create Device Details Token

To create a device details token, do the following:

1. Go to General Settings in the left navigation bar and to the Account tab.
2. Under Access Token, click **Device Details Token**. The Generate Device Details Token panel appears on the right.

<div align="left"><figure><img src="https://1862246491-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRPSTjDOh8m1HIptqGtC4%2Fuploads%2FMYpncGQupXbnSvTHiJNC%2Fcreate-access-token-nui-01.png?alt=media&#x26;token=f43bb649-0067-4449-96f3-c2f5c6127a9f" alt="" width="563"><figcaption></figcaption></figure></div>

3. Enter a **Description** and an **Expiration Date** for the new token.
4. Under Permissions, choose a **Target Entity**:&#x20;
   * **Fleet**: From the dropdown list, choose the fleet the token will have access to.
   * **Device**: From the dropdown list, choose the device (device name) the token will have access to.

<div align="left"><figure><img src="https://1862246491-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRPSTjDOh8m1HIptqGtC4%2Fuploads%2FjDOewEhOipzCMcJqPEXW%2Fcreate-access-token-nui-02.png?alt=media&#x26;token=ddf69432-9b75-48bf-9978-21e2b95509f9" alt="" width="375"><figcaption></figcaption></figure></div>

3. Choose the **Permission Type**, e.g., Read, Write, or Delete. You can choose one or multiple permission types.
4. Generate the token and save it to the clipboard.

## Generated Token

After you generate the new access token, it will be displayed.&#x20;

{% hint style="info" %}
**Important**:&#x20;

* For security reasons, the new token generated will not be stored. Ensure that you copy the token and keep it in a safe place. Once you close the token display window, it will not be available again.
* Do not expose the token in your API request tool. It is highly recommended to use an API tool that handles the token securely (for example, it uses a variable for your token), and not to expose the token directly.
  {% endhint %}

## What’s Next?

Learn about the [Connect API v2](https://docs.connect.jfrog.io/developers/api-reference/connect-api-reference) and the details of all the API requests you can use.
