Skip to main content

Driver App API

Base: https://dev-api.metaonus.in/driver/*

Authentication

MethodEndpointDescription
POST/user-auth/loginSend OTP to phone
POST/user-auth/otp-verifyVerify OTP, receive tokens
POST/user-auth/set-pinSet 4-digit PIN (first login)
POST/user-auth/get-pinQuick login with PIN
POST/user-auth/get-forgotten-pinRequest PIN reset OTP
POST/user-auth/verify-change-pin-otpVerify PIN reset OTP
POST/user-auth/change-pinSet new PIN after reset
POST/user-auth/refresh-tokenRefresh access token

Profile

MethodEndpointDescription
GET/user-auth/profileGet driver profile
POST/user-auth/update-phoneUpdate phone number

Bus & Trips

MethodEndpointDescription
GET/bus-tracking/get-assigned-busGet assigned bus
GET/bus-tracking/tripsGet today's trips
GET/bus-tracking/trips/{tripId}Get trip details with stops
GET/bus-tracking/trips/{tripId}/stopsGet stops for a trip
PUT/bus-tracking/bus-stops/reorderReorder stops on a trip

Trip Actions

MethodEndpointDescription
POST/bus-tracking/trips/{tripId}/startStart a trip
POST/bus-tracking/trips/{tripId}/pausePause a trip
POST/bus-tracking/trips/{tripId}/resumeResume a paused trip
POST/bus-tracking/trips/{tripId}/endEnd a trip

Students

MethodEndpointDescription
GET/bus-tracking/get-assigned-studentsGet all assigned students
GET/bus-tracking/trips/{tripId}/studentsGet students for a trip (optionally filtered by stop)
POST/bus-tracking/trips/{tripId}/students/markMark student status (boarded/absent/alighted/no_show)

Incidents

MethodEndpointDescription
POST/bus-tracking/incidentsReport an incident
GET/bus-tracking/incidentsGet incident history

Tracking

MethodEndpointDescription
POST/bus-tracking/update-locationPush current GPS location
POST/bus-tracking/batch-locationsBatch upload buffered location updates