Authentication
How to authenticate calls to the API
All endpoints in this API reference require an API key in the X-API-Key header. Keys are issued by DroneClearance and can be rotated or revoked.
Header
X-API-Key: dc_your_api_key_here
Base URL
https://nexus.droneclearance.nl/api/v1
Permissions
Each key has a set of permissions. Endpoints check them as follows:
| Permission | Endpoints |
|---|---|
list |
GET /flight-requests |
submit |
POST /flight-requests, POST /flight-requests/batch, PATCH /flight-requests/{uuid}, POST /flight-requests/{uuid}/execution |
cancel |
DELETE /flight-requests/{uuid} |
A request without the required permission returns 403 insufficient_permissions.
Idempotency
POST /flight-requests, POST /flight-requests/batch, PATCH /flight-requests/{uuid} and DELETE /flight-requests/{uuid} accept an optional Idempotency-Key header (at most 128 characters). Retrying with the same key and body within 24 hours replays the original response instead of creating a duplicate. Only successful responses are replayed: after an error the same key may be tried again. While a request with a key is still running, a second one with that key answers 409 (idempotency_in_progress).