sos — Panic button, personal dangervehicle — Hijack, road robbery, accidentlocation_threat — Robbery or violence at a specific placemedical — Injury or health emergencyidempotency_key (e.g. your trip ID or session ID)curl --location --request POST '/incidents' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"category": "sos",
"severity": "critical",
"idempotency_key": "session_abc123",
"subject": {
"name": "Amaka Obi",
"phone": "+2348012345678",
"reference": "USER-9921"
},
"location": {
"coordinates": [
3.3792,
6.5244
],
"address": "14 Bourdillon Road, Ikoyi, Lagos"
}
}'{
"incident": {
"incident_id": "inc_a1b2c3d4e5f6g7h8",
"idempotency_key": "string",
"category": "sos",
"severity": "low",
"status": "created",
"subject": {
"name": "Amaka Obi",
"phone": "+2348012345678",
"email": "[email protected]",
"reference": "TRIP-44821",
"metadata": {
"vehicle_plate": "LND-204-KJA",
"driver_name": "Olu Babs"
}
},
"title": "string",
"description": "string",
"location": {
"coordinates": [
3.3792,
6.5244
],
"address": "14 Bourdillon Road, Ikoyi, Lagos",
"landmark": "Gate B — North entrance"
},
"resolution_outcome": "handled",
"resolution_notes": "string",
"is_drill": true,
"timeline": [
{
"status": "string",
"event": "created",
"message": "string",
"timestamp": "2019-08-24T14:15:22.123Z"
}
],
"created_at": "2019-08-24T14:15:22.123Z",
"updated_at": "2019-08-24T14:15:22.123Z",
"resolved_at": "2019-08-24T14:15:22.123Z",
"cancelled_at": "2019-08-24T14:15:22.123Z"
},
"idempotent": true
}