All booking and history endpoints require an
Authorization header with a valid bearer token.1
Estimate the fare
Before booking, call the estimate endpoint to preview the fare for your trip. Pass
distanceKm (required) along with the optional coordinates and preferences.Example response
2
Book the ride
Submit a Save the returned
POST /rides/book request with your pickup and drop-off details. The API assigns your authenticated user as the rider automatically.Example response
id — you need it to track the ride and submit feedback.3
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:4
Submit feedback
After the ride reaches
COMPLETED status, submit a rating and optional comment.Example response
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.