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

> ## Agent Instructions
> The Exa API is served at https://api.exa.ai. Authenticate with `Authorization: Bearer $EXA_API_KEY` (or `x-api-key: $EXA_API_KEY`); create keys at https://dashboard.exa.ai/api-keys?utm_source=docs&utm_medium=docs&utm_campaign=markdown_instructions. Every way an agent can get access to Exa is described at https://exa.ai/auth.md.
> Prefer the official SDKs, `exa-py` (`pip install exa-py`) and `exa-js` (`npm install exa-js`); both read `EXA_API_KEY` from the environment.
> Tool-using agents can call Exa without writing code through the hosted MCP server at https://mcp.exa.ai/mcp, or install the Exa agent skill with `npx skills add exa-labs/agent-skills` (skill file: https://exa.ai/docs/skill.md).
> The OpenAPI specs at https://exa.ai/docs/exa-spec.yaml and https://exa.ai/docs/team-management-spec.yaml are the source of truth for request and response schemas.

# EU Data Residency

> Send Exa Search and Contents requests to the EU endpoint, api.eu.exa.ai, so they are processed in the European Union.

EU Data Residency runs your Exa Search and Contents requests inside the European Union. Send your requests to the EU endpoint, `https://api.eu.exa.ai`. Exa processes and stores your queries, the results it returns and page contents in the EU. EU teams run with [Zero Data Retention](https://exa.ai/docs/admin/security/zero-data-retention.md).

## What the EU endpoint serves

The EU endpoint serves [Search](https://exa.ai/docs/search/quickstart.md) with the `auto` and `lite` search types, [Contents](https://exa.ai/docs/contents/quickstart.md) and [Decisions](https://exa.ai/docs/search/decisions.md).

## Set up

**1. Get an EU team**

Contact [sales@exa.ai](mailto:sales@exa.ai). Exa creates a separate team for you in the EU region. Exa sets a team's region when it creates the team, and the region does not change. An existing team cannot move to the EU.

**2. Create an API key for the EU team**

Create an API key for your EU team on the [API Keys](https://dashboard.exa.ai/api-keys) page of the dashboard. API keys from your other teams do not work on the EU endpoint.

**3. Send requests to the EU endpoint**

Set the base URL of your client to `https://api.eu.exa.ai`.

```bash cURL theme={null}
curl -i -X POST "https://api.eu.exa.ai/search" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $EXA_API_KEY" \
  -d '{
    "query": "EU AI Act obligations for model providers",
    "type": "auto"
  }'
```

```python Python theme={null}
from exa_py import Exa

exa = Exa(api_key="YOUR_EU_TEAM_API_KEY", base_url="https://api.eu.exa.ai")

results = exa.search("EU AI Act obligations for model providers", type="auto")
```

```javascript JavaScript theme={null}
import Exa from "exa-js";

const exa = new Exa("YOUR_EU_TEAM_API_KEY", "https://api.eu.exa.ai");

const results = await exa.search("EU AI Act obligations for model providers", {
  type: "auto",
});
```

## Check where a request was processed

Every response from the EU endpoint has this header. Use it to record where Exa processed each request:

```http theme={null}
x-exa-processing-region: eu
```

> [!NOTE]
>
> Exa never sends a request from the EU endpoint to another region. An EU team's API key works only on the EU endpoint. The EU endpoint refuses a request it cannot serve, and Exa does not bill the refused request.
>
> | Status | Tag | Cause |
> | - | - | - |
> | `403` | `REGION_UNAVAILABLE` | You sent an EU team's API key to `api.exa.ai`, or another team's API key to `api.eu.exa.ai`. The message names the endpoint to use. |
> | `400` | `FEATURE_UNAVAILABLE_IN_REGION` | The request uses a feature that the EU endpoint does not offer. The message names the feature. |

> [!NOTE]
>
> Exa may keep account and identity metadata and aggregated service metrics outside the EU. Your queries, the results Exa returns and page contents stay in the EU.
