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

# Access via API key

## Using the API

All API endpoints require authenticated access via an API key passed as a header `X-Api-Key`: your Ampersand API key.

If you don't have one yet, create as many as you'd like on the Ampersand Dashboard's [API Keys page](https://dashboard.withampersand.com/projects/_/api-keys).

## Creating and Viewing API Key

<Frame caption="Create API key">
  <img src="https://mintcdn.com/ampersand-24eb5c1a/p4alBfPjHeNuBPh1/images/create-api-key.png?fit=max&auto=format&n=p4alBfPjHeNuBPh1&q=85&s=72916f82f7263b38ed15188f8808dafa" alt="Generating an API key" width="3024" height="1890" data-path="images/create-api-key.png" />
</Frame>

1. Go to the [API Keys page](https://dashboard.withampersand.com/projects/_/api-keys) on the Ampersand Dashboard.
2. Click on the "New API Key" button.
3. Give your API key a descriptive name and click on the "Save Changes" button.
4. Your API key will be generated. You can view it by clicking on the button with the name of the key.

<Frame caption="Copy API key">
  <img src="https://mintcdn.com/ampersand-24eb5c1a/xjDXN-Vr1QbdihBU/images/view-api-key.png?fit=max&auto=format&n=xjDXN-Vr1QbdihBU&q=85&s=4ee005640671d205a77d5aac90106c64" alt="Copy API key" width="3024" height="1890" data-path="images/view-api-key.png" />
</Frame>
