All booking and history endpoints require an
Authorization header with a valid bearer token.Estimate the fare
Before booking, call the estimate endpoint to preview the fare for your trip. Pass
Example response
distanceKm (required) along with the optional coordinates and preferences.| Parameter | Required | Description |
|---|---|---|
distanceKm | Yes | Trip distance in kilometres |
rideType | No | STANDARD, PREMIUM, etc. |
pickupLat | No | Pickup latitude |
pickupLon | No | Pickup longitude |
dropLat | No | Drop-off latitude |
dropLon | No | Drop-off longitude |
routePreference | No | FASTEST, SHORTEST, etc. |
Book the ride
Submit a
Example responseSave the returned
POST /rides/book request with your pickup and drop-off details. The API assigns your authenticated user as the rider automatically.| Field | Type | Description |
|---|---|---|
pickupLocation | string | Human-readable pickup address |
dropLocation | string | Human-readable drop-off address |
pickupLat | number | Pickup latitude |
pickupLon | number | Pickup longitude |
dropLat | number | Drop-off latitude |
dropLon | number | Drop-off longitude |
paymentMode | string | Payment method (e.g. upi, cash, card) |
id — you need it to track the ride and submit feedback.Track ride status
Poll Example responseThe
GET /rides/status/{rideId} to check the current state of your ride.status field progresses through the following values:| Status | Meaning |
|---|---|
REQUESTED | Ride booked, waiting for a driver |
ACCEPTED | A driver has accepted your ride |
PICKED | Driver has started the trip |
COMPLETED | Ride finished |
CANCELLED | Ride was cancelled |
View ride history
Retrieve a list of all rides associated with your account.Cancel a ride
Cancel a ride that has not yet been completed by callingPOST /rides/cancel/{rideId}. Provide an optional reason in the request body.