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

# Personal Access Tokens

> Create and manage personal access tokens (PATs) for authenticating with the REST API, OData, and Virtual SQL Server.

Personal access tokens (PATs) are used when you connect to your data through the [REST API](/en/API/REST-API), the [OData protocol](/en/Data-Sources/OData), or the [Virtual SQL Server](/en/SQL-Server). You can create and manage your PATs on this tab.

<Frame>
  <img src="https://mintcdn.com/cdata/XuhSyq2ZmCUM5zmX/en/images/settings_pat.png?fit=max&auto=format&n=XuhSyq2ZmCUM5zmX&q=85&s=bb0ad57879755bbb97433134713a333d" alt="Settings PAT" width="852" height="171" data-path="en/images/settings_pat.png" />
</Frame>

## Create a PAT

Follow these steps to create a new PAT:

<Steps>
  <Step>
    Click **Create PAT**.
  </Step>

  <Step>
    Enter a name for the PAT in the dialog that appears. It might be useful to enter a name that indicates its purpose.
  </Step>

  <Step>
    Click **Create** and a new dialog appears.
  </Step>

  <Step>
    Click the copy icon in that dialog to copy the PAT to your clipboard. The icon is to the right of the token field.
    <Note>You cannot view the PAT again after you close this dialog.</Note>

    <Frame>
      <img src="https://mintcdn.com/cdata/XuhSyq2ZmCUM5zmX/en/images/pat_created.png?fit=max&auto=format&n=XuhSyq2ZmCUM5zmX&q=85&s=42a64bffb20e08be2b22dcff050be10a" alt="PAT created" width="903" height="273" data-path="en/images/pat_created.png" />
    </Frame>
  </Step>

  <Step>
    Click **Close** to close the dialog. The new PAT appears in the list and includes its **Creation Date** and **Expiration Date**.

    <Note>
      The PAT expiration date is set globally in the **Security** tab.
    </Note>
  </Step>
</Steps>

## Regenerate a PAT

To regenerate a PAT, click the regeneration icon in the PAT list and follow the prompts.

<Frame>
  <img src="https://mintcdn.com/cdata/ObQJe279PZTmgRsQ/en/images/pat_regen.png?fit=max&auto=format&n=ObQJe279PZTmgRsQ&q=85&s=8c45da675d0b0dd46e5e85701bff9cde" alt="Regenerate PAT" width="1499" height="108" data-path="en/images/pat_regen.png" />
</Frame>

<Note>
  Regenerating a PAT revokes access for any applications that use the PAT. Therefore, you must enter the newly generated PAT in any such applications.
</Note>

## Delete a PAT

To delete a PAT that you no longer use, click the delete icon in the PAT list.

<Frame>
  <img src="https://mintcdn.com/cdata/ObQJe279PZTmgRsQ/en/images/pat_delete.png?fit=max&auto=format&n=ObQJe279PZTmgRsQ&q=85&s=21496a82be58820109f1ec7df1d6bfef" alt="Delete PAT" width="1499" height="108" data-path="en/images/pat_delete.png" />
</Frame>

Click **Confirm** in the confirmation dialog that is displayed.

<Note>
  Deleting a PAT revokes access for any applications that use the PAT. Therefore, you must create a new PAT and enter it into those applications to restore this access.
</Note>
