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

# How to manage API keys

Zenskar allows you to create API keys that can be used for authentication. A few scenarios where API key can be used for authentication are listed below:

* You can authenticate an API request to Zenskar by adding API key to the `x-api-key` request header.
* Third-party software such as Salesforce require Zenskar's API key for integration.

## Create an API key

1. In the side panel, click on the drop-up menu with your name.

<Image align="center" className="border" border={true} src="https://files.readme.io/f0f33dc8fcb32d236b7bc06c8618114776ac1b2257abcdb98422d01f27e2cbcb-image.png" />

2. Click on the **Settings** option on the drop-up menu.
3. On the **Settings** page, navigate to the **API Keys** tab.
4. Click on the **+ CREATE API KEY** button.
5. Enter a descriptive name for the key and click on the **GENERATE API KEY** button.

<Image align="center" alt="Fig. 1: Create new API key" border={true} caption="Fig. 1: Create a new API key." src="https://files.readme.io/5647d4a25abd892d5dc50e323b6823969ee8d537b7dec28ec6e377c31fbc717c-image.png" />

6. Click on the **Copy** button. Save the API key somewhere safe. The API key cannot be viewed or copied after this step.

<Image align="center" alt="Fig. 2: Copy the newly created API key." border={true} caption="Fig. 2: Copy the newly created API key." src="https://files.readme.io/dbe9932b857c3d5c13c2a714da000516dc08b4ae1c893e28fad90cce577f0fa4-Screenshot_from_2024-10-01_19-03-51.png" />

## Delete an API key

1. In the side panel, click on the drop-up menu with your name.
2. Click on the **Settings** option on the drop-up menu.
3. On the **Settings** page, navigate to the **API Keys** tab.
4. Click on the kebab menu on the row containing the API key you wish to delete, and select the **Delete** option.

<Image align="center" className="border" border={true} src="https://files.readme.io/99b3346b2cc07c2ae51704ad6869e825ff45aeb29b7dffa32aceea2a69de1ac2-Screenshot_From_2024-11-04_12-45-48.png" />
