Skip to main content

Proactivity by Task Report

Task-level compliance detail for a specific execution date — summary + individual task records.

GET/apidev/v1/reports/gt/proactivity-task
PermissionAPICLI_RPTGT_PROACTIVIDAD_TAREA
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-task?execution_date=2026-03-19&limit=25"

Response

The data field contains summary and tasks 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.

Tasks Array Fields

FieldTypeDescription
task_numberstring | nullTask number.
device_namestringVehicle name.
driver_namestringDriver name.
service_typestringService type.
causestringCause name.
statusstringTask status code.
scheduled_atstring | nullScheduled timestamp.
started_atstring | nullStarted timestamp.
finished_atstring | nullFinished timestamp.
client_namestringClient name.
account_namestringAccount name.

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
},
"tasks": [
{
"task_number": "104820580001",
"device_name": "Truck A-101",
"driver_name": "Carlos Martinez",
"service_type": "Maintenance",
"cause": "Scheduled",
"status": "FIN",
"scheduled_at": "2026-03-05T09:00:00",
"started_at": "2026-03-05T09:05:00",
"finished_at": "2026-03-05T10:30:00",
"client_name": "Client Corp",
"account_name": "Account Alpha"
}
]
},
"meta": {
"total": 47,
"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.