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

# Generating API Keys

## How to Generate API Keys

API keys allow you to programmatically access your AI Insurance data and integrate with external systems. This guide shows you how to generate API keys from your company settings.

## Step-by-Step Instructions

### Step 1: Access Company Settings

1. Log into your AI Insurance account at [https://app.aiinsurance.io](https://app.aiinsurance.io)
2. In the left sidebar, find and click on your company name (e.g., "Demo Insurance Inc.")
3. This will open the company settings page

### Step 2: Navigate to API Keys

1. In the company settings, look for the navigation bar
2. Click on the **"API Keys"** tab
3. Once you're on the **API Keys** page, you will see:
   * A table of any existing API keys
   * A button to create a new API key
   * Your **Company ID** at the bottom of the page (this ID is required in most API requests)
     <img src="https://mintcdn.com/aiinsurance-1ef97d09/4dRdHqbBeTugCRRP/submissions-and-quotes/images/find-api-key.png?fit=max&auto=format&n=4dRdHqbBeTugCRRP&q=85&s=7d0e112950582cfa20198f5f45a8791a" alt="Find api key" width="2878" height="1332" data-path="submissions-and-quotes/images/find-api-key.png" />

### Step 3: Create Your API Key

1. Click the purple **"+ Create New API Key"** button
2. You'll be prompted to enter:
   * **Key Name**: A descriptive name for your API key (e.g., "Production Integration", "Testing API")
   * **Description**: Optional description of what this key will be used for
     <img src="https://mintcdn.com/aiinsurance-1ef97d09/2hB8WWGTZ3-3vH1R/submissions-and-quotes/images/add-key.png?fit=max&auto=format&n=2hB8WWGTZ3-3vH1R&q=85&s=d1b96d225a3ce4fcbc7302824910a4ad" alt="add key" width="1262" height="590" data-path="submissions-and-quotes/images/add-key.png" />

### Step 4: Save Your API Key

1. After creating the key, you'll receive your API key
2. **Store it securely** - API keys grant access to your company's data

<Note>
  **Authentication Header Format**

  When making API requests, include your API key in the Authorization header:

  ```
  Authorization: YOUR-API-KEY
  ```

  **Correct:**

  ```bash theme={null}
  -H "Authorization: abc123xyz789"
  ```

  **Incorrect:**

  ```bash theme={null}
  -H "Authorization: Bearer abc123xyz789"  ❌
  -H "X-API-Key: abc123xyz789"            ❌
  ```
</Note>

***

## Using Your API Key

Now that you have your API key, you can use it to access the AI Insurance External API. This API allows you to programmatically manage your insurance operations including submissions, quotes, policies, and more.

### Getting Started with the API

**[See the API Overview for complete documentation](/api-legacy-reference/overview)** - This includes:

* All available API resources and endpoints
* Quick start examples
* Request/response formats
* Data models reference

### What You Can Do with the API

Once you have your API key, you can:

* **Submissions**: Create, update, and list insurance submissions
* **Quotes**: Retrieve quote information (lightweight or full details)
* **Configuration**: Access your company's rating fields and coverage types
* **More coming soon**: Policies, Events, Insureds, Financials

### Example: Using Your API Key

With your API key, you can make requests like:

```bash theme={null}
curl -X GET \
  "https://app.aiinsurance.io/api/external/companies/YOUR-COMPANY-ID/submissions" \
  -H "Authorization: YOUR-API-KEY"
```
