Safety API
Endpoints
text
POST /api/v1/incidents
GET /api/v1/incidents/:id
POST /api/v1/incidents/:id/escalate
POST /api/v1/journeys/:journeyId/emergencyReport an incident
text
POST /api/v1/incidentsjson
{
"bookingId": "bok_01...",
"type": "SAFETY",
"severity": "HIGH",
"description": "..."
}Types: SAFETY, HARASSMENT, VEHICLE, DRIVING, PAYMENT, IDENTITY, FRAUD, OTHER.
An incident is a report that needs a human. It is not a rating and not a compliance signal — see Ratings for why the two are kept apart.
Emergency
text
POST /api/v1/journeys/:journeyId/emergencyTriggers the configured emergency workflow rather than simply creating a database record.
text
Emergency detected
↓
Safety workflow
├── Emergency contact notification
├── Live location sharing
├── Incident creation
├── Platform safety team
└── Regulatory escalation where applicableThis must not depend on ordinary matching or compliance logic being healthy. An emergency path that fails when a downstream service is degraded is not a safety path.
Escalation
text
POST /api/v1/incidents/:id/escalateRequires SAFETY_ADMIN. Escalation is a human action; the platform does not escalate to a regulatory workflow on its own authority.
User blocking
Blocking is a safety action available to users and enforced on both matching and booking. It is audited, and it is reversible with a reason recorded.
