Fleet setup
Drivers
Drivers management
Fetch a list of Drivers
GET
https://demo.traccar.org/api/drivers
Without params, it returns a list of Drivers the user has access to
Parameters
allbooleanqueryCan only be used by admins or managers to fetch all entities
userIdintegerqueryStandard users can use this only with their own userId
deviceIdintegerqueryStandard users can use this only with _deviceId_s, they have access to
groupIdintegerqueryStandard users can use this only with _groupId_s, they have access to
refreshbooleanquerylimitintegerqueryLimit the number of returned results
offsetintegerqueryOffset for pagination
keywordstringquerySearch keyword filter
Response
OK
401Unauthorized
Unauthorized
Authorization
BasicAuthhttp (basic)ApiKeyhttp (bearer)Create a Driver
POST
https://demo.traccar.org/api/drivers
Body
application/json
idinteger<int64>Unique driver identifier
namestringDriver full name
uniqueIdstringUnique external identifier for the driver
attributesobjectCustom driver attributes
Response
Authorization
BasicAuthhttp (basic)ApiKeyhttp (bearer)Fetch a Driver
GET
Parameters
idintegerrequiredpathResponse
Authorization
BasicAuthhttp (basic)ApiKeyhttp (bearer)Update a Driver
PUT
Body
application/json
idinteger<int64>Unique driver identifier
namestringDriver full name
uniqueIdstringUnique external identifier for the driver
attributesobjectCustom driver attributes
Parameters
idintegerrequiredpathResponse
Authorization
BasicAuthhttp (basic)ApiKeyhttp (bearer)Delete a Driver
DELETE
Parameters
idintegerrequiredpathResponse
204No Content
No Content
401Unauthorized
Unauthorized
Authorization
BasicAuthhttp (basic)ApiKeyhttp (bearer)