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

# Overview

All requests to the Dora API must be authenticated using an API key. We use a custom **`x-api-key`** header to pass this key.

### Environments

Your account has two separate environments, each with its own API key and base URL.

| **Environment** | **Base URL**                                | **Purpose**       |
| :-------------- | :------------------------------------------ | :---------------- |
| **Development** | `https://dev.api.fleets.usedora.com/api/v1` | Testing & Sandbox |
| **Production**  | `https://api.fleet.sa.usedora.com/api/v1`   | Live Data Access  |

<Warning>
  **Data is separate.** Deliveries or riders created in the Development environment will **not** appear in Production, and vice-versa.
</Warning>

### 🔑 Accessing Your API Keys

You can find your keys in your Dora dashboard settings:

1. **For Development:**
   * Log in at [xdev.fleet.usedora.com](https://xdev.fleet.usedora.com).
   * Navigate to **Settings > General > API Key**.
   * Copy the **Development API Key**.

2. **For Production:**
   * Log in at [fleet.usedora.com](https://fleet.usedora.com).
   * Navigate to **Settings > General > API Key**.
   * Copy the **Production API Key**.

### How to Use Your Key

To authenticate an API request, you must include the `x-api-key` header with every call.

```bash theme={null}
curl --request GET \
     --url [https://dev.api.fleets.usedora.com/api/v1/deliveries](https://dev.api.fleets.usedora.com/api/v1/deliveries) \
     --header 'x-api-key: YOUR_API_KEY'
```

Errors

If your API key is missing or invalid, the API will return a 401 Unauthorized error.

```
{
  "status": "error",
  "message": "Unauthenticated."
}
```
