Realtime API
Live journey state is delivered over WebSocket.
Endpoint
text
/ws/v1/journeys/{journeyId}Authorised with the same bearer token. A client may only subscribe to a journey it is a party to.
Events
text
JOURNEY_STARTED
DRIVER_LOCATION_UPDATED
APPROACHING_PICKUP
PICKUP_CONFIRMED
JOURNEY_IN_PROGRESS
APPROACHING_DROPOFF
DROPOFF_CONFIRMED
JOURNEY_COMPLETED
JOURNEY_CANCELLED
SAFETY_ALERTFallback
Clients that cannot hold a WebSocket push location instead:
text
POST /api/v1/journeys/{journeyId}/locationjson
{
"lat": 25.1,
"lng": 55.2,
"accuracyMeters": 8,
"timestamp": "2026-10-01T07:42:00+04:00"
}Push is the fallback, not the primary. A polling client on a poor connection produces a worse safety picture than a socket, which matters because this feed is what an emergency workflow depends on.
Safety
SAFETY_ALERT is delivered on the same channel as ordinary progress events so it cannot be lost by a client that only subscribes to a "journey" channel.
Emergency handling does not depend on the realtime channel being healthy. If the socket is down, the emergency path still runs — see Emergency override.
