Retrieve a list of beacons assigned to your account. Narrow your search to a single beacon by including the mac query string parameter.
| mac | string A MAC address of a beacon. |
| vin | string A VIN of a beacon. |
| limit | string A limit of results for the query. May not be greater than 1000. |
| offset | string An offset of results for the query. |
| Authorization required | string A basic authorization header created from your API user's username and password. |
$ curl -H "Content-Type: application/json" \ -H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=" \ https://api.trucesoftware.com/beacons $ curl -H "Content-Type: application/json" \ -H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=" \ https://api.trucesoftware.com/beacons?mac=000000000000
{- "requestTimestamp": "string",
- "beacons": [
- {
- "company": {
- "name": "string",
- "id": 0
}, - "vin": "string",
- "communication": {
- "orientation": {
- "x": 0,
- "y": 0,
- "z": 0
}, - "utc": "string",
- "localized": "string",
- "device": "string"
}, - "firmwareVersion": "string",
- "customId": "string",
- "mac": "string",
- "group": {
- "name": "string",
- "id": 0
}, - "activationId": "string",
- "voltage": 0
}
]
}Update a beacons information
| mac required | string |
| Authorization required | string |
Update a beacon.
| vin | string The vin of the beacon. |
| customId | string The custom id you want assosiated with this beacon. |
number or string The group you want to set this beacon to. |
{- "vin": "string",
- "customId": "string",
- "groupId": 0
}{ }Retrieve a list of beacons assigned to a group on your account.
| groupId required | string |
| limit | string A limit of results for the query. May not be greater than 1000. |
| offset | string An offset of results for the query. |
| Authorization required | string A basic authorization header created from your API user's username and password. |
$ curl -H "Content-Type: application/json" \ -H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=" \ https://api.trucesoftware.com/groups/1234/beacons
{- "requestTimestamp": "string",
- "beacons": [
- {
- "company": {
- "name": "string",
- "id": 0
}, - "vin": "string",
- "communication": {
- "orientation": {
- "x": 0,
- "y": 0,
- "z": 0
}, - "utc": "string",
- "localized": "string",
- "device": "string"
}, - "firmwareVersion": "string",
- "customId": "string",
- "mac": "string",
- "group": {
- "name": "string",
- "id": 0
}, - "activationId": "string",
- "voltage": 0
}
]
}Returns a list of devices (i.e. phones, tablets, PCs, or any other device) added to your account.
| phoneNumber | string A phone number of a device. If the device does not have cellular service, this value may be also a serial number or some other unique identifier. They also must be unique system wide. |
| employeeId | string The company's custom identifier of the employee to which devices are assigned. |
| username | string The username of the employee to which devices are assigned. They also must be unique system wide. |
| limit | string A limit of results for the query. May not be greater than 1000. |
| offset | string An offset of results for the query. |
| Authorization required | string A basic authorization header created from your API user's username and password. |
$ curl -H "Content-Type: application/json" \ -H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=" \ https://api.trucesoftware.com/devices $ curl -H "Content-Type: application/json" \ -H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=" \ https://api.trucesoftware.com/devices?phoneNumber=5555555555 $ curl -H "Content-Type: application/json" \ -H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=" \ https://api.trucesoftware.com/devices?username=foo $ curl -H "Content-Type: application/json" \ -H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=" \ https://api.trucesoftware.com/devices?employeeId=bar
{- "requestTimestamp": "string",
- "devices": [
- {
- "app": {
- "wifi": true,
- "locationPermission": true,
- "communication": {
- "utc": {
- "lastActive": 0,
- "lastCommunicated": 0
}, - "localized": {
- "lastActive": "string",
- "lastCommunicated": "string"
}
}, - "version": "string",
- "notifications": true
}, - "optional": true,
- "createdDate": "string",
- "phoneNumber": "string",
- "provider": "string",
- "timezone": "string",
- "model": "string",
- "utilizationClassification": "string",
- "company": {
- "name": "string",
- "id": 0
}, - "type": "string",
- "employee": {
- "firstName": "string",
- "lastName": "string",
- "employeeId": "string",
- "id": 0,
- "email": "string",
- "username": "string"
}, - "group": {
- "city": "string",
- "name": "string",
- "state": "string",
- "id": 0
}
}
]
}Delete a device from an account.
| phoneNumber required | string The phone number of the device which must be unique system wide. |
| Authorization required | string A basic authorization header created from your API user's username and password. |
{- "requestTimestamp": "string",
- "devices": [
- {
- "app": {
- "wifi": true,
- "locationPermission": true,
- "communication": {
- "utc": {
- "lastActive": 0,
- "lastCommunicated": 0
}, - "localized": {
- "lastActive": "string",
- "lastCommunicated": "string"
}
}, - "version": "string",
- "notifications": true
}, - "optional": true,
- "createdDate": "string",
- "phoneNumber": "string",
- "provider": "string",
- "timezone": "string",
- "model": "string",
- "utilizationClassification": "string",
- "company": {
- "name": "string",
- "id": 0
}, - "type": "string",
- "employee": {
- "firstName": "string",
- "lastName": "string",
- "employeeId": "string",
- "id": 0,
- "email": "string",
- "username": "string"
}, - "group": {
- "city": "string",
- "name": "string",
- "state": "string",
- "id": 0
}
}
]
}Returns a list of devices (i.e. phones, tablets, PCs, or any other device) assigned to users of a group.
| groupId required | string |
| limit | string A limit of results for the query. May not be greater than 1000. |
| offset | string An offset of results for the query. |
| Authorization required | string A basic authorization header created from your API user's username and password. |
$ curl -H "Content-Type: application/json" \ -H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=" \ https://api.trucesoftware.com/groups/1234/devices
{- "requestTimestamp": "string",
- "devices": [
- {
- "app": {
- "wifi": true,
- "locationPermission": true,
- "communication": {
- "utc": {
- "lastActive": 0,
- "lastCommunicated": 0
}, - "localized": {
- "lastActive": "string",
- "lastCommunicated": "string"
}
}, - "version": "string",
- "notifications": true
}, - "optional": true,
- "createdDate": "string",
- "phoneNumber": "string",
- "provider": "string",
- "timezone": "string",
- "model": "string",
- "utilizationClassification": "string",
- "company": {
- "name": "string",
- "id": 0
}, - "type": "string",
- "employee": {
- "firstName": "string",
- "lastName": "string",
- "employeeId": "string",
- "id": 0,
- "email": "string",
- "username": "string"
}, - "group": {
- "city": "string",
- "name": "string",
- "state": "string",
- "id": 0
}
}
]
}Returns a list of devices (i.e. phones, tablets, PCs, or any other device) assigned to an employee on your account.
| userId required | string The internal TRUCE identifier of an employee. |
| limit | string A limit of results for the query. May not be greater than 1000. |
| offset | string An offset of results for the query. |
| Authorization required | string A basic authorization header created from your API user's username and password. |
{- "requestTimestamp": "string",
- "devices": [
- {
- "app": {
- "wifi": true,
- "locationPermission": true,
- "communication": {
- "utc": {
- "lastActive": 0,
- "lastCommunicated": 0
}, - "localized": {
- "lastActive": "string",
- "lastCommunicated": "string"
}
}, - "version": "string",
- "notifications": true
}, - "optional": true,
- "createdDate": "string",
- "phoneNumber": "string",
- "provider": "string",
- "timezone": "string",
- "model": "string",
- "utilizationClassification": "string",
- "company": {
- "name": "string",
- "id": 0
}, - "type": "string",
- "employee": {
- "firstName": "string",
- "lastName": "string",
- "employeeId": "string",
- "id": 0,
- "email": "string",
- "username": "string"
}, - "group": {
- "city": "string",
- "name": "string",
- "state": "string",
- "id": 0
}
}
]
}Returns a list of groups on your account.
| limit | string A limit of results for the query. May not be greater than 1000. |
| offset | string An offset of results for the query. |
| Authorization required | string A basic authorization header created from your API user's username and password. |
$ curl -H "Content-Type: application/json" \ -H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=" \ https://api.trucesoftware.com/beacons/groups
{- "requestTimestamp": "string",
- "groups": [
- {
- "zip": "string",
- "country": "string",
- "address": "string",
- "city": "string",
- "name": "string",
- "parentId": 0,
- "company": {
- "name": "string",
- "id": 0
}, - "state": "string",
- "id": 0
}
]
}A way to create a group via api.
| Authorization | string |
Create a group.
| name | string The name of the group you are creating. |
| parentName | string The name of the parent for the group you are creating. |
| address | string A group's address. |
| city | string A group's city. |
| state | string The state a group exists in |
| zip | string A group's zip. |
| country | string A group's country. |
{- "name": "string",
- "parentName": "string",
- "address": "string",
- "city": "string",
- "state": "string",
- "zip": "string",
- "country": "string"
}{ }Returns a group on your account.
| groupId required | string |
| Authorization required | string A basic authorization header created from your API user's username and password. |
$ curl -H "Content-Type: application/json" \ -H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=" \ https://api.trucesoftware.com/beacons/groups/1234
{- "requestTimestamp": "string",
- "groups": [
- {
- "zip": "string",
- "country": "string",
- "address": "string",
- "city": "string",
- "name": "string",
- "parentId": 0,
- "company": {
- "name": "string",
- "id": 0
}, - "state": "string",
- "id": 0
}
]
}Update a groups information.
| groupId required | string |
| Authorization required | string |
Update a group.
| name | string The name of the group. |
| city | string The city of the group. |
| state | string The state of the group. |
| zip | string The zipcode of the group. |
| country | string |
| address | string The address of the group. |
number or string Id of the group you want to set as the parent |
{- "name": "string",
- "city": "string",
- "state": "string",
- "zip": "string",
- "country": "string",
- "address": "string",
- "parentId": 0
}{ }Returns a list of employees assigned to a group.
| groupId required | string |
| limit | string A limit of results for the query. May not be greater than 1000. |
| offset | string An offset of results for the query. |
| Authorization required | string A basic authorization header created from your API user's username and password. |
$ curl -H "Content-Type: application/json" \ -H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=" \ https://api.trucesoftware.com/groups/1234/employees
{ }Returns a list of employees assigned to your account.
| username | string The username of a user assigned to your account. They also must be unique system wide. |
| userId | string The internal TRUCE identifier of a employee assigned to your account. |
| employeeId | string The company's custom employee identifier. |
| limit | string A limit of results for the query. May not be greater than 1000. |
| offset | string An offset of results for the query. |
| Authorization required | string A basic authorization header created from your API user's username and password. |
$ curl -H "Content-Type: application/json" \ -H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=" \ https://api.trucesoftware.com/employees $ curl -H "Content-Type: application/json" \ -H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=" \ https://api.trucesoftware.com/employees?username=foo
{- "requestTimestamp": "string",
- "employees": [
- {
- "id": "string",
- "firstName": "string",
- "lastName": "string",
- "email": "string",
- "timezone": "string",
- "employeeId": "string",
- "company": {
- "name": "string",
- "id": "string"
}, - "username": "string",
- "jobTitle": "string",
- "jobCode": "string",
- "notes": "string",
- "group": {
- "name": "string",
- "id": "string"
}, - "policyId": "string",
- "utilizationClassification": "string",
- "admin": true,
- "adminSettings": {
- "designateAdmins": true,
- "viewTelematics": true,
- "groupAccess": [
- "string"
], - "permissions": {
- "Employees": "view",
- "Devices": "view",
- "Beacons": "view",
- "Communication": "view",
- "Groups": "view",
- "Policy": "view",
- "Permissions": "view",
- "Account": "view",
- "Mdm": "view",
- "Messages": "view"
}
}
}
]
}Allows you to create an employee.
| Authorization | string A basic authorization header created from your API user's username and password. |
Create an Employee.
| zip | string The zip of the employee. |
| lastName | string The last name of the employee. |
| address | string The address of the employee. |
| city | string The city of the employee. |
| state | string The state of the employee. |
number or string The policy that you want the user to be a part of | |
Array of objects A list of devices to be associated with this employee. | |
| admin | boolean Determines whether the employee is an admin. |
| employeeId | string A unique identifier for the employee. In typical usage, this will correlate with an identifier in an external database or system. |
| firstName | string The first name of the employee. |
| password | string The password of the employee. |
| overrideBlocking | boolean Determines whether the employee is able to override blocking. |
string The email address of the employee. | |
| username | string The username of the employee which must be unique system wide. |
| group | string The name of the group to which the employee should be added. |
| jobTitle | string Job title of the employee. |
| jobCode | string Job code of the employee. |
| notes | string The notes about an employee. |
object Fine-grained control of admin settings |
{- "zip": "string",
- "lastName": "string",
- "address": "string",
- "city": "string",
- "state": "string",
- "policyId": 0,
- "devices": [
- {
- "optional": true,
- "ownership": "string",
- "formFactor": "string",
- "deploymentMethod": "string",
- "device": "string",
- "operatingSystem": "string",
- "requirementDelay": "string"
}
], - "admin": true,
- "employeeId": "string",
- "firstName": "string",
- "password": "string",
- "overrideBlocking": true,
- "email": "string",
- "username": "string",
- "group": "string",
- "jobTitle": "string",
- "jobCode": "string",
- "notes": "string",
- "adminSettings": {
- "designateAdmins": true,
- "viewTelematics": true,
- "groupAccess": [
- "string"
], - "permissions": {
- "Employees": "view",
- "Devices": "view",
- "Beacons": "view",
- "Communication": "view",
- "Groups": "view",
- "Policy": "view",
- "Permissions": "view",
- "Account": "view",
- "Mdm": "view",
- "Messages": "view"
}
}
}{- "userId": 0
}Returns an employee assigned to your account.
| userId required | string The internal TRUCE identifier for an employee. |
| Authorization required | string A basic authorization header created from your API user's username and password. |
{- "requestTimestamp": "string",
- "employees": [
- {
- "id": "string",
- "firstName": "string",
- "lastName": "string",
- "email": "string",
- "timezone": "string",
- "employeeId": "string",
- "company": {
- "name": "string",
- "id": "string"
}, - "username": "string",
- "jobTitle": "string",
- "jobCode": "string",
- "notes": "string",
- "group": {
- "name": "string",
- "id": "string"
}, - "policyId": "string",
- "utilizationClassification": "string",
- "admin": true,
- "adminSettings": {
- "designateAdmins": true,
- "viewTelematics": true,
- "groupAccess": [
- "string"
], - "permissions": {
- "Employees": "view",
- "Devices": "view",
- "Beacons": "view",
- "Communication": "view",
- "Groups": "view",
- "Policy": "view",
- "Permissions": "view",
- "Account": "view",
- "Mdm": "view",
- "Messages": "view"
}
}
}
]
}Update an employee's information which includes updating an employee's phone number.
| userId required | string An internal TRUCE identifier for an employee |
| Authorization required | string |
Update an Employee.
| userName | string The username of the employee which must be unique system wide. |
| city | string The city of the employee. |
| state | string The state of the employee. |
| zip | string The zipcode of the employee. |
| address | string The address of the employee. |
| firstName | string First name of the employee |
| lastName | string Last name of the employee |
| employeeId | string Provided external id of the employee |
number or string Group id of the group you want that user assigned to. | |
string The email of the employee. | |
number or string The policy this employee is assigned to | |
| jobTitle | string Job title of the employee. |
| jobCode | string Job code of the employee. |
| notes | string Notes about an employee |
Array of objects A list of devices to be associated with this employee. | |
| admin | boolean Determines whether the employee is an admin. |
object Fine-grained control of admin settings |
{- "userName": "string",
- "city": "string",
- "state": "string",
- "zip": "string",
- "address": "string",
- "firstName": "string",
- "lastName": "string",
- "employeeId": "string",
- "groupId": 0,
- "email": "string",
- "policyId": 0,
- "jobTitle": "string",
- "jobCode": "string",
- "notes": "string",
- "devices": [
- {
- "optional": true,
- "ownership": "string",
- "formFactor": "string",
- "deploymentMethod": "string",
- "device": "string",
- "operatingSystem": "string",
- "requirementDelay": "string"
}
], - "admin": true,
- "adminSettings": {
- "designateAdmins": true,
- "viewTelematics": true,
- "groupAccess": [
- "string"
], - "permissions": {
- "Employees": "view",
- "Devices": "view",
- "Beacons": "view",
- "Communication": "view",
- "Groups": "view",
- "Policy": "view",
- "Permissions": "view",
- "Account": "view",
- "Mdm": "view",
- "Messages": "view"
}
}
}{ }Delete an employee from your account.
| userId required | string The internal TRUCE identifier of an employee. |
| Authorization required | string A basic authorization header created from your API user's username and password. |
{- "userId": 0
}Returns a list of the entity's policy.
| userId | string The internal TRUCE identifier of an employee. |
| policyId | string The internal TRUCE identifier of an policy. |
| policyName | string The name of an policy. |
| limit | string The the amount of records you want to retrieve at one time (max = 100). |
| offset | string The how many records you want to offset your results by. |
| Authorization required | string A basic authorization header created from your API user's username and password. |
{- "policy": [
- {
- "policyId": 0,
- "policyName": "string",
- "createdDate": "string",
- "blockText": true,
- "blockCall": true,
- "blockEmail": true,
- "violationEmail": "string",
- "allowHeadset": true
}
], - "requestTimestamp": "string"
}Retrieve all sessions
| phoneNumber | string |
| rangeStartTime | string |
| rangeEndTime | string |
| mac | string |
| limit | string |
| day | string |
| offset | string |
| Authorization required | string |
{- "sessions": [
- {
- "groupId": 0,
- "drivingScore": 0,
- "startTime": {
- "utc": 0,
- "localized": "string"
}, - "endTime": {
- "utc": 0,
- "localized": "string"
}, - "id": 0,
- "phoneScore": 0,
- "employee": {
- "id": 0,
- "username": "string",
- "firstName": "string",
- "lastName": "string",
- "email": "string",
- "employeeId": "string"
}, - "device": {
- "optional": true,
- "talkTime": 0,
- "appVersion": "string",
- "phoneCalls": {
- "blocked": {
- "outgoing": 0,
- "incoming": 0
}, - "allowed": {
- "outgoing": 0,
- "incoming": 0
}
}, - "phoneNumber": "string",
- "timezone": "string",
- "handsfreeTime": 0,
- "allowedAppUsageTime": 0,
- "appsBlocked": 0,
- "appUsageTime": 0,
- "unlockedTime": 0
}, - "brakingEvents": {
- "mild": 0,
- "severe": 0,
- "moderate": 0
}, - "mac": "string",
- "miles": 0
}
], - "requestTimestamp": "string"
}Retrieve session information from a sessions I.D
| sessionId required | string |
| Authorization required | string |
{- "sessions": [
- {
- "groupId": 0,
- "drivingScore": 0,
- "startTime": {
- "utc": 0,
- "localized": "string"
}, - "endTime": {
- "utc": 0,
- "localized": "string"
}, - "id": 0,
- "phoneScore": 0,
- "employee": {
- "id": 0,
- "username": "string",
- "firstName": "string",
- "lastName": "string",
- "email": "string",
- "employeeId": "string"
}, - "device": {
- "optional": true,
- "talkTime": 0,
- "appVersion": "string",
- "phoneCalls": {
- "blocked": {
- "outgoing": 0,
- "incoming": 0
}, - "allowed": {
- "outgoing": 0,
- "incoming": 0
}
}, - "phoneNumber": "string",
- "timezone": "string",
- "handsfreeTime": 0,
- "allowedAppUsageTime": 0,
- "appsBlocked": 0,
- "appUsageTime": 0,
- "unlockedTime": 0
}, - "brakingEvents": {
- "mild": 0,
- "severe": 0,
- "moderate": 0
}, - "mac": "string",
- "miles": 0
}
], - "requestTimestamp": "string"
}Get a List of Aggregated Sessions by Date
| date required | string |
| limit | string A limit of results for the query. May not be greater than 1000. |
| offset | string An offset of results for the query. |
| Authorization required | string |
{- "requestTimestamp": "string",
- "aggregates": [
- {
- "obd": {
- "averageIdleTime": 0,
- "idleTime": 0,
- "idlePercentEngineTime": 0
}, - "average": {
- "travelTime": 0,
- "stops": 0,
- "miles": 0
}, - "activeDriverCount": 0,
- "activeDriverDays": 0,
- "totals": {
- "travelTime": 0,
- "stops": 0,
- "miles": 0
}, - "group": {
- "parent": "string",
- "name": "string",
- "id": 0
}
}
]
}Retrieve all sessions of a particular employee
| userId required | string The internal TRUCE identifier of an employee |
| rangeStartTime | string |
| rangeEndTime | string |
| day | string |
| limit | string |
| offset | string |
| Authorization required | string |
{- "sessions": [
- {
- "groupId": 0,
- "drivingScore": 0,
- "startTime": {
- "utc": 0,
- "localized": "string"
}, - "endTime": {
- "utc": 0,
- "localized": "string"
}, - "id": 0,
- "phoneScore": 0,
- "employee": {
- "id": 0,
- "username": "string",
- "firstName": "string",
- "lastName": "string",
- "email": "string",
- "employeeId": "string"
}, - "device": {
- "optional": true,
- "talkTime": 0,
- "appVersion": "string",
- "phoneCalls": {
- "blocked": {
- "outgoing": 0,
- "incoming": 0
}, - "allowed": {
- "outgoing": 0,
- "incoming": 0
}
}, - "phoneNumber": "string",
- "timezone": "string",
- "handsfreeTime": 0,
- "allowedAppUsageTime": 0,
- "appsBlocked": 0,
- "appUsageTime": 0,
- "unlockedTime": 0
}, - "brakingEvents": {
- "mild": 0,
- "severe": 0,
- "moderate": 0
}, - "mac": "string",
- "miles": 0
}
], - "requestTimestamp": "string"
}Retrieve all sessions of a particular group
| groupId required | string |
| limit | string A limit of results for the query. May not be greater than 1000. |
| offset | string An offset of results for the query. |
| Authorization required | string |
{- "sessions": [
- {
- "groupId": 0,
- "drivingScore": 0,
- "startTime": {
- "utc": 0,
- "localized": "string"
}, - "endTime": {
- "utc": 0,
- "localized": "string"
}, - "id": 0,
- "phoneScore": 0,
- "employee": {
- "id": 0,
- "username": "string",
- "firstName": "string",
- "lastName": "string",
- "email": "string",
- "employeeId": "string"
}, - "device": {
- "optional": true,
- "talkTime": 0,
- "appVersion": "string",
- "phoneCalls": {
- "blocked": {
- "outgoing": 0,
- "incoming": 0
}, - "allowed": {
- "outgoing": 0,
- "incoming": 0
}
}, - "phoneNumber": "string",
- "timezone": "string",
- "handsfreeTime": 0,
- "allowedAppUsageTime": 0,
- "appsBlocked": 0,
- "appUsageTime": 0,
- "unlockedTime": 0
}, - "brakingEvents": {
- "mild": 0,
- "severe": 0,
- "moderate": 0
}, - "mac": "string",
- "miles": 0
}
], - "requestTimestamp": "string"
}