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

# Authentication

> How to authenticate API requests to Reap.

All API requests require authentication using an API key.

## API Key

Include your API key as a Bearer token in the `Authorization` header:

```
Authorization: Bearer YOUR_API_KEY
```

API keys are project-scoped. Each key grants access to resources within a single project.

## API Versioning

Include the `Reap-Version` header in every request to specify which API version to use:

```
Reap-Version: 2025-02-14
```

The version uses a date-based format (YYYY-MM-DD). Requests without this header will be rejected.

## Example

```bash theme={null}
curl https://sandbox.api.reap.global/v1/users \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Reap-Version: 2025-02-14"
```

## Environments

| Environment | Base URL                             |
| ----------- | ------------------------------------ |
| Sandbox     | `https://sandbox.api.reap.global/v1` |
| Production  | `https://prod.api.reap.global/v1`    |

API keys are scoped to a single environment. A sandbox key cannot be used against production and vice versa.

<Note>
  Contact the Reap team to obtain API keys for your project.
</Note>
