> ## Documentation Index
> Fetch the complete documentation index at: https://docs.open-metadata.org/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Create a Personal Access Token | Official Documentation

> Create personal access tokens to authenticate API requests to OpenMetadata.

# How to Create a Personal Access Token

Personal Access Tokens (PATs) in OpenMetadata let you authenticate and interact with the OpenMetadata API securely. Follow the steps below to generate a new personal access token.

## Prerequisites

* You have a valid OpenMetadata user account.
* You have access to the OpenMetadata UI.

## Steps to Create a Personal Access Token

1. **Log in to the OpenMetadata UI**
   * Navigate to your OpenMetadata instance.
   * Enter your credentials to log in.

2. **Access your profile**
   * Click your profile icon in the top-right corner of the UI.
   * Select **View Profile** from the dropdown menu.

<img src="https://mintcdn.com/openmetadata/c9QhR_nQpYO3aimK/public/images/how-to-guides/user-guide-for-data-stewards/access-token1.png?fit=max&auto=format&n=c9QhR_nQpYO3aimK&q=85&s=2a73234ad6c519d236023021fb030e11" alt="Access your profile" width="1438" height="679" data-path="public/images/how-to-guides/user-guide-for-data-stewards/access-token1.png" />

3. **Open the Access Tokens tab**
   * In your profile page, click the **Access Tokens** tab.

<img src="https://mintcdn.com/openmetadata/c9QhR_nQpYO3aimK/public/images/how-to-guides/user-guide-for-data-stewards/access-token2.png?fit=max&auto=format&n=c9QhR_nQpYO3aimK&q=85&s=3bf95ac4768077c341ab50285381856d" alt="Open the Access Tokens tab" width="1438" height="679" data-path="public/images/how-to-guides/user-guide-for-data-stewards/access-token2.png" />

4. **Generate a new token**
   * Click **Generate New Token**.

<img src="https://mintcdn.com/openmetadata/c9QhR_nQpYO3aimK/public/images/how-to-guides/user-guide-for-data-stewards/access-token3.png?fit=max&auto=format&n=c9QhR_nQpYO3aimK&q=85&s=84be830a42970aa12ab40b4d46a9d37a" alt="Generate a new token" width="1438" height="679" data-path="public/images/how-to-guides/user-guide-for-data-stewards/access-token3.png" />

5. **Set token expiration**
   * Choose an expiration period for the token. Available options typically include:
     * 1 hour
     * 1 day
     * 7 days
     * 30 days
     * 60 days

<img src="https://mintcdn.com/openmetadata/c9QhR_nQpYO3aimK/public/images/how-to-guides/user-guide-for-data-stewards/access-token4.png?fit=max&auto=format&n=c9QhR_nQpYO3aimK&q=85&s=acfed29f0c983c49f8e4064a291a12e5" alt="Set token expiration" width="1438" height="679" data-path="public/images/how-to-guides/user-guide-for-data-stewards/access-token4.png" />

6. **Copy your token**
   * After generation, the personal access token is displayed.
   * You can revoke a token at any time by selecting **Revoke Token**.
   * Copy and securely store the token, as you may not be able to view it again later.

<img src="https://mintcdn.com/openmetadata/c9QhR_nQpYO3aimK/public/images/how-to-guides/user-guide-for-data-stewards/access-token5.png?fit=max&auto=format&n=c9QhR_nQpYO3aimK&q=85&s=2f92f1cf0384675453e0015ae67b6d7e" alt="Copy your token" width="1438" height="679" data-path="public/images/how-to-guides/user-guide-for-data-stewards/access-token5.png" />

## Usage

Use the generated token to authenticate API requests to OpenMetadata. Include it in the Authorization header as follows:

```bash theme={null}
Authorization: Bearer <your_personal_access_token>
```
