Skip to main content

Tasks General Report

Individual task records with status timeline and assignment details.

GET/apidev/v1/reports/gt/tasks-general
PermissionAPICLI_RPTGT_TAREAS
Rate Limit10 req/min
Cache300s
Max Range31 days

Overview​

Returns individual task records over a date range, each with its full status timeline (assigned, accepted, started, finished) plus the assigned vehicle and driver. Filter by devices, drivers, status codes, service type, or cause, and choose which date field (created, scheduled, or finished) the range applies to.


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 31 days from startdate.
devicesstringNo—Comma-separated device IDs. Max 500.
driversstringNo—Comma-separated driver IDs. Max 500.
statusesstringNo—Comma-separated status codes. Max 50.
service_type_idstringNo—Single service type ID.
cause_idstringNo—Single cause ID.
date_typeenumNocreatedDate field to filter by: created, scheduled, finished.
limitintegerNo25Number of records per page (1–100).
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/tasks-general?startdate=2026-03-01T00:00:00&enddate=2026-03-15T23:59:59&date_type=created&limit=25"

Response​

Response Fields​

FieldTypeDescription
task_idstring | nullInternal task identifier (Snowflake). Not the number shown on screen — see service_number.
service_numberstring | nullTask number as displayed to operators and customers.
assistance_numberstringAssistance number.
account_namestringAccount name.
account_external_codestringAccount unique/external code.
client_namestringClient name.
status_namestringCurrent task status, already resolved to its human label.
cause_namestringOrigin cause.
contactstringTask contact person.
route_namestringAssigned route.
communication_channelstringCommunication template / channel used to create the task.
completion_codestringCompletion (end-of-service) code.
created_atstring | nullTask creation timestamp.
scheduled_atstring | nullScheduled timestamp.
accepted_atstring | nullAccepted timestamp.
started_atstring | nullStarted timestamp.
finished_atstring | nullFinished timestamp.
device_namestringAssigned vehicle.
driver_namestringAssigned driver.
statusesarrayStatus history entries. Empty by default: the status-detail columns are turned off in the web report and the underlying subquery is expensive, so it is not requested.
Task identifiers

task_id is the internal Snowflake ID; service_number is the number your operators and customers actually use. Reconcile against the web report with service_number.

Example Response​

{
"success": true,
"data": [
{
"task_id": "104820580001",
"service_number": "55012",
"assistance_number": "A-7734",
"account_name": "Logistica Sur S.A.",
"account_external_code": "EXT-9912",
"client_name": "Seguros del Plata",
"status_name": "Finished",
"cause_name": "Breakdown",
"contact": "Ana Perez",
"route_name": "North Route",
"communication_channel": "Web",
"completion_code": "Resolved on site",
"created_at": "2026-03-05T08:15:00",
"scheduled_at": "2026-03-05T09:00:00",
"accepted_at": "2026-03-05T08:22:00",
"started_at": "2026-03-05T09:05:00",
"finished_at": "2026-03-05T10:30:00",
"device_name": "Truck A-101",
"driver_name": "Carlos Martinez",
"statuses": []
}
],
"meta": {
"total": 1,
"limit": 25,
"offset": 0
}
}

Errors​

CodeHTTPDescription
VALIDATION_ERROR400Invalid params: missing dates, range > 31 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.