me
Retrieves the full profile details of the authenticated driver, including account status, duty status, rating, wallet balance, active vehicle information, and onboarding flags.
Endpoint Overview
-
Method:
GET -
Route:
/api/v1/driver/me -
Authentication:
Bearer Token (Driver JWT) -
Content-Type:
N/A
Request Headers
Response Body Schema (200 OK)
driver Object Fields
Response Examples
1. 200 OK — Success (Profile with Vehicle)
2. 200 OK — Success (Newly Registered Driver, Incomplete Onboarding)
3. 401 Unauthorized — Missing or Invalid Access Token
When Authorization header is missing:
When access token is expired or invalid:
4. 401 Unauthorized — Session Revoked (Logged in on Another Device)
Enforced via single-device session tracking when a newer login has invalidated this session:
5. 403 Forbidden — Account Blocked or Deactivated
Triggered if the driver account has been banned or deactivated by an admin:
6. 404 Not Found — Driver Not Found
7. 500 Internal Server Error
Status Codes Reference
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.