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
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.
statusesstringNoComma-separated status codes. Max 50.
service_type_idstringNoSingle service type ID.
cause_idstringNoSingle cause ID.
date_typeenumNocreatedDate field to filter by: created, scheduled, finished.
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/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 | nullTask identifier.
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.

Example Response

{
"success": true,
"data": [
{
"task_id": "104820580001",
"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": [
{"status": "ASI", "datetime": "2026-03-05T08:15:00"},
{"status": "ACE", "datetime": "2026-03-05T08:22:00"},
{"status": "FIN", "datetime": "2026-03-05T10:30:00"}
]
}
],
"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.