Drivers
The Driver object
idstringoptionalPublic driver identifier.
userstringoptionalPublic user ID linked to the driver.
internal_idstringoptionalOptional internal identifier.
companystringoptionalPublic company ID for the driver's current company.
company_namestringoptionalName of the driver's current company.
namestringoptionalDriver display name.
emailstringoptionalDriver email address.
phonestringoptionalDriver phone number.
drivers_license_numberstringoptionalDriver license number.
photo_urlstringoptionalDriver photo URL.
avatar_urlstringoptionalDriver avatar URL.
vehicleobjectoptionalAssigned vehicle, when loaded.
current_jobobjectoptionalCurrent order, when loaded.
vendorobjectoptionalAssigned vendor, when loaded.
fleetsarray of objectsoptionalFleets the driver belongs to, when loaded.
locationobjectoptionalCurrent driver coordinates.
headingintegeroptionalCurrent heading in degrees.
altitudeintegeroptionalCurrent altitude.
speedintegeroptionalCurrent speed.
countrystringoptionalCurrent country code.
currencycurrencyoptionalCurrency inferred from the driver's country.
citystringoptionalCurrent city.
onlinebooleanoptionalWhether the driver is online.
statusstringoptionalDriver lifecycle status.
tokenstringoptionalAuthentication token returned by driver login endpoints.
metaobjectoptionalAdditional driver metadata.
updated_attimestampoptionalTimestamp when the driver was last updated.
created_attimestampoptionalTimestamp when the driver was created.
{
"id": "driver_A1b2C3d4E5",
"user": "user_1A2b3C4d5E",
"internal_id": "DRV-1001",
"company": "company_6zV1KqN9pR",
"company_name": "Fleetbase",
"name": "Alex Driver",
"email": "alex.driver@example.com",
"phone": "+15555550111",
"drivers_license_number": null,
"photo_url": null,
"avatar_url": null,
"vehicle_avatar": null,
"location": {
"latitude": 1.3521,
"longitude": 103.8198
},
"heading": 0,
"altitude": 0,
"speed": 0,
"country": "SG",
"currency": "SGD",
"city": "Singapore",
"online": false,
"status": "active",
"token": null,
"meta": {},
"updated_at": "2026-05-07T08:30:00.000000Z",
"created_at": "2026-05-07T08:30:00.000000Z"
}/v1/driversCreate a Driver
Creates a driver profile and linked user account. Provide a unique email and phone number, then optionally assign a vehicle, vendor, current job, location, or photo.
namestringrequiredDriver display name.
emailstringrequiredDriver email address. Must be unique when creating a driver.
phonestringrequiredDriver phone number. Must be unique when creating a driver.
passwordstringoptionalOptional password for the driver user account.
timezonestringoptionalTimezone for the driver user account.
countrystringoptionalTwo-letter country code.
citystringoptionalDriver city.
vehiclestringoptionalVehicle ID to assign to the driver.
vendorstringoptionalVendor ID to assign to the driver.
jobstringoptionalCurrent order ID to assign to the driver.
statusenumoptionalDriver lifecycle status. One of active, inactive.
photostringoptionalFile ID, upload reference, or resolvable file input for the driver photo.
locationobjectoptionalResolvable point used as the driver's current location.
latitudenumberoptionalDecimal latitude. Required with longitude.
longitudenumberoptionalDecimal longitude. Required with latitude.
metaobjectoptionalAdditional driver metadata.
/v1/driverscurl -X POST https://api.fleetbase.io/v1/drivers \
-H "Authorization: Bearer flb_live_…" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"name": "John Doe",
"email": "{{$randomEmail}}",
"phone": "{{$randomPhoneNumber}}"
}'{
"id": "<string>",
"current_job": "<string>",
"vehicle": "<string>",
"email": "<string>",
"phone_number": "<string>",
"phone_country_code": "<string>",
"signup_token_used": "<string>",
"drivers_license_number": "<string>",
"latitude": "<string>",
"longitude": "<string>",
"heading": "<string>",
"altitude": "<string>",
"speed": "<string>",
"country": "<string>",
"currency": "<string>",
"city": "<string>",
"online": "<number>",
"status": "<string>",
"updated_at": "<string>",
"created_at": "<string>"
}/v1/driversQuery Drivers
Returns drivers for the current company. Use filters such as vendor, search, pagination, or sort parameters to narrow the result set.
idstringoptionalDriver ID filter used by this request example.
querystringoptionalSearch term matched against driver fields.
limitintegeroptionalMaximum number of drivers to return.
offsetintegeroptionalNumber of drivers to skip before returning results.
sortstringoptionalSort expression for the driver query.
vendorstringoptionalVendor ID used to filter drivers assigned to a vendor.
/v1/driverscurl https://api.fleetbase.io/v1/drivers?id={{driver_id}} \
-H "Authorization: Bearer flb_live_…" \
-H "Accept: application/json"{
"id": "<string>",
"current_job": "<string>",
"vehicle": "<string>",
"email": "<string>",
"phone_number": "<string>",
"phone_country_code": "<string>",
"signup_token_used": "<string>",
"drivers_license_number": "<string>",
"latitude": "<string>",
"longitude": "<string>",
"heading": "<string>",
"altitude": "<string>",
"speed": "<string>",
"country": "<string>",
"currency": "<string>",
"city": "<string>",
"online": "<number>",
"status": "<string>",
"updated_at": "<string>",
"created_at": "<string>"
}/v1/drivers/:idRetrieve a Driver
This endpoint allows you to retrieve a driver object to view it's details.
/v1/drivers/:idcurl https://api.fleetbase.io/v1/drivers/:id \
-H "Authorization: Bearer flb_live_…" \
-H "Accept: application/json"{
"id": "<string>",
"current_job": "<string>",
"vehicle": "<string>",
"email": "<string>",
"phone_number": "<string>",
"phone_country_code": "<string>",
"signup_token_used": "<string>",
"drivers_license_number": "<string>",
"latitude": "<string>",
"longitude": "<string>",
"heading": "<string>",
"altitude": "<string>",
"speed": "<string>",
"country": "<string>",
"currency": "<string>",
"city": "<string>",
"online": "<number>",
"status": "<string>",
"updated_at": "<string>",
"created_at": "<string>"
}/v1/drivers/:idUpdate a Driver
Updates a driver's account fields, assignment, status, location, photo, or metadata.
namestringoptionalDriver display name.
emailstringoptionalDriver email address.
phonestringoptionalDriver phone number.
passwordstringoptionalOptional password for the driver user account.
vehiclestringoptionalVehicle ID to assign to the driver.
vendorstringoptionalVendor ID to assign to the driver.
jobstringoptionalCurrent order ID to assign to the driver.
statusenumoptionalDriver lifecycle status. One of active, inactive.
photostringoptionalFile ID, upload reference, or resolvable file input for the driver photo.
locationobjectoptionalResolvable point used as the driver's current location.
latitudenumberoptionalDecimal latitude. Required with longitude.
longitudenumberoptionalDecimal longitude. Required with latitude.
metaobjectoptionalAdditional driver metadata.
/v1/drivers/:idcurl -X PUT https://api.fleetbase.io/v1/drivers/:id \
-H "Authorization: Bearer flb_live_…" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"name": "John Doe",
"email": "{{$randomEmail}}",
"phone": "{{$randomPhoneNumber}}"
}'{
"id": "<string>",
"current_job": "<string>",
"vehicle": "<string>",
"email": "<string>",
"phone_number": "<string>",
"phone_country_code": "<string>",
"signup_token_used": "<string>",
"drivers_license_number": "<string>",
"latitude": "<string>",
"longitude": "<string>",
"heading": "<string>",
"altitude": "<string>",
"speed": "<string>",
"country": "<string>",
"currency": "<string>",
"city": "<string>",
"online": "<number>",
"status": "<string>",
"updated_at": "<string>",
"created_at": "<string>"
}/v1/drivers/:idDelete a Driver
Use this endpoint to delete a driver.
/v1/drivers/:idcurl -X DELETE https://api.fleetbase.io/v1/drivers/:id \
-H "Authorization: Bearer flb_live_…" \
-H "Accept: application/json"{
"deleted": "<boolean>",
"id": "<string>"
}/v1/drivers/:id/trackTrack Driver
latitudenumberoptionalDriver latitude. When omitted with longitude, Fleetbase returns the current driver resource without updating location.
longitudenumberoptionalDriver longitude. When omitted with latitude, Fleetbase returns the current driver resource without updating location.
altitudenumberoptionalCurrent altitude.
headingnumberoptionalCurrent heading in degrees.
speednumberoptionalCurrent speed.
/v1/drivers/:id/trackcurl -X PATCH https://api.fleetbase.io/v1/drivers/:id/track \
-H "Authorization: Bearer flb_live_…"/v1/drivers/loginLogin Driver
Authenticates a driver with email/phone and password.
identitystringrequiredDriver email address or phone number.
passwordstringrequiredDriver account password.
/v1/drivers/logincurl -X POST https://api.fleetbase.io/v1/drivers/login \
-H "Authorization: Bearer flb_live_…" \
-H "Content-Type: application/json" \
-d '{
"identity": "{{driver_identity}}",
"password": "{{driver_password}}"
}'/v1/drivers/login-with-smsRequest Driver Login SMS
Starts driver SMS verification login.
phonestringrequiredDriver phone number to send the verification code to.
/v1/drivers/login-with-smscurl -X POST https://api.fleetbase.io/v1/drivers/login-with-sms \
-H "Authorization: Bearer flb_live_…" \
-H "Content-Type: application/json" \
-d '{
"phone": "{{driver_phone}}"
}'/v1/drivers/verify-codeVerify Driver Login Code
Verifies driver login code and returns a driver token.
identitystringrequiredDriver email address or phone number used for verification.
codestringrequiredVerification code sent to the driver.
forstringoptionalDefault: driver_loginVerification purpose. Defaults to driver_login.
/v1/drivers/verify-codecurl -X POST https://api.fleetbase.io/v1/drivers/verify-code \
-H "Authorization: Bearer flb_live_…" \
-H "Content-Type: application/json" \
-d '{
"identity": "{{driver_identity}}",
"code": "{{verification_code}}"
}'/v1/drivers/:id/register-deviceRegister Driver Device
Registers a device token for a specific driver.
tokenstringrequiredDevice push token to register for the driver.
platformstringrequiredDevice platform. May also be supplied as os.
osstringoptionalAlias for platform.
/v1/drivers/:id/register-devicecurl -X POST https://api.fleetbase.io/v1/drivers/:id/register-device \
-H "Authorization: Bearer flb_live_…" \
-H "Content-Type: application/json" \
-d '{
"token": "{{device_token}}",
"platform": "ios"
}'/v1/drivers/register-deviceRegister Device
Registers a driver device token through the non-id route.
tokenstringrequiredDevice push token to register.
platformstringrequiredDevice platform. May also be supplied as os.
osstringoptionalAlias for platform.
/v1/drivers/register-devicecurl -X POST https://api.fleetbase.io/v1/drivers/register-device \
-H "Authorization: Bearer flb_live_…" \
-H "Content-Type: application/json" \
-d '{
"token": "{{device_token}}",
"platform": "ios"
}'/v1/drivers/:id/switch-organizationSwitch Driver Organization
Switches the driver session to another organization.
nextstringrequiredOrganization ID to switch the driver session to.
/v1/drivers/:id/switch-organizationcurl -X POST https://api.fleetbase.io/v1/drivers/:id/switch-organization \
-H "Authorization: Bearer flb_live_…" \
-H "Content-Type: application/json" \
-d '{
"next": "{{organization_id}}"
}'/v1/drivers/:id/toggle-onlineToggle Driver Online
Toggles or sets driver online status.
onlinebooleanoptionalOnline status to set. When omitted, Fleetbase toggles the driver's current online status.
/v1/drivers/:id/toggle-onlinecurl -X POST https://api.fleetbase.io/v1/drivers/:id/toggle-online \
-H "Authorization: Bearer flb_live_…" \
-H "Content-Type: application/json" \
-d '{
"online": true
}'/v1/drivers/:id/organizationsList Driver Organizations
Lists organizations a driver belongs to.
/v1/drivers/:id/organizationscurl https://api.fleetbase.io/v1/drivers/:id/organizations \
-H "Authorization: Bearer flb_live_…"/v1/drivers/:id/current-organizationGet Driver Current Organization
Returns the driver current organization.
/v1/drivers/:id/current-organizationcurl https://api.fleetbase.io/v1/drivers/:id/current-organization \
-H "Authorization: Bearer flb_live_…"/v1/drivers/:id/simulateSimulate Driver Route
Simulates driver movement between two resolvable points, or pass order to simulate an order route.
startobjectoptionalStarting point for the simulated drive. Required when order is not supplied.
endobjectoptionalEnding point for the simulated drive. Required when order is not supplied.
orderstringoptionalOrder ID to simulate. Required when the action is order.
actionstringoptionalDefault: driveSimulation action. Defaults to drive.
/v1/drivers/:id/simulatecurl -X POST https://api.fleetbase.io/v1/drivers/:id/simulate \
-H "Authorization: Bearer flb_live_…" \
-H "Content-Type: application/json" \
-d '{
"start": {
"latitude": 1.3521,
"longitude": 103.8198
},
"end": {
"latitude": 1.2903,
"longitude": 103.8519
}
}'