Skip to main content

Proactivity by Device Report

Device-level task compliance for a specific execution date — summary + per-device breakdown.

GET/apidev/v1/reports/gt/proactivity-device
PermissionAPICLI_RPTGT_PROACTIVIDAD_DISP
Rate Limit10 req/min
Cache60s (1 min)

Request

Query Parameters

ParameterTypeRequiredDefaultDescription
execution_datestringYesISO 8601 date (e.g. 2026-03-19). Single date, not a range.
realtimebooleanNoInclude real-time data.
devicesstringNoComma-separated device IDs. Max 500.
driversstringNoComma-separated driver IDs. Max 500.
service_typesstringNoComma-separated service type IDs. Max 100.
causesstringNoComma-separated cause IDs. Max 100.
subcausesstringNoComma-separated subcause IDs. Max 100.
countriesstringNoComma-separated country IDs. Max 50.
departmentsstringNoComma-separated department IDs. Max 50.
geofencesstringNoComma-separated geofence IDs. Max 100.
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/proactivity-device?execution_date=2026-03-19&limit=25"

Response

The data field contains summary and devices objects instead of a flat array.

Summary Fields

FieldTypeDescription
total_devicesnumberTotal devices with activity.
total_tasksnumberTotal task count.
tasks_finishednumberFinished tasks.
tasks_pendingnumberPending tasks.
tasks_in_progressnumberIn-progress tasks.
tasks_cancellednumberCancelled tasks.
compliance_pctnumberCompliance percentage.

Devices Array Fields

FieldTypeDescription
device_idstring | nullDevice identifier.
device_namestringVehicle name.
driver_namestringDriver name.
total_tasksnumberTasks assigned to device.
tasks_finishednumberFinished tasks.
tasks_pendingnumberPending tasks.
tasks_in_progressnumberIn-progress tasks.
compliance_pctnumberDevice compliance percentage.

Example Response

{
"success": true,
"data": {
"summary": {
"total_devices": 5,
"total_tasks": 47,
"tasks_finished": 35,
"tasks_pending": 8,
"tasks_in_progress": 3,
"tasks_cancelled": 1,
"compliance_pct": 74.47
},
"devices": [
{
"device_id": "104820579301",
"device_name": "Truck A-101",
"driver_name": "Carlos Martinez",
"total_tasks": 12,
"tasks_finished": 10,
"tasks_pending": 1,
"tasks_in_progress": 1,
"compliance_pct": 83.33
}
]
},
"meta": {
"total": 5,
"limit": 25,
"offset": 0
}
}

Errors

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