Download OpenAPI specification:
Metrotec API is a RESTful web service that allows developers to programmatically interact with Metrotec data over HTTPS using JSON. The base URL for the Metrotec API is https://api.metrotec.ee/api/ If you have questions about using the API or need to report a bug, please email us at info@metrotec.ee.
Set a clearly identifiable User-Agent HTTP header that uniquely identifies your company and integration software. Please use only printable ASCII characters. Examples of good practice (substitute your own names):
User-Agent: MyDomain.com
User-Agent: MyApplication
User-Agent: MyApplication/1.0.0
User-Agent: MyApplication/1.0.0 (api-requests/1.0.0)
All API requests must specify the version of the API that your integration was built with.
Add this version number to the Accept HTTP header as an additional argument.
Replace X.Y.Z in the following example with the most recent version number shown at the top of the documentation page:
GET /routelog/ HTTP/1.1
Host: api.metrotec.ee
Accept: application/json; version=X.Y.Z
User-Agent: MyApplication/1.0.0
You can use the browsable API without specifying a version for development purposes, but all production system requests must include the version in the Accept header.
The API responds with names and labels in English by default. To receive localized responses, indicate your preferred language using the appropriate HTTP header.
Timestamps in the API are in UTC by default. Timestamps displayed in the web and mobile apps use the account timezone, which typically differs from UTC.
Metrotec uses conventional HTTP response codes to indicate the success or failure of API requests: - 2xx range: Success - 4xx range: Error based on provided information - 5xx range: Error with Metrotec's servers
| Status code | Status text | Description |
|---|---|---|
| 200 | OK | Request succeeded |
| 400 | Bad Request | Often missing a required parameter |
| 401 | Unauthorized | No valid auth token provided |
| 404 | Resource not found | Parameters were valid but request not found |
| 50* | Server Errors | Something went wrong on our end |
Use your Metrotec username and password for API authentication. See the "Authorization" section for information on generating an API token.
To authenticate, include the token in the Authorization HTTP header:
Authorization: Bearer [token]
Version 1.0.0:
Version 1.1.0:
| username required | string User account username |
| password required | string User account password |
{- "username": "string",
- "password": "string"
}{- "jwt": "string",
- "expires": 0
}| limit | integer Examples: limit=-1 limit=100 Number or results to return. -1 means return all. |
| offset | integer Examples: offset=0 offset=100 From which records to return. 0 means from the start |
| all | integer Examples: all=1 all=0 If set to 1, then return all results. 0 or empty returns only active (not finished) records. |
Example response for basic standard task with core fields only
[- {
- "id": 12346,
- "oid": "metrotec",
- "object_id": "ABC123",
- "lat": 59.437,
- "lon": 24.754,
- "start_lat": null,
- "start_lon": null,
- "start_address": null,
- "start_time": "2025-01-20 08:00:00",
- "stop_time": "2025-01-20 17:00:00",
- "order_ref": "ORDER-2025-001",
- "order_details": null,
- "task_address": "Tallinn, Estonia",
- "task_description": "Standard delivery task",
- "cancel_reason": null,
- "status": 1,
- "created_at": "2025-01-19 16:00:00",
- "updated_at": "2025-01-19 16:00:00",
- "work_started_at": null,
- "work_finished_at": null,
- "sender": "DispatchSystem",
- "invoice_nr": null,
- "user_km": null,
- "distance": null,
- "geozone_entered_at": null,
- "geozone_left_at": null,
- "closeType": null,
- "planned_km": null,
- "ut": 1705747200,
- "alias": "Delivery Van 3",
- "task_notes": null,
- "active": true,
- "group_id": null,
- "is_not_own_vehicle": false
}
]| object_id required | string Vehicle registration number |
| start_lat | number <float> Starting point latitude |
| start_lon | number <float> Starting point longitude |
| start_address | string Starting point address |
| lat required | number <float> Destination latitude |
| lon required | number <float> Destination longitude |
| start_time required | string <date-time> Task start time (UTC, YYYY-MM-DD HH:MM:SS) |
| stop_time required | string <date-time> Task expected stop time (UTC, YYYY-MM-DD HH:MM:SS) |
| order_ref required | string Reference number from your system (must be unique) |
| order_details | string Order details, client name, etc. |
| task_address | string Task location address |
| task_description | string Task description |
| planned_km | number Planned distance between start and stop points in kilometers |
| task_notes | string Additional notes for the task |
| status | integer Enum: 1 2 3 4 5 Task status on creation (1=Created, 2=In progress, 3=Completed, 4=Rejected, 5=Cancelled) |
| is_not_own_vehicle | boolean Whether the task uses own vehicle or not |
| active | boolean Whether the task is active |
| group_id | integer Task group identifier |
Basic task with core fields only
{- "object_id": "ABC123",
- "lat": 59.437,
- "lon": 24.754,
- "start_time": "2025-01-20 08:00:00",
- "stop_time": "2025-01-20 17:00:00",
- "order_ref": "ORDER-2025-001",
- "task_address": "Tallinn, Estonia",
- "task_description": "Standard delivery task",
- "active": true
}Complete standard task object with core fields only
{- "id": 12346,
- "oid": "metrotec",
- "object_id": "ABC123",
- "lat": 59.437,
- "lon": 24.754,
- "start_lat": null,
- "start_lon": null,
- "start_address": null,
- "start_time": "2025-01-20 08:00:00",
- "stop_time": "2025-01-20 17:00:00",
- "order_ref": "ORDER-2025-001",
- "order_details": null,
- "task_address": "Tallinn, Estonia",
- "task_description": "Standard delivery task",
- "cancel_reason": null,
- "status": 1,
- "created_at": "2025-01-19 16:00:00",
- "updated_at": "2025-01-19 16:00:00",
- "work_started_at": null,
- "work_finished_at": null,
- "sender": "DispatchSystem",
- "invoice_nr": null,
- "user_km": null,
- "distance": null,
- "geozone_entered_at": null,
- "geozone_left_at": null,
- "closeType": null,
- "planned_km": null,
- "ut": 1705747200,
- "alias": "Delivery Van 3",
- "task_notes": null,
- "active": true,
- "group_id": null,
- "is_not_own_vehicle": false
}| id required | integer Task ID |
| object_id | string Vehicle registration number |
| start_lat | number <float> Starting point latitude |
| start_lon | number <float> Starting point longitude |
| start_address | string Starting point address |
| lat | number <float> Destination latitude |
| lon | number <float> Destination longitude |
| start_time | string <date-time> Task start time (UTC, YYYY-MM-DD HH:MM:SS) |
| stop_time | string <date-time> Task expected stop time (UTC, YYYY-MM-DD HH:MM:SS) |
| order_ref | string Reference number from your system |
| order_details | string Order details, client name, etc. |
| task_address | string Task location address |
| task_description | string Task description |
| status | integer Enum: 1 2 3 4 5 Task status (1=Created, 2=In progress, 3=Completed, 4=Rejected, 5=Cancelled) |
| planned_km | number Planned distance between start and stop points in kilometers |
| task_notes | string Additional notes for the task |
| active | boolean Whether the task is active |
| group_id | integer Task group identifier |
| edit | boolean Flag indicating if this is an edit operation (triggers audit logging) |
| sender | string Updated sender information |
Update a basic task with core fields
{- "task_address": "Updated Address, Tallinn",
- "task_description": "Updated delivery task description",
- "status": 2,
- "task_notes": "Delivery route changed",
- "stop_time": "2025-01-20 18:00:00",
- "edit": true
}[- {
- "ID": 0,
- "objectID": "string",
- "Xpos": 0.1,
- "Ypos": 0.1,
- "Counter1": 0,
- "Counter2": 0,
- "GMTime": "2019-08-24T14:15:22Z",
- "Speed": 0,
- "Heading": "string",
- "Input": 0,
- "LastCommunicationLocalTime": "2019-08-24T14:15:22Z",
- "Content": "string",
- "Power": 0.1,
- "BatLevel": 0,
- "NoGPSFix": "string",
- "t1": 0,
- "t2": 0,
- "t3": 0,
- "t4": 0
}
]{- "ID": 0,
- "objectID": "string",
- "Xpos": 0.1,
- "Ypos": 0.1,
- "Counter1": 0,
- "Counter2": 0,
- "GMTime": "2019-08-24T14:15:22Z",
- "Speed": 0,
- "Heading": "string",
- "Input": 0,
- "LastCommunicationLocalTime": "2019-08-24T14:15:22Z",
- "Content": "string",
- "Power": 0.1,
- "BatLevel": 0,
- "NoGPSFix": "string",
- "t1": 0,
- "t2": 0,
- "t3": 0,
- "t4": 0
}Returns a list of vehicles located within a specified geographic polygon
| coordinates required | string Examples: coordinates=[[24.868293,59.318745], [24.871149,59.318745], [24.871149,59.320103], [24.868293,59.320103], [24.868293,59.318745]] Array of points [longitude, latitude] that form a polygon. Must be a correct polygon with at least 4 points where the first point equals the last point. |
[- "000AAA"
]Returns a list of all vehicles with their configuration and status information
[- {
- "id": "010PNR",
- "extraDevices": 17246981848,
- "categoryID": 0,
- "naviseade": "0",
- "isDDD": 1,
- "account_type": 3,
- "Manufacture": 68,
- "calcByM": 0,
- "T1min": 0,
- "T1max": 540,
- "T2min": 0,
- "T2max": 0,
- "tank_vol": 0,
- "barrel_type": null,
- "alias": null,
- "isPercent": 0,
- "next_maintenance_km": "",
- "isOwn": 1,
- "odometer_day": "2023-09-07 11:04:17",
- "odometer": 0,
- "mode": null,
- "fuel_card_nr": "",
- "categoryName": null,
- "btime": 1,
- "gps_refresh_interval": null,
- "is_fuel_as_pressure": 0
}
]Returns vehicle settings including features, events, and configuration
| object_id required | string Examples: STEND Vehicle ID |
{- "hasTow": false,
- "hasGeo": true,
- "hasRepInt": true,
- "hasTamperLight": true,
- "hasLightSensor": true,
- "outputs": null,
- "repInts": [
- "5MIN",
- "1H",
- "12H",
- "24H"
], - "events": [
- {
- "ID": 1492,
- "eventType": 5,
- "navi_request_ID": 15788544,
- "eventDate": "2025-09-18 11:23:52",
- "object_id": "STEND",
- "oid": "jordan",
- "description": "ON",
- "handled": 1,
- "date": "2025-09-18 09:12:11"
}
], - "alarm": null,
- "zones": [ ]
}Associates a vehicle with a geozone for alarm notifications
| object_id required | string Vehicle object ID |
| zoneId required | integer Geozone ID |
| events required | Array of integers Items Enum: 1 2 Events to monitor (1 = enter, 2 = exit) |
{- "object_id": "STEND",
- "zoneId": 93,
- "events": [
- 1,
- 2
]
}{- "id": 1367,
- "geozoneID": 50231,
- "object_id": "STEND",
- "geo_id": 1
}Creates a new vehicle event for tracking and control purposes
| object_id required | string Vehicle object ID |
| eventType required | integer Type of event (3=Reporting interval, 4=Light control, 5=Other) |
| description required | string Event description (ON/OFF for lights, interval values for reporting) |
{- "object_id": "STEND",
- "eventType": 5,
- "description": "OFF"
}{- "id": 1499,
- "handled": 0,
- "description": "OFF",
- "eventDate": "2025-09-19 15:30:20",
- "date": "2025-09-19 15:30:20"
}| period_start required | string <date-time> Examples: 2017-10-2400:00:00 Start date in format YYYY-MM-DDHH:MM:SS |
| period_stop required | string <date-time> Examples: 2017-10-3123:59:59 End date in format YYYY-MM-DDHH:MM:SS |
| vehicle_id required | string Vehicle ID |
[- {
- "ID": 53611736,
- "objectID": "000AAA",
- "startTime": "2025-02-14 06:13:24",
- "previousStopTime": "2025-02-13 17:17:59",
- "stopTime": "2025-02-14 06:34:30",
- "stopEnd": "2025-02-14 08:04:12",
- "routeLengthKM": 14.92,
- "drivingTimeSeconds": 1266,
- "pauseTimeSeconds": 5382,
- "averageSpeed": 35.91,
- "maxSpeed": 76,
- "AddressAtStartingPoint": "EE, Harju maakond, Kiili vald, Kiili küla, Tamme 1",
- "AddressAtEndPoint": "EE, Harju maakond, Tallinn, Nõmme linnaosa, Valdeku 168",
- "status": "0"
}
]| period_start required | string <date-time> Examples: 2017-10-2400:00:00 Start date in format YYYY-MM-DDHH:MM:SS |
| period_stop required | string <date-time> Examples: 2017-10-3123:59:59 End date in format YYYY-MM-DDHH:MM:SS |
| vehicle_id required | string Vehicle ID |
[- {
- "ID": 129925446,
- "objectID": "000AAA",
- "startTime": "2025-02-14 06:13:24",
- "stopTime": "2025-02-14 06:18:26",
- "stopEnd": "2025-02-14 06:21:24",
- "runningTime": "00:05:02",
- "input": 7,
- "status": 0,
- "distance": 0,
- "fuel": -2,
- "required": null
}
]| period_start required | string <date-time> Examples: 2017-10-2400:00:00 Start date in format YYYY-MM-DDHH:MM:SS |
| period_stop required | string <date-time> Examples: 2017-10-3123:59:59 End date in format YYYY-MM-DDHH:MM:SS |
| vehicle_id required | string Vehicle ID |
[- {
- "ID": 3434188,
- "objectID": "000AAA",
- "startTime": "2025-02-18 07:53:40",
- "stopTime": "2025-02-18 07:54:23",
- "maxTime": "2025-02-18 07:54:23",
- "fuelBeforeL": 8,
- "fuelAfterL": 54,
- "routeLengthKM": 379.32,
- "fuelAddress": "EE, Harju maakond, Tallinn, Mustamäe linnaosa, A. H. Tammsaare tee 96a",
- "required": null
}
]| start_from required | string <date-time> Examples: 2017-10-3121:45:57 Start date in format YYYY-MM-DDHH:MM:SS |
| vehicle_id required | string Vehicle ID |
[- {
- "GMTime": "2025-02-17 23:54:54",
- "fuel": 10,
- "lat": 59.3196,
- "lon": 24.8709,
- "input": 0,
- "t1": 0,
- "t2": 0,
- "t3": 0,
- "t4": 0,
- "location": "EE, Harju maakond, Kiili vald, Mõisaküla, Tammetõru",
- "required": null
}
]Returns working and repair time for all vehicles in a specified period
| datetime[] required | Array of strings <date-time> [ items <date-time > ] Examples: datetime[]=2021-11-30 22:00:00&datetime[]=2021-12-08 21:59:59 Period start and end timestamps (UTC) in format YYYY-MM-DD HH:MM:SS |
[- {
- "id": "123ABC",
- "alias": "CAR01",
- "work": 543324,
- "repair": 0,
- "own_repair": 0
}
]Returns detailed work and repair periods for a specific vehicle
| id required | string Vehicle ID |
| datetime[] required | Array of strings <date-time> [ items <date-time > ] Examples: datetime[]=2021-11-30 22:00:00&datetime[]=2021-12-08 21:59:59 Period start and end timestamps (UTC) in format YYYY-MM-DD HH:MM:SS |
[- {
- "id": 490480,
- "object_id": "123ABC",
- "start": "2021-12-02 16:58:09",
- "stop": "2021-12-02 18:06:14",
- "type_id": 0,
- "name": "Jaan Tamm",
- "status": "work",
- "driver_id": 2279,
- "startTimestamp": 1638464289,
- "stopTimestamp": 1638468374
}
]Returns the count of rides for each vehicle within the specified period
| datetime[] required | Array of strings <date-time> [ items <date-time > ] Examples: datetime[]=2021-06-02 12:00:00&datetime[]=2021-06-02 12:59:59 Period start and end timestamps (UTC) in format YYYY-MM-DD HH:MM:SS |
[- {
- "key": "123ABC",
- "rides": 2
}
]Returns the status of POI reports. Status codes - 0=Not processed, 1=Processing, 2=Done
[- {
- "id": 11880,
- "status": 0,
- "type": "poi",
- "group": "vehicle",
- "type_id": null,
- "group_id": null,
- "group_name": null,
- "type_name": null,
- "start_time": "2025-09-01 21:00:00",
- "stop_time": "2025-09-09 20:59:59",
- "repStatus": "2025-09-09 12:28:38"
}
]Creates a POI (Point of Interest) report for the specified time period and criteria
| datetime required | Array of strings <date-time> = 2 items [ items <date-time > ] Period start and end timestamps (UTC) in format YYYY-MM-DD HH:MM:SS |
| type required | string Enum: "poi" "geo" "country" "rtasks" Report type |
| type_id | integer or null Specific type ID filter (optional) |
| group required | string Enum: "vehicle" "category" Group category for the report |
| group_id | string or null^[a-zA-Z0-9-_]{0,10}$ Specific group ID filter |
{- "datetime": [
- "2025-09-01 21:00:00",
- "2025-09-09 20:59:59"
], - "type": "poi",
- "type_id": null,
- "group": "vehicle",
- "group_id": null
}{- "id": 11880,
- "status": 0,
- "type": "poi",
- "group": "vehicle",
- "type_id": null,
- "group_id": null,
- "group_name": null,
- "type_name": null,
- "start_time": "2025-09-01 21:00:00",
- "stop_time": "2025-09-09 20:59:59",
- "repStatus": "2025-09-09 12:28:38"
}Returns the actual POI report data with detailed visit information for each POI
| id required | integer POI report ID |
[- {
- "id": 4176215,
- "type_name": "Секретная База Зла",
- "radius": 100,
- "object_id": "010PNR",
- "in_poi_time": 93,
- "in_time": "2025-09-02 06:02:02",
- "out_time": "2025-09-02 06:03:35",
- "distance": 0.44,
- "moto_hrs": 93,
- "order_details": null,
- "work_finished_at": null,
- "order_ref": null,
- "task_description": null,
- "arrived_at": null,
- "alias": null
}
][- {
- "id": 72228,
- "lat": 59.292025874924356,
- "lon": 27.07949659225727,
- "name": "Metrotec",
- "purpose": 0,
- "comment": "Important place",
- "rgAddress": "Haljas tee 25, Pirita, Tallinn, 12012 Harju Maakond, Eesti",
- "type": 1,
- "radius": 100,
- "country_code": "+372",
- "phone_nr": "55667788",
- "contact_name": "Viktor"
}
]| lat required | number <float> Latitude |
| lon required | number <float> Longitude |
| name | string <= 50 characters POI name |
| purpose required | integer POI purpose - 0-POI, 1-Customer, 2-WIFI router, 3-Bluetooth beacon |
| comment required | string <= 255 characters POI comment. If Wifi Router or Bluetooth beacon, is required and should be valid MAC address. |
| type | integer [ 1 .. 9 ] Default: 1 POI group |
| radius | integer Default: 50 POI radius in meters |
| rgAddress | string POI address |
| phone_nr | string Phone number |
| country_code | string Phone country number |
| contact_name | string Contact name |
{- "lat": 24.868293,
- "lon": 59.318745,
- "name": "Home",
- "purpose": 0,
- "comment": "AD-6A-9F-DA-13-7D",
- "type": 1,
- "radius": 10,
- "rgAddress": "Vehemaa tee 5, Viimsi",
- "phone_nr": "55667788",
- "country_code": "+1",
- "contact_name": "King Arthur"
}Returns the status of POI reports. Status codes - 0=Not processed, 1=Processing, 2=Done
[- {
- "id": 11880,
- "status": 0,
- "type": "poi",
- "group": "vehicle",
- "type_id": null,
- "group_id": null,
- "group_name": null,
- "type_name": null,
- "start_time": "2025-09-01 21:00:00",
- "stop_time": "2025-09-09 20:59:59",
- "repStatus": "2025-09-09 12:28:38"
}
]Creates a POI (Point of Interest) report for the specified time period and criteria
| datetime required | Array of strings <date-time> = 2 items [ items <date-time > ] Period start and end timestamps (UTC) in format YYYY-MM-DD HH:MM:SS |
| type required | string Enum: "poi" "geo" "country" "rtasks" Report type |
| type_id | integer or null Specific type ID filter (optional) |
| group required | string Enum: "vehicle" "category" Group category for the report |
| group_id | string or null^[a-zA-Z0-9-_]{0,10}$ Specific group ID filter |
{- "datetime": [
- "2025-09-01 21:00:00",
- "2025-09-09 20:59:59"
], - "type": "poi",
- "type_id": null,
- "group": "vehicle",
- "group_id": null
}{- "id": 11880,
- "status": 0,
- "type": "poi",
- "group": "vehicle",
- "type_id": null,
- "group_id": null,
- "group_name": null,
- "type_name": null,
- "start_time": "2025-09-01 21:00:00",
- "stop_time": "2025-09-09 20:59:59",
- "repStatus": "2025-09-09 12:28:38"
}Returns the actual POI report data with detailed visit information for each POI
| id required | integer POI report ID |
[- {
- "id": 4176215,
- "type_name": "Секретная База Зла",
- "radius": 100,
- "object_id": "010PNR",
- "in_poi_time": 93,
- "in_time": "2025-09-02 06:02:02",
- "out_time": "2025-09-02 06:03:35",
- "distance": 0.44,
- "moto_hrs": 93,
- "order_details": null,
- "work_finished_at": null,
- "order_ref": null,
- "task_description": null,
- "arrived_at": null,
- "alias": null
}
]| startUse | string <date-time> Examples: startUse=2017-10-2400:00:00 Start date in format YYYY-MM-DDHH:MM:SS |
| stopUse | string <date-time> Examples: stopUse=2017-10-3123:59:59 End date in format YYYY-MM-DDHH:MM:SS |
| object_id required | string Examples: object_id=000AAA Vehicle ID |
[- {
- "id": 1,
- "name": "Car",
- "fname": "Driver",
- "gsm": "55667788",
- "comment": "",
- "p1": "",
- "p2": "",
- "p3": "",
- "user_id": "driver1",
- "key_id": null,
- "code": null,
- "keyName": null,
- "driver": null
}
]| datetime[] | Array of any <date-time> [ items <date-time > ] Examples: datetime[]=2024-10-24 00:00:00&datetime[]=2024-10-31 23:59:59 Start and end date in format YYYY-MM-DD HH:MM:SS |
| object_id | string Examples: object_id=000AAA Vehicle ID |
[- {
- "id": 1,
- "owner": "metrotec",
- "oid": "metrotec",
- "user_id": "Driver 1",
- "object_id": "000AAA",
- "driver_id": 2778,
- "start_time": "2024-09-25 06:00:00",
- "stop_time": "2024-09-25 09:00:00",
- "est_stop_time": "2024-09-25 09:00:00",
- "purpose": "Vanuri külastus ja transport poodi - tagasi",
- "added": "2024-09-23 10:14:28",
- "pin": 4729,
- "oldpin": 0,
- "name": "King Arthur",
- "tehnKontakt": "+37255444333",
- "memo": "",
- "alias": null,
- "km": 0
}
]Returns a list of all currently opened waybills (all datetime values are in UTC)
[- {
- "id": 1,
- "object_id": "123ABC",
- "jobName": "Job 1",
- "start": "2021-06-02 04:02:08",
- "stop": "2021-06-02 04:02:08",
- "driverName": "John Smith",
- "alias": "DRIVER1"
}
]Returns the count of rides for each vehicle within the specified period
| datetime[] required | Array of strings <date-time> [ items <date-time > ] Examples: datetime[]=2021-06-02 12:00:00&datetime[]=2021-06-02 12:59:59 Period start and end timestamps (UTC) in format YYYY-MM-DD HH:MM:SS |
[- {
- "key": "123ABC",
- "rides": 2
}
]Requests recent information from all objects with fuel tank data
[- {
- "ID": 777366686,
- "objectID": "FTrans",
- "alias": "CAR1",
- "Xpos": 24.6066633,
- "Ypos": 59.3960766,
- "Counter1": 4678.4,
- "Counter2": 0,
- "GMTime": "2019-08-30 08:56:09",
- "Speed": 0,
- "Heading": "357°",
- "Input": 2,
- "LastCommunicationLocalTime": "2019-08-30 11:56:15",
- "Content": "2019-08-30 08:56:09,24.6066633,59.3960766,357,0,14,0,1,E03:07:0505001B18AE0003012014:021D1597160CA5:00:00",
- "Power": 0,
- "BatLevel": 6.5,
- "NoGPSFix": "0",
- "t1": 20,
- "t2": 0,
- "t3": 0,
- "t4": 0,
- "GroupID": 170,
- "GroupName": "Küte",
- "CustomerID": 90000036,
- "TankNr": 900069,
- "tank_vol": 9150
}
]Requests recent information together with the next refill time from specified tank
| object_id required | string Object ID/Tank identifier |
[- {
- "ID": 777366686,
- "objectID": "FTrans",
- "alias": "CAR1",
- "Xpos": 24.6066633,
- "Ypos": 59.3960766,
- "Counter1": 4678.4,
- "Counter2": 0,
- "GMTime": "2019-08-30 08:56:09",
- "Speed": 0,
- "Heading": "357°",
- "Input": 2,
- "LastCommunicationLocalTime": "2019-08-30 11:56:15",
- "Content": "2019-08-30 08:56:09,24.6066633,59.3960766,357,0,14,0,1,E03:07:0505001B18AE0003012014:021D1597160CA5:00:00",
- "Power": 0,
- "BatLevel": 6.5,
- "NoGPSFix": "0",
- "t1": 20,
- "t2": 0,
- "t3": 0,
- "t4": 0,
- "GroupID": 170,
- "GroupName": "Küte",
- "CustomerID": 90000036,
- "TankNr": 900069,
- "tank_vol": 9150,
- "Counter": 530,
- "next_refill_time": "15.03.2022 21:25"
}
]| object_id required | string Examples: object_id=789SCA Vehicle ID |
| driver_id | integer Examples: driver_id=3753 Driver ID (either object_id or driver_id is required) |
| datetime[] required | Array of strings <date-time> [ items <date-time > ] Examples: datetime[]=2025-09-08 21:00:00&datetime[]=2025-09-09 20:59:59 Period start and end timestamps (UTC) in format YYYY-MM-DD HH:MM:SS |
{- "0": 30044,
- "1": 0,
- "2": 660,
- "3": 8847,
- "6": 0,
- "7": 0,
- "route_length": 161.925
}| object_id | string Examples: object_id=789SCA Vehicle ID (either object_id or driver_id is required) |
| driver_id | integer Examples: driver_id=3753 Driver ID (either object_id or driver_id is required) |
| datetime[] required | Array of strings <date-time> [ items <date-time > ] Examples: datetime[]=2025-09-08 21:00:00&datetime[]=2025-09-09 20:59:59 Period start and end timestamps (UTC) in format YYYY-MM-DD HH:MM:SS |
[- {
- "id": 1799674,
- "object_id": "789SCA",
- "oid": "teiropol",
- "CanSpeed": 0,
- "route_length": 7.175,
- "time": "2025-09-09 05:27:54",
- "status": 3,
- "DriverID": "3780921036600003",
- "CanOdo": 511609,
- "Ign": 1,
- "running_time": 643,
- "RevGeo": "EE",
- "driver_id": 3753,
- "driver_name": "Janno Kurs"
}
][- {
- "id": "020PHX",
- "ins_date": "2019-10-11 08:44:23",
- "refreshRate": 30,
- "object_id": "020PHX",
- "GMTime": "2025-09-11 14:22:55",
- "state_changed_at": "2025-09-11 14:08:35",
- "id187": "1",
- "id184": "0",
- "id10507": "436",
- "id10509": "84",
- "id10508": "2081",
- "id10522": "3804",
- "id10526": "1440",
- "driver_name": "AULO LÜTT",
- "alias": null
}
]| offset | integer Examples: offset=-1 offset=0 offset=10 Offset for pagination (-1 returns all drivers) |
[- {
- "id": 5249,
- "name": "AGUR",
- "fname": "KUKKE",
- "refreshRate": 25,
- "driverCardId": "3641012027000102",
- "object_id": "627SCA",
- "state_changed_at": "2025-09-11 14:33:48",
- "id187": "1",
- "id184": "3",
- "id10507": "344",
- "id10509": "428",
- "id10508": "594",
- "id10522": "7008",
- "id10526": "1440",
- "driverName": "AGUR KUKKE"
}
][- {
- "id": 48207,
- "name": "1, Tammede allee, Rannamõisa küla, Tabasalu alevik, Harku vald, Harju maakond, 76906, Eesti",
- "geometry": {
- "latlng": {
- "lat": 59.4414,
- "lng": 24.52074
}, - "radius": 500,
- "type": "circle"
}, - "deleted_at": null,
- "zObjects": [ ]
}
]Creates a new geofencing zone
| id | string Identifier for the new item (typically "newItem" for new zones) |
| name required | string Geozone name or address |
| geometry required | string JSON string containing geometry definition |
| cAlarmState | boolean Default: false Alarm state configuration |
| countAlarm | integer Default: 4 Alarm count configuration |
| zObjects | Array of strings Default: [] List of objects/vehicles to associate with this geozone |
{- "id": "newItem",
- "name": "Haljas tee 25, Pirita, Tallinn, 12012 Harju Maakond, Estonia",
- "geometry": "{\"latlng\":{\"lat\":59.457170251972315,\"lng\":24.840130805969242},\"radius\":603.832476916605,\"type\":\"circle\"}",
- "cAlarmState": false,
- "countAlarm": 4,
- "zObjects": [ ]
}{- "id": 50231,
- "name": "Haljas tee 25, Pirita, Tallinn, 12012 Harju Maakond, Estonia",
- "geometry": {
- "latlng": {
- "lat": 59.457170251972315,
- "lng": 24.840130805969242
}, - "radius": 603.832476916605,
- "type": "circle"
}, - "auto": "0",
- "deleted_at": null,
- "cAlarmState": false,
- "countAlarm": 2,
- "zObjects": [ ]
}Returns a list of all files associated with the authenticated user's organization
[- {
- "id": 12345,
- "pivot_id": "67890",
- "pivot_type": "route_tasks",
- "defined_name": "Task Photo - Loading Area",
- "file_name": "20250119_abc123def456.jpg",
- "mime": "image/jpeg",
- "file_type": "image",
- "uploaded_at": "2025-01-19 10:30:45",
- "oid": 100,
- "sender": "john.doe",
- "hidden": 0
}
]Uploads a file and associates it with a specific entity (task, vehicle fault, feedback answer, etc.). Files are automatically categorized by type (image, CMR, delivery note, order, signature, etc.).
| file required | string <binary> The file to upload |
| pivot_type required | string Enum: "accounts" "logos" "route_tasks" "vehicle_faults" "feedback_answers" "tech_card_works" "signatures" Type of entity to associate the file with:
|
| pivot_id required | string ID of the entity to associate the file with (e.g., task ID, vehicle fault ID) |
| max_files | integer >= 1 Maximum number of files allowed for this entity |
| hidden | integer Default: 0 Enum: 0 1 Whether the file is hidden (0=visible, 1=hidden) |
| file_type | string Enum: "image" "cmr" "delivery_note" "order" "other" "receiver_signature" "sender_signature" "carrier_signature" Type of file content:
|
| auto_crop | integer Default: 0 Enum: 0 1 Automatically crop the image (0=no, 1=yes) |
| auto_type | string Enum: "jpg" "gif" "png" "webp" Automatically convert image to specified format |
{ "pivot_type": "route_tasks", "pivot_id": "12345", "file_type": "image", "hidden": 0 }
{- "id": 12345,
- "pivot_id": "67890",
- "pivot_type": "route_tasks",
- "defined_name": "Task Photo - Loading Area",
- "file_name": "20250119_abc123def456.jpg",
- "mime": "image/jpeg",
- "file_type": "image",
- "uploaded_at": "2025-01-19 10:30:45",
- "oid": 100,
- "sender": "john.doe",
- "hidden": 0
}{- "id": 12345,
- "pivot_id": "67890",
- "pivot_type": "route_tasks",
- "defined_name": "Task Photo - Loading Area",
- "file_name": "20250119_abc123def456.jpg",
- "mime": "image/jpeg",
- "file_type": "image",
- "uploaded_at": "2025-01-19 10:30:45",
- "oid": 100,
- "sender": "john.doe",
- "hidden": 0
}Updates the file type classification
| id required | integer File ID |
| file_type required | string Enum: "image" "cmr" "delivery_note" "order" "other" "receiver_signature" "sender_signature" "carrier_signature" Updated file type classification |
{- "file_type": "image"
}