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

allbooleanquery

Can only be used by admins or managers to fetch all entities

userIdintegerquery

Standard users can use this only with their own userId

deviceIdintegerquery

Standard users can use this only with _deviceId_s, they have access to

groupIdintegerquery

Standard users can use this only with _groupId_s, they have access to

refreshbooleanquery
limitintegerquery

Limit the number of returned results

offsetintegerquery

Offset for pagination

keywordstringquery

Search keyword filter

Response

OK

Response fields application/json
Show child attributes
idinteger<int64>

Unique driver identifier

namestring

Driver full name

uniqueIdstring

Unique external identifier for the driver

attributesobject

Custom driver attributes

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

namestring

Driver full name

uniqueIdstring

Unique external identifier for the driver

attributesobject

Custom driver attributes

Response

200OKDriver

OK

Response fields application/json
idinteger<int64>

Unique driver identifier

namestring

Driver full name

uniqueIdstring

Unique external identifier for the driver

attributesobject

Custom driver attributes

400Bad Request

Bad request

401Unauthorized

Unauthorized

Authorization

BasicAuthhttp (basic)
ApiKeyhttp (bearer)

Fetch a Driver

GET
https://demo.traccar.org/api/drivers/{id}

Parameters

idintegerrequiredpath

Response

200OKDriver

OK

Response fields application/json
idinteger<int64>

Unique driver identifier

namestring

Driver full name

uniqueIdstring

Unique external identifier for the driver

attributesobject

Custom driver attributes

401Unauthorized

Unauthorized

404Not Found

Not found

Authorization

BasicAuthhttp (basic)
ApiKeyhttp (bearer)

Update a Driver

PUT
https://demo.traccar.org/api/drivers/{id}

Body

application/json
idinteger<int64>

Unique driver identifier

namestring

Driver full name

uniqueIdstring

Unique external identifier for the driver

attributesobject

Custom driver attributes

Parameters

idintegerrequiredpath

Response

200OKDriver

OK

Response fields application/json
idinteger<int64>

Unique driver identifier

namestring

Driver full name

uniqueIdstring

Unique external identifier for the driver

attributesobject

Custom driver attributes

400Bad Request

Bad request

401Unauthorized

Unauthorized

Authorization

BasicAuthhttp (basic)
ApiKeyhttp (bearer)

Delete a Driver

DELETE
https://demo.traccar.org/api/drivers/{id}

Parameters

idintegerrequiredpath

Response

204No Content

No Content

401Unauthorized

Unauthorized

Authorization

BasicAuthhttp (basic)
ApiKeyhttp (bearer)