Devices
Device management
Fetch a list of Devices
Without any params, returns a list of the user's devices
Parameters
allbooleanqueryCan only be used by admins or managers to fetch all entities
userIdintegerqueryStandard users can use this only with their own userId
idintegerqueryTo fetch one or more devices. Multiple params can be passed like id=31&id=42
uniqueIdstringqueryTo fetch one or more devices. Multiple params can be passed like uniqueId=333331&uniqieId=44442
excludeAttributesbooleanqueryExclude attributes field from device payload
limitintegerqueryLimit the number of returned results
offsetintegerqueryOffset for pagination
keywordstringquerySearch keyword filter (searches name, uniqueId, phone, model, contact)
Response
OK
No permission
Authorization
BasicAuthhttp (basic)ApiKeyhttp (bearer)Create a Device
Body
idinteger<int64>Unique identifier assigned by Traccar
namestringHuman friendly device label
uniqueIdstringHardware or protocol specific unique identifier
statusstringCurrent connection status such as online, offline, or unknown
disabledbooleanWhether the device is disabled by an administrator
lastUpdatestring<date-time> | nullin ISO 8601 format. eg. 1963-11-22T18:30:00Z
positionIdinteger<int64> | nullIdentifier of the last known position
groupIdinteger<int64> | nullParent group identifier when the device is assigned to a group
phonestring | nullContact phone number used for SMS commands
modelstring | nullDevice model or hardware revision
contactstring | nullResponsible person's contact information
categorystring | nullFree form category used for grouping devices in the UI
attributesobjectCustom attributes for protocol or business specific data
Response
Authorization
BasicAuthhttp (basic)ApiKeyhttp (bearer)Fetch a Device
Parameters
idintegerrequiredpathResponse
Authorization
BasicAuthhttp (basic)ApiKeyhttp (bearer)Update a Device
Body
idinteger<int64>Unique identifier assigned by Traccar
namestringHuman friendly device label
uniqueIdstringHardware or protocol specific unique identifier
statusstringCurrent connection status such as online, offline, or unknown
disabledbooleanWhether the device is disabled by an administrator
lastUpdatestring<date-time> | nullin ISO 8601 format. eg. 1963-11-22T18:30:00Z
positionIdinteger<int64> | nullIdentifier of the last known position
groupIdinteger<int64> | nullParent group identifier when the device is assigned to a group
phonestring | nullContact phone number used for SMS commands
modelstring | nullDevice model or hardware revision
contactstring | nullResponsible person's contact information
categorystring | nullFree form category used for grouping devices in the UI
attributesobjectCustom attributes for protocol or business specific data
Parameters
idintegerrequiredpathResponse
Authorization
BasicAuthhttp (basic)ApiKeyhttp (bearer)Delete a Device
Parameters
idintegerrequiredpathResponse
No Content
Unauthorized
Authorization
BasicAuthhttp (basic)ApiKeyhttp (bearer)Update total distance and hours of the Device
Body
deviceIdinteger<int64>Device identifier for the accumulator entry
totalDistancenumberin meters
hoursnumberTotal engine hours recorded by the device
Parameters
idintegerrequiredpathResponse
No Content
Bad request
Unauthorized
Authorization
BasicAuthhttp (basic)ApiKeyhttp (bearer)Upload/Update Device image
Body
Parameters
idintegerrequiredpathResponse
OK
Invalid image type or size
Device not found
Authorization
BasicAuthhttp (basic)ApiKeyhttp (bearer)