Examples
Practical request/response snippets for common tasks
Replace
dc_your_api_key_herewith your actual key. All examples use JSON over HTTPS.
Submit a Flight Request (cURL)
JSON
curl -X POST "https://nexus.droneclearance.nl/api/v1/flight-requests" \
-H "Content-Type: application/json" \
-H "X-API-Key: dc_your_api_key_here" \
-d '{
"operator_uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"start_time": "2026-02-10T09:00:00Z",
"end_time": "2026-02-10T11:00:00Z",
"max_altitude": 120,
"purpose": "Aerial photography for construction",
"drone_name": "Mavic 3 Enterprise",
"serial_number": "1ZNBJ5G00C00FZ",
"flight_area": {
"type": "FeatureCollection",
"features": [{
"type": "Feature",
"geometry": { "type": "Polygon",
"coordinates": [[[5.123,52.456],[5.124,52.456],[5.124,52.457],[5.123,52.457],[5.123,52.456]]]
},
"properties": {}
}]
}
}'
Get a Flight Request
JSON
curl -H "X-API-Key: dc_your_api_key_here" \
"https://nexus.droneclearance.nl/api/v1/flight-requests/7c9e6679-7425-40de-944b-e07fc1f90ae7?include_geometry=true"
List Requests (filter by date and status)
JSON
curl -H "X-API-Key: dc_your_api_key_here" \
"https://nexus.droneclearance.nl/api/v1/flight-requests?from_date=2026-02-01&to_date=2026-02-28&status=Auto-Registered&per_page=50&page=1"
Report Takeoff and Landing
JSON
curl -X POST -H "X-API-Key: dc_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{"actual_start_time":"2026-02-10T09:05:00Z","actual_end_time":"2026-02-10T10:40:00Z"}' \
"https://nexus.droneclearance.nl/api/v1/flight-requests/7c9e6679-7425-40de-944b-e07fc1f90ae7/execution"
Cancel a Request
JSON
curl -X DELETE -H "X-API-Key: dc_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{"reason":"Flight no longer required"}' \
"https://nexus.droneclearance.nl/api/v1/flight-requests/7c9e6679-7425-40de-944b-e07fc1f90ae7"
Receive Webhooks (example Express.js handler)
JSON
import express from 'express';
const app = express();
app.use(express.json());
app.post('/webhooks/droneclearance', (req, res) => {
const sig = req.header('X-Webhook-Signature'); // t=...,v1=...
// TODO: verify signature with shared secret (HMAC SHA-256)
const event = req.body.event;
if (event === 'status_change') {
// req.body.data.status is e.g. "Auto-Registered" or "Altitude Exceeded"
// req.body.data.is_rejected tells you whether the flight was rejected
} else if (event === 'test') {
// test delivery from POST /api/v1/webhooks/{id}/test
}
res.sendStatus(200);
});
app.listen(3000);