Skip to main content

Demand vs Capacity Report

Per-shift saturation — available working minutes versus minutes spent on tasks, with a saturation percentage and an over/under/optimal classification for each driver shift.

GET/apidev/v1/reports/gt/demand-capacity
PermissionAPICLI_RPTGT_DEMANDACAPACIDAD
Rate Limit10 req/min
Cache300s
Max Range92 days

Overview​

This report contrasts how much working time each driver shift had available against how much of it was actually spent on tasks. For every recorded shift it returns the available minutes (clipped to the requested window and net of breaks), the minutes used on finished tasks, a saturation percentage, the number of tasks assigned, an estimated backlog left at close, and a classification of the shift as over-utilized (sobrecarga), under-utilized (subutilizacion), or optimal (optimo).

Unlike the other GT Advanced reports, results are returned one row per driver shift — they are not grouped by a chosen dimension. The group_by, sla_threshold_minutes, and revisit_window_days parameters do not apply to this report and are ignored if sent. Standard GT filters (device, driver, service type, etc.) narrow the tasks counted within each shift.


Request​

Request Headers​

Every request to a protected endpoint requires these headers:

HeaderRequiredDescription
AuthorizationYesBearer token obtained from the Login endpoint. Format: Bearer <token>
X-API-KeyYesCompany integration key provided during onboarding. Format: gtk_xxx...
tenantYesYour assigned tenant domain (default: geotareas.com) — always send your assigned tenant
Content-TypeConditionalapplication/json — required for POST and PUT requests

Query Parameters​

ParameterTypeRequiredDefaultDescription
startdatestringYes—ISO 8601 start date-time (e.g. 2026-03-01T00:00:00).
enddatestringYes—ISO 8601 end date-time. Max range 92 days from startdate.
devicesstringNo—Comma-separated device IDs. Max 500.
driversstringNo—Comma-separated driver IDs. Max 500.
providersstringNo—Comma-separated provider IDs. Max 100.
service_typesstringNo—Comma-separated service type IDs. Max 100.
causesstringNo—Comma-separated cause IDs. Max 100.
subcausesstringNo—Comma-separated subcause IDs. Max 100.
statusesstringNo—Comma-separated task status codes. Max 100.
device_groupsstringNoAllComma-separated device type IDs (the device_group catalog from Fleet / Devices). Filters tasks to devices of those types; combines with devices as an intersection. Max 100
originsstringNo—Comma-separated origin IDs. Max 100.
route_idsstringNo—Comma-separated route IDs. Max 100.
operatorsstringNo—Comma-separated operator IDs. Max 100.
client_idstringNo—Single client ID.
account_idstringNo—Single account ID.
shift_idstringNo—Single shift ID.
limitintegerNo25Number of records per page (1–100).
offsetintegerNo0Number of records to skip for pagination.
How device_groups combines with devices

device_groups is expanded to every device of those types, and if you also send devices, only the devices present in both lists are kept. If that intersection is empty the report returns no rows.

group_by, sla_threshold_minutes, and revisit_window_days are accepted by the shared query schema but have no effect on this report.


Code Examples​

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

Response​

Response Fields​

FieldTypeDescription
conjorlabidnumberShift (work session) ID.
conjorconidnumberDriver ID associated with the shift.
connomstringDriver name (Sin nombre when not resolvable).
conjorinifchstringShift start date-time.
conjorfinfchstringShift end date-time (clipped to the requested window).
minutos_disponiblesnumberAvailable working minutes, net of breaks.
minutos_usados_tareasnumberMinutes spent on finished tasks during the shift.
porcentaje_saturacionnumberSaturation percentage (minutes used / minutes available * 100).
clasificacionstringShift classification: sobrecarga (over), subutilizacion (under), or optimo (optimal).
tareas_asignadasnumberDistinct finished tasks assigned during the shift.
backlog_estimadonumberEstimated tasks still pending at the close of the shift's day.

Example Response​

{
"success": true,
"data": [
{
"conjorlabid": 88123,
"conjorconid": 10293,
"connom": "Carlos Martinez",
"conjorinifch": "2026-03-03T08:00:00",
"conjorfinfch": "2026-03-03T17:00:00",
"minutos_disponibles": 480,
"minutos_usados_tareas": 522,
"porcentaje_saturacion": 108.75,
"clasificacion": "sobrecarga",
"tareas_asignadas": 14,
"backlog_estimado": 3
}
],
"meta": {
"total": 1,
"limit": 25,
"offset": 0
}
}

Errors​

CodeHTTPDescription
VALIDATION_ERROR400Invalid params: missing dates, range > 92 days, invalid enum values.
UNAUTHORIZED401Missing, invalid, or expired tenant / Authorization / X-API-Key
FORBIDDEN403User lacks required permission.
RATE_LIMITED429Exceeded 10 req/min.
INTERNAL_ERROR500Unexpected server error.