Mexico: SOS to the state's C5 / 911
Built: 2026-11-03. Written for operators in Mexico and for whoever maintains the code.
In Mexico each state runs its own emergency command centre: C5, C5i or 911. Ride-hailing apps connect their panic button to these centres one state at a time:
- DiDi with the C5 of Nuevo León (2024) and the Estado de México, and with Sonora's 911/C5i (2026);
- Uber in eight states;
- Cabify in CDMX.
What already happened on every SOS
- a critical incident on the safety desk (Admin → Safety & SOS);
- the rider's trusted contacts alerted;
- the app dials the market's emergency number (911 in Mexico);
- a signed event POSTed to the default webhook in Admin → Providers → SOS forwarding, tried three times, with the outcome on the incident.
What is new: one centre per state
The same provider now has a Per-state centres (JSON) field:
{
"NLE": { "url": "https://…", "secret": "…", "name": "C5 Nuevo León" },
"SON": { "url": "https://…", "secret": "…", "name": "C5i Sonora" }
}
- Each key is the code of a REGION zone drawn for that state in Admin →
Zones (e.g.
NLE,SON,MEX,CMX). - An SOS goes to the centre of the smallest region around where it was raised that has one. A city's centre wins over its state's.
- Where no region has a centre, it goes to the default webhook. With neither, nothing is sent.
- Each centre may have its own signing secret. The event is signed with
X-RideKit-Signature: sha256=<HMAC>exactly as before. - Admin refuses text that is not a JSON object before saving it.
What the centre receives
The same sos.raised event as before, plus:
centreandregion(name and code);driver.id.
The event already carried:
- the location;
- the live tracking link (
trackingUrl); - the ride, with pickup and drop-off;
- the rider's and driver's names and phones;
- the vehicle: plate, make, model, colour and GPS device IMEI.
The centre's folio
When the centre answers with its own case number, it is kept on the incident.
Any of these fields is read: folio, caseId, case_id, ticket,
incidentNumber or id. The safety desk then shows:
- Emergency centre: forwarded or not;
- Sent to: "C5 Nuevo León (Nuevo León)";
- Centre's case number: the folio, for follow-up calls.
Code
backend/src/safety/sos-routing.ts: reading the list, choosing the centre, reading the folio (no I/O);sos-forwarder.service.ts: routing by region (GeoService.regionsAt), the folio and centre on the result;- admin:
providers/page.tsx: the field and its JSON check;safety/page.tsx: the centre and folio rows.
Check locally
Each state publishes its own integration terms, and usually a formal agreement with the state government comes first. The payload is one documented JSON event. Each centre (or its integrator) maps it to its own format, as Nuevo León's and Sonora's did for DiDi.