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 |
Data is separate. Deliveries or riders created in the Development environment will not appear in Production, and vice-versa.
🔑 Accessing Your API Keys
You can find your keys in your Dora dashboard settings:
-
For Development:
-
For Production:
- Log in at 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.
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."
}