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

# API Key Authentication

> API Key Authentication is a straightforward method for securing access to the Zixflow API's. You can generate an API key through Zixflow's dashboard, allowing you to define permissions, set expiration dates, and specify IP restrictions if necessary.

#### Obtaining an API Key

To obtain an API key for accessing the Zixflow API's, follow these steps:

1. **Access the Dashboard:**

   * Log in to your Zixflow dashboard.

2. **Generate an API Key:**

   * Navigate to **Settings** > **Workspace Settings** > **Developer** > **API Key**.
     <Frame>
       <img src="https://res.cloudinary.com/zixflow/image/upload/v1720009057/Screenshot_2024-07-03_at_5.45.36_PM_zzbog9.png" />
     </Frame>

3. **Configure API Key Settings:**

   * When generating an API key, you can configure the following settings:

   * **Permissions:**

     * Specify the level of access you want to grant to the API key. You can define which API endpoints and actions the key is allowed to perform.

   * **Expiry (Optional):**

     * Optionally, set an expiration date for the API key. If set, the key will no longer be valid after the specified date.

   * **IP Restriction (Optional):**
     * Optionally, restrict API key usage to specific IP addresses. This enhances security by only allowing requests from designated IPs.

   <Frame>
     <img src="https://res.cloudinary.com/zixflow/image/upload/v1720009206/Screenshot_2024-07-03_at_5.49.39_PM_tjzwc3.png" />
   </Frame>

4. **Generate the API Key:**

   * After configuring your desired settings, click the "Generate" or "Create" button to generate the API key.

5. **Receive the API Key:**
   * Once generated, you will receive your API key, which you will use to authenticate your API requests.

#### Using the API Key as a Bearer Token

To authenticate your API requests using the API key as a Bearer token, include it in the `Authorization` header as follows:

```js theme={null}
Authorization: Bearer your_api_key
```

Replace `your_api_key` with the actual API key you generated.

#### Managing API Key Access

You can manage and monitor API key access through your Zixflow dashboard. This includes revoking access and configuring permissions, but keep in mind that the API key will be treated as a Bearer token for authorization.
