Ride Requests API
A ride request expresses want. It never creates supply: a request can only attach to a journey that already exists.
Endpoints
POST /api/v1/ride-requests
GET /api/v1/ride-requests/:id
GET /api/v1/ride-requests
POST /api/v1/ride-requests/:id/cancel
GET /api/v1/ride-requests/:id/matchesCreate
{
"pickup": { "lat": 25.276, "lng": 55.361 },
"dropoff": { "lat": 25.194, "lng": 55.27 },
"requestedFor": "2026-10-01T07:45:00+04:00",
"passengerCount": 1
}The server does not book a driver
REQUEST
↓
MATCHING
↓
CANDIDATES
↓
COMPLIANCE
↓
AVAILABLE MATCHESA request produces ranked, compliance-cleared candidates. Selection is the user's decision, and the request itself never commits anyone to a trip.
Lifecycle
REQUESTED → MATCHING → MATCHED → ACCEPTED → BOOKED → COMPLETED
REQUESTED | MATCHING | MATCHED → REJECTED | CANCELLED | EXPIRED
any state → FLAGGEDMatches
GET /api/v1/ride-requests/:id/matches{
"requestId": "req_01...",
"matches": [
{
"matchId": "mch_01...",
"journeyId": "jny_01...",
"driver": {
"id": "usr_01...",
"displayName": "Michael"
},
"routeCompatibility": 94,
"pickupDistanceMeters": 420,
"dropoffDistanceMeters": 510,
"additionalDistanceMeters": 1200,
"additionalDurationSeconds": 240,
"availableSeats": 2,
"eligibility": "ELIGIBLE"
}
]
}What is never exposed
Internal risk scores, internal compliance reason codes, rule identifiers and evidence are not returned to ordinary users.
The passenger needs the information required to make a booking decision — how far the detour, how long it adds, whether the driver is verified. They do not need the engine's internal assessment of the driver. Exposing a risk score to a passenger would also expose it to a driver through a shared booking, turning an internal control into a public label.
Exact driver and location information follows the privacy policy: generalised commute hubs, not home addresses.
