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

# Authentication

> Learn how to authenticate your API requests using API Keys

All API requests to Anzi require authentication using an API Key. This guide explains how to generate, use, and manage your API keys securely.

<Note>Keep your API keys secure and never share them publicly.</Note>

## How create an API Key

In Anzi you can create API keys in two ways:

1. **Through the API**: Use the [Create API Key](/api-reference/users/create-api-key) endpoint with your credentials
2. **Through the Interface**: Use the visual interface to create keys step-by-step (see the guide below)

## Creating an API Key Through the Interface

### Step 1: Access API Keys Menu

In the Anzi interface, locate the API Keys option in the right-hand menu. This will give you access to manage all your API keys.

<img src="https://mintcdn.com/anzifinance/pl9Bgo1MPX4Zo6aO/public/images/menu-api.png?fit=max&auto=format&n=pl9Bgo1MPX4Zo6aO&q=85&s=d2016ad972db8afcbb43bfe5f50c65e7" alt="Anzi Dashboard - API Keys Menu" width="2547" height="474" data-path="public/images/menu-api.png" />

### Step 2: Click Create Button

From the API Keys view, click the "Create" button to open the API Key creation modal. This will launch a two-step process.

<img src="https://mintcdn.com/anzifinance/pl9Bgo1MPX4Zo6aO/public/images/create-button.png?fit=max&auto=format&n=pl9Bgo1MPX4Zo6aO&q=85&s=5b83f9943c0adf3607fe57366746e959" alt="Create button" width="2408" height="503" data-path="public/images/create-button.png" />

### Step 3: Enter API Key Details

In the first step of the modal, you need to provide:

* **Name**: An identifier for your API key
* **Password**: Your account password for security verification

<img src="https://mintcdn.com/anzifinance/pl9Bgo1MPX4Zo6aO/public/images/create-api-step1.png?fit=max&auto=format&n=pl9Bgo1MPX4Zo6aO&q=85&s=1f92e400f0754c53ff8849fdb406a82a" alt="API Key Creation - Step 1: Enter Details" width="1194" height="743" data-path="public/images/create-api-step1.png" />

### Step 4: Copy Your API Key

After submitting, the second step will display your newly created API key.

<Warning>
  For security reasons, this is the **only time** you'll be able to see and copy
  the complete API key. Make sure to copy it to a secure location before closing
  this window.
</Warning>

From this screen, you can copy the API key to your clipboard using the copy button.

<img src="https://mintcdn.com/anzifinance/pl9Bgo1MPX4Zo6aO/public/images/create-api-step2.png?fit=max&auto=format&n=pl9Bgo1MPX4Zo6aO&q=85&s=4d3a0775bd893fe5802e205175c88f36" alt="API Key Creation - Step 2: Copy API Key" width="1152" height="881" data-path="public/images/create-api-step2.png" />

## Managing Your API Keys

Once you've created your API keys, you can manage them from the API Keys list view. You'll see all your API keys with the following information:

* **Name**: The identifier for your API key
* **API Key**: The actual key value (partially masked for security)
* **Created On**: When the key was created
* **Status**: Toggle to enable or disable the key

From this interface, you can:

* Enable or disable keys
* View all active keys for your organization

<img src="https://mintcdn.com/anzifinance/pl9Bgo1MPX4Zo6aO/public/images/api-list.png?fit=max&auto=format&n=pl9Bgo1MPX4Zo6aO&q=85&s=24b656dc2d2ed55ee836543634a6297e" alt="API Keys Management Interface" width="2547" height="921" data-path="public/images/api-list.png" />
