API
List drivers
GET
https://lemurseye.com/api/v1/driversReturns every driver in your company, active or not.
Permission: drivers:read. The token is sent as Authorization: Bearer <token>; see Authentication.
Response
200 An array of drivers.
Response fields
iduuidThe driver's id.
namestringFull name.
phonestring | nullPhone number.
licenceNostring | nullDriving licence number.
licenceExpirydate | nullLicence expiry (
YYYY-MM-DD).tagIdstring | nullID tag (iButton / RFID) the tracker reads, unique in your company.
activebooleanInactive drivers keep their history but cannot sign in or be a vehicle's usual driver.
notesstring | nullFree text.
vehicleIdsuuid[]Vehicles whose usual driver this is.
hasCodebooleanWhether an app code has been issued (the code itself is never returned again).
createdAttimestampWhen the driver was added.
Errors
Where a message is listed, it comes back as JSON: { "error": "..." }. Otherwise only the status code is returned.
- 401
No token, or it has expired.
- 403
The token lacks the permission above.