driver-device-token
Registers or updates the Firebase Cloud Messaging (FCM) device push notification token for the authenticated driver’s mobile device (Android or iOS). Used to send dispatch alerts, new ride requests, and system notifications.
Endpoint Overview
-
Method:
POST -
Route:
/api/v1/driver/device-token -
Authentication:
Bearer Token (Driver JWT) -
Content-Type:
application/json
Request Headers
Request Body Schema
Example Request Body
Response Body Schema (200 OK)
device_token Object Fields
Response Examples
1. 200 OK — Success (Registered / Updated)
2. 400 Bad Request — Validation Error (Invalid Platform or Missing FCM Token)
3. 401 Unauthorized — Missing / Expired Token / Session Revoked
4. 403 Forbidden — Account Blocked / Deactivated
5. 500 Internal Server Error
Status Codes Reference
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.