Skip to main content

Productivity Report

Task productivity metrics per vehicle/driver — task counts, hours, kilometers, and occupancy.

GET/apidev/v1/reports/gt/productivity
PermissionAPICLI_RPTGT_PRODUCTIVIDAD
Rate Limit10 req/min
Cache300s
Max Range31 days

Request

Query Parameters

ParameterTypeRequiredDefaultDescription
startdatestringYesISO 8601 start date-time (e.g. 2026-03-01T00:00:00).
enddatestringYesISO 8601 end date-time. Max range 31 days from startdate.
devicesstringNoComma-separated device IDs. Max 500.
driversstringNoComma-separated driver IDs. Max 500.
device_groupsstringNoComma-separated device group IDs. Max 100.
service_typesstringNoComma-separated service type IDs. Max 100.
group_by_personbooleanNofalseGroup results by driver instead of device.
limitintegerNo25Number of records per page (1100).
offsetintegerNo0Number of records to skip for pagination.

Code Examples

curl -s -H "Authorization: Bearer $TOKEN" \
-H "X-API-Key: $APIKEY" \
-H "tenant: $TENANT" \
"https://$TENANT/apidev/v1/reports/gt/productivity?startdate=2026-03-01T00:00:00&enddate=2026-03-15T23:59:59&limit=25"

Response

Response Fields

FieldTypeDescription
service_typestringService type name.
driver_namestringDriver name.
device_namestringVehicle name.
unscheduled_tasksnumberCount of unscheduled tasks.
scheduled_tasksnumberCount of scheduled tasks.
total_tasksnumberTotal task count.
task_hoursnumberHours spent on tasks.
shift_hoursnumberTotal shift hours.
kms_workednumberKilometers during tasks.
kms_idealnumberIdeal/planned kilometers.
kms_shiftnumberTotal shift kilometers.
avg_arrival_timenumberAverage arrival time (seconds).
occupancynumberOccupancy rate percentage.

Example Response

{
"success": true,
"data": [
{
"service_type": "Maintenance",
"driver_name": "Carlos Martinez",
"device_name": "Truck A-101",
"unscheduled_tasks": 3,
"scheduled_tasks": 12,
"total_tasks": 15,
"task_hours": 6.5,
"shift_hours": 8.0,
"kms_worked": 142.3,
"kms_ideal": 135.0,
"kms_shift": 180.0,
"avg_arrival_time": 1842,
"occupancy": 81.25
}
],
"meta": {
"total": 1,
"limit": 25,
"offset": 0
}
}

Errors

CodeHTTPDescription
BAD_REQUEST400Missing required headers.
VALIDATION_ERROR400Invalid params: missing dates, range > 31 days, invalid enum values.
UNAUTHORIZED401Invalid or expired JWT / API Key.
FORBIDDEN403User lacks required permission.
RATE_LIMITED429Exceeded 10 req/min.
INTERNAL_ERROR500Unexpected server error.