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

# API Key Management

> This allows an Org Owner in the Admin Portal to create a Service User account and manage API Keys for authentication purposes of cxconnect.ai's products.

# API Key Management

## Creating a Service User account to manage API Keys

You must be an Org Owner in the [Admin Portal](https://auth.cxconnect.ai/) to create a Service User Account.

Navigate to the Users tab at the top of the screen and then tab over from the **Users** tab in the interface to **Service User.** Click on **New** in the right corner of your screen.

<img src="https://mintcdn.com/cxconnectai/is68VeZDyYiMRagO/Screenshot2025-02-12at2.19.01PM.png?fit=max&auto=format&n=is68VeZDyYiMRagO&q=85&s=09d535bafef22fb3382a69cb10fcb412" alt="" width="856" height="497" data-path="Screenshot2025-02-12at2.19.01PM.png" />

Fill in the required fields in the **Create a New User** interface selecting **Bearer** as the **Access Token Type**. Then click **Create**.

<img src="https://mintcdn.com/cxconnectai/is68VeZDyYiMRagO/Screenshot2025-02-12at2.24.39PM.png?fit=max&auto=format&n=is68VeZDyYiMRagO&q=85&s=423e69c1b12034220e088572b4b9c2ed" alt="" width="856" height="497" data-path="Screenshot2025-02-12at2.24.39PM.png" />

Click **Save** when the Service User Details are confirmed on the next screen.

A new Service User has been created and API keys can be managed through this account.

\[Video placeholder]

## Generating a new API Key

The API key can be used for authentication with cxconnect.ai’s APIs. You must be an Org Owner to generate a new API Key.

Navigate to **Users > Service Users** and select your Service User account. In the interface that opens, click on **Personal Access Tokens** in the Menu to the left. Click the **New** button on the right side of the page.

<img src="https://mintcdn.com/cxconnectai/is68VeZDyYiMRagO/Screenshot2025-02-12at2.30.42PM.png?fit=max&auto=format&n=is68VeZDyYiMRagO&q=85&s=25188c28a11779089885a90cd62fda64" alt="" width="749" height="587" data-path="Screenshot2025-02-12at2.30.42PM.png" />

If you wish for your API key to expire, you can now select the date. Note, that you will need a new API key when the key expires per the date you set. If your organization does not require rotating your API keys at a pre-defined interval, you may skip selecting the date and click on **Add**. Your key will never expire.

<img src="https://mintcdn.com/cxconnectai/is68VeZDyYiMRagO/Screenshot2025-02-12at2.31.48PM.png?fit=max&auto=format&n=is68VeZDyYiMRagO&q=85&s=53d72ce955c968ed951f6d45d85bcd8e" alt="" width="749" height="587" data-path="Screenshot2025-02-12at2.31.48PM.png" />

You will be presented with an API key. 

Note, the key does not save for recall when exiting the interface, so you need to copy and store it in a safe location. For security reasons, when you exit this screen, you will no longer be able to see the API key.

<img src="https://mintcdn.com/cxconnectai/is68VeZDyYiMRagO/Screenshot2025-02-12at2.34.07PM.png?fit=max&auto=format&n=is68VeZDyYiMRagO&q=85&s=0342e539d44134d37329c2dff6793cff" alt="" width="749" height="587" data-path="Screenshot2025-02-12at2.34.07PM.png" />

When generating a new API key, it will replace the existing one with the new one.
