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

# Authentication

Get your API key from [dashboard.rastro.ai/settings/api-keys](https://dashboard.rastro.ai/settings/api-keys).

Include it in every request:

```bash theme={null}
Authorization: Bearer rastro_pk_...
```

Include the organization header when you know the organization ID:

```bash theme={null}
X-Organization-Id: org_...
```

If you omit `X-Organization-Id`, Rastro falls back to the API key or user's primary organization when it can resolve one.

<Note>
  MCP integrations for Codex/Claude use the same API key and only call API endpoints. No direct database credentials are required.
</Note>
