Skip to main content
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 POST /rides/book request with your pickup and drop-off details. The API assigns your authenticated user as the rider automatically.
Example response
Save the returned id — you need it to track the ride and submit feedback.
3

Track ride status

Poll GET /rides/status/{rideId} to check the current state of your ride.
Example response
The status field progresses through the following values:
When the status is ACCEPTED, use driverLat and driverLon to show the driver’s live position on a map.
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.
Example response

Cancel a ride

Cancel a ride that has not yet been completed by calling POST /rides/cancel/{rideId}. Provide an optional reason in the request body.
Cancelling a ride after a driver has been assigned may incur a cancellationFee. Check the returned cancellationFee field in the response.