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

# Legacy API Authentication

> Send your formcarry API key in the api_key header to authenticate legacy API requests against formcarry.com/api.

> [!WARNING]
>
> This page covers authentication for the **legacy** formcarry API. For new integrations, see [v1 Authentication](https://formcarry.com/docs/api/authentication.md).

The legacy API authenticates every request with an API key sent in the `api_key` header.

## Get your API key

1. Open your formcarry dashboard.
2. Go to **Settings** → **API Keys**.
3. Copy your key.

## Send the key

Add the `api_key` header to every request:

```bash theme={null}
curl https://formcarry.com/api/form/FORM_ID/submissions \
  -H "api_key: YOUR_API_KEY"
```

> [!WARNING]
>
> Treat API keys like passwords. Do not commit them to source control or expose them in client-side code.

## Errors

* `401 Unauthorized` — the `api_key` header is missing or the key is invalid.
* `403 Forbidden` — the key does not have access to the requested form.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.