API GPS Tracking Software. White Label | TeraTrack
This website uses cookies.
See our Privacy Policy to learn more.
Introduction
Welcome
Authentication
Device
Sensor
Service
Event
History
Alert
Custom event
Geofence
Route
Report
Map icon
Driver
Command
GPRS Template
SMS Template
Task
Setup

No resources found
Device
GET /get_devices
Definition
Query String
lang string Validation default: en required
user_api_hash string Validation default: $2y$10$5RACGMNxUdz3h1ug9yAttu95U2acugM0YG1K5wx01ZrNMvpL6BWMS required
Responses application/json
array[object]
title string optional
items array[object] optional
id integer optional
name string optional
online string optional
alarm string optional
time string optional
timestamp integer optional
acktimestamp integer optional
speed integer optional
lat number optional
lng number optional
course string optional
power string optional
altitude integer optional
address string optional
protocol string optional
driver string optional
sensors array[object] optional
name string optional
value string optional
show_in_popup string optional
services array[object] optional
name string optional
value string optional
expiring boolean optional
tail array[object] optional
lat string optional
lng string optional
distance_unit_hour string optional
device_data object optional
id string optional
user_id null optional
traccar_device_id string optional
icon_id string optional
active string optional
deleted string optional
name string optional
imei string optional
fuel_measurement_id string optional
fuel_quantity string optional
fuel_price string optional
fuel_per_km string optional
sim_number string optional
device_model string optional
plate_number string optional
vin string optional
registration_number string optional
object_owner string optional
expiration_date string optional
tail_color string optional
tail_length string optional
engine_hours string optional
detect_engine string optional
min_moving_speed string optional
min_fuel_fillings string optional
min_fuel_thefts string optional
snap_to_road string optional
created_at string optional
updated_at string optional
pivot object optional
user_id string optional
device_id string optional
group_id null optional
current_driver_id string optional
active string optional
timezone_id null optional
group_id null optional
current_driver_id string optional
users array[object] optional
id integer optional
email string optional
unit_of_distance string optional
unit_of_altitude string optional
unit_of_capacity string optional
stop_duration string optional
moved_timestamp integer optional
engine_status null boolean optional
icon_type string optional
icon_color string optional
icon_colors object optional
moving string optional
stopped string optional
offline string optional
engine string optional
[
  {
    "title": "Ungrouped",
    "items": [
      {
        "id": 3,
        "name": "Device name",
        "online": "offline",
        "alarm": "",
        "time": "2016-04-29 21:01:26",
        "timestamp": 1461956486,
        "acktimestamp": 0,
        "speed": 0,
        "lat": 55.922996,
        "lng": 23.3466906,
        "course": "0",
        "power": "-",
        "altitude": 175,
        "address": "-",
        "protocol": "osmand",
        "driver": "Drive first",
        "sensors": [
          {
            "name": "Sensor test",
            "value": "- nn",
            "show_in_popup": "0"
          },
          {
            "name": "test acc",
            "value": "- nn",
            "show_in_popup": "1"
          }
        ],
        "services": [
          {
            "name": "Test service",
            "value": "Engine hours Left (1000 )"
          }
        ],
        "tail": [
          {
            "lat": "55.91986482",
            "lng": "23.3255625"
          },
          {
            "lat": "55.91590619",
            "lng": "23.33778733"
          },
          {
            "lat": "55.91928624",
            "lng": "23.34572509"
          },
          {
            "lat": "55.92336524",
            "lng": "23.34666575"
          },
          {
            "lat": "55.92297793",
            "lng": "23.34665713"
          }
        ],
        "distance_unit_hour": "kph",
        "device_data": {
          "id": "3",
          "user_id": null,
          "traccar_device_id": "3",
          "icon_id": "8",
          "active": "1",
          "deleted": "0",
          "name": "Device name",
          "imei": "789832",
          "fuel_measurement_id": "1",
          "fuel_quantity": "0.00",
          "fuel_price": "0.00",
          "fuel_per_km": "0.00",
          "sim_number": "",
          "device_model": "",
          "plate_number": "",
          "vin": "",
          "registration_number": "",
          "object_owner": "",
          "expiration_date": "0000-00-00",
          "tail_color": "#33cc33",
          "tail_length": "5",
          "engine_hours": "gps",
          "detect_engine": "gps",
          "min_moving_speed": "6",
          "min_fuel_fillings": "10",
          "min_fuel_thefts": "10",
          "snap_to_road": "0",
          "created_at": "2016-04-25 16:21:19",
          "updated_at": "2016-06-26 15:52:46",
          "pivot": {
            "user_id": "2",
            "device_id": "3",
            "group_id": null,
            "current_driver_id": "1",
            "active": "1",
            "timezone_id": null
          },
          "group_id": null,
          "current_driver_id": "1"
        }
      }
    ]
  }
]
object
status integer optional
errors object optional
{
  "status": 0,
  "errors": {}
}
object
status integer optional
error string optional
{
  "status": 0,
  "error": "No language selected."
}

																	
GET /get_devices_latest
Return only devices whose information has changed, all the response returns "time", the time needed to transmit the next request.
Definition
Query String
lang string Validation default: en required
user_api_hash string Validation default: $2y$10$5RACGMNxUdz3h1ug9yAttu95U2acugM0YG1K5wx01ZrNMvpL6BWMS required
time integer optional
Responses application/json
object
items array[object] optional
id integer optional
name string optional
online string optional
alarm string optional
time string optional
timestamp integer optional
acktimestamp integer optional
speed integer optional
lat number optional
lng number optional
course string optional
power string optional
altitude integer optional
address string optional
protocol string optional
driver string optional
sensors string optional
services string optional
tail string optional
distance_unit_hour string optional
device_data object optional
id string optional
traccar_device_id string optional
icon_id string optional
active string optional
deleted string optional
name string optional
imei string optional
fuel_measurement_id string optional
fuel_quantity string optional
fuel_price string optional
fuel_per_km string optional
sim_number string optional
device_model string optional
plate_number string optional
vin string optional
registration_number string optional
object_owner string optional
expiration_date string optional
tail_color string optional
tail_length string optional
engine_hours string optional
detect_engine string optional
min_moving_speed string optional
min_fuel_fillings string optional
min_fuel_thefts string optional
snap_to_road string optional
created_at string optional
updated_at string optional
pivot object optional
user_id string optional
device_id string optional
group_id null optional
current_driver_id string optional
active string optional
timezone_id null optional
group_id null optional
current_driver_id string optional
unit_of_distance string optional
unit_of_altitude string optional
unit_of_capacity string optional
stop_duration string optional
moved_timestamp integer optional
engine_status null boolean
icon_type string optional
icon_color string optional
icon_colors object optional
moving string optional
stopped string optional
offline string optional
engine string optional
events array[object] optional
id integer Validation {event}
optional
user_id integer Validation {event}
optional
device_id integer Validation {event}
optional
geofence_id integer Validation {event}
optional
position_id integer Validation {event}
optional
alert_id integer Validation {event}
optional
message string Validation {event}
optional
created_at string Validation {event}
optional
updated_at string Validation {event}
optional
address string Validation {event}
optional
altitude number Validation {event}
optional
course null number Validation {event}
optional
latitude number Validation {event}
optional
longitude number Validation {event}
optional
power null number Validation {event}
optional
speed number Validation {event}
optional
time string Validation {event}
optional
deleted integer Validation {event}
optional
geofence object optional
id integer optional
name string optional
device object optional
id integer optional
name string optional
time integer optional
version string optional
{
  "items": [
    {
      "id": 3,
      "name": "Device name",
      "online": "offline",
      "alarm": "",
      "time": "2016-04-29 21:01:26",
      "timestamp": 1461956486,
      "acktimestamp": 0,
      "speed": 0,
      "lat": 55.922996,
      "lng": 23.3466906,
      "course": "0",
      "power": "-",
      "altitude": 175,
      "address": "-",
      "protocol": "osmand",
      "driver": "Drive first",
      "sensors": "[{\"name\":\"Sensor test\",\"value\":\"- nn\",\"show_in_popup\":\"0\"},{\"name\":\"test acc\",\"value\":\"- nn\",\"show_in_popup\":\"1\"}]",
      "services": "[{\"name\":\"Test service\",\"value\":\"Engine hours Left (1000 )\"}]",
      "tail": "[{\"lat\":\"55.91986482\",\"lng\":\"23.3255625\"},{\"lat\":\"55.91590619\",\"lng\":\"23.33778733\"},{\"lat\":\"55.91928624\",\"lng\":\"23.34572509\"},{\"lat\":\"55.92336524\",\"lng\":\"23.34666575\"},{\"lat\":\"55.92297793\",\"lng\":\"23.34665713\"}]",
      "distance_unit_hour": "kph",
      "device_data": {
        "id": "3",
        "traccar_device_id": "3",
        "icon_id": "8",
        "active": "1",
        "deleted": "0",
        "name": "Device name",
        "imei": "789832",
        "fuel_measurement_id": "1",
        "fuel_quantity": "0.00",
        "fuel_price": "0.00",
        "fuel_per_km": "0.00",
        "sim_number": "",
        "device_model": "",
        "plate_number": "",
        "vin": "",
        "registration_number": "",
        "object_owner": "",
        "expiration_date": "0000-00-00",
        "tail_color": "#33cc33",
        "tail_length": "5",
        "engine_hours": "gps",
        "detect_engine": "gps",
        "min_moving_speed": "6",
        "min_fuel_fillings": "10",
        "min_fuel_thefts": "10",
        "snap_to_road": "0",
        "created_at": "2016-04-25 16:21:19",
        "updated_at": "2016-06-26 15:52:46",
        "pivot": {
          "user_id": "2",
          "device_id": "3",
          "group_id": null,
          "current_driver_id": "1",
          "active": "1",
          "timezone_id": null
        },
        "group_id": null,
        "current_driver_id": "1"
      }
    }
  ],
  "events": [],
  "time": 1466992735,
  "version": "2.5.1"
}
object
status integer optional
errors object optional
{
  "status": 0,
  "errors": {}
}
object
status integer optional
error string optional
{
  "status": 0,
  "error": "No language selected."
}

																	
GET /add_device_data
Definition
Query String
lang string Validation default: en required
user_api_hash string Validation default: $2y$10$5RACGMNxUdz3h1ug9yAttu95U2acugM0YG1K5wx01ZrNMvpL6BWMS required
Responses application/json
object
device_groups array[object] optional
id integer optional
value string optional
sensor_groups array[object] optional
id integer optional
value string optional
device_fuel_measurements array[object] optional
id string optional
title string optional
fuel_title string optional
distance_title string optional
lang string optional
created_at string optional
updated_at string optional
device_icons array[object] optional
id string optional
order string optional
width string
height string optional
path string optional
users array[object] optional
timezones array[object] optional
id integer optional
value string optional
expiration_date_select object optional
1 string optional
0000-00-00 string optional
status integer optional
{
  "device_groups": [
    {
      "id": 0,
      "value": "Ungrouped"
    }
  ],
  "sensor_groups": [
    {
      "id": 0,
      "value": "None"
    },
    {
      "id": 1,
      "value": "Senson group"
    }
  ],
  "device_fuel_measurements": [
    {
      "id": "1",
      "title": "l/100km",
      "fuel_title": "liter",
      "distance_title": "Kilometers",
      "lang": "en",
      "created_at": "2016-04-19 16:31:00",
      "updated_at": "2016-04-19 16:31:00"
    },
    {
      "id": "2",
      "title": "MPG",
      "fuel_title": "gallon",
      "distance_title": "Miles",
      "lang": "en",
      "created_at": "2016-04-19 16:31:00",
      "updated_at": "2016-04-19 16:31:00"
    }
  ],
  "device_icons": [
    {
      "id": "4",
      "order": "4",
      "width": "43.00",
      "height": "57.00",
      "path": "frontend/images/device_icons/4.png"
    },
    {
      "id": "1",
      "order": "3",
      "width": "43.00",
      "height": "57.00",
      "path": "frontend/images/device_icons/1.png"
    },
    {
      "id": "2",
      "order": "3",
      "width": "43.00",
      "height": "57.00",
      "path": "frontend/images/device_icons/2.png"
    },
    {
      "id": "3",
      "order": "3",
      "width": "43.00",
      "height": "57.00",
      "path": "frontend/images/device_icons/3.png"
    }
  ],
  "users": [],
  "timezones": [
    {
      "id": 0,
      "value": "Default"
    },
    {
      "id": 1,
      "value": "-14:00"
    },
    {
      "id": 2,
      "value": "-13:45"
    },
    {
      "id": 3,
      "value": "-13:30"
    },
    {
      "id": 4,
      "value": "-13:15"
    },
    {
      "id": 5,
      "value": "-13:00"
    },
    {
      "id": 6,
      "value": "-12:45"
    },
    {
      "id": 7,
      "value": "-12:30"
    },
    {
      "id": 8,
      "value": "-12:15"
    },
    {
      "id": 9,
      "value": "-12:00"
    },
    {
      "id": 10,
      "value": "-11:45"
    }
  ],
  "expiration_date_select": {
    "1": "Expiration date",
    "0000-00-00": "Unlimited"
  },
  "status": 1
}
object
status integer optional
errors object optional
{
  "status": 0,
  "errors": {}
}
object
status integer optional
error string optional
{
  "status": 0,
  "error": "No language selected."
}

																	
POST /add_device
Definition
Query String
lang string Validation default: en required
user_api_hash string Validation default: $2y$10$5RACGMNxUdz3h1ug9yAttu95U2acugM0YG1K5wx01ZrNMvpL6BWMS required
Request Body
object
name string required
imei string required
icon_id integer required
fuel_measurement_id integer required
tail_length number required
min_moving_speed number required
min_fuel_fillings number required
min_fuel_thefts number required
fuel_quantity number optional
fuel_price number optional
group_id integer optional
device_icons_type string Validation Allowed Values: arrow, icon, rotating
optional
timezone_id integer Validation default: 0
optional
icon_moving string Validation Allowed Values: green, yellow, red, blue, orange, black
default: green
optional
icon_stopped string Validation Allowed Values: green, yellow, red, blue, orange, black
default: red
optional
icon_offline string Validation Allowed Values: green, yellow, red, blue, orange, black
default: red
optional
icon_engine string Validation Allowed Values: green, yellow, red, blue, orange, black
default: yellow
optional
sim_number string optional
vin string optional
device_model string optional
plate_number string optional
registration_number string optional
object_owner string optional
additional_notes string optional

															
Responses application/json
object Validation {success}
status integer optional

																	
object
status integer optional
errors object optional
{
  "status": 0,
  "errors": {}
}
object
status integer optional
error string optional
{
  "status": 0,
  "error": "No language selected."
}

																	
GET /edit_device_data
Definition
Query String
lang string Validation default: en required
user_api_hash string Validation default: $2y$10$5RACGMNxUdz3h1ug9yAttu95U2acugM0YG1K5wx01ZrNMvpL6BWMS required
device_id integer required
Responses application/json
object
device_groups array[object] optional
id integer optional
value string optional
sensor_groups array[object] optional
id integer optional
value string optional
device_fuel_measurements array[object] optional
id string optional
title string optional
fuel_title string optional
distance_title string optional
lang string optional
created_at string optional
updated_at string optional
device_icons array[object] optional
id string optional
order string optional
width string optional
height string optional
path string optional
users array[object] Validation {user}
optional
timezones array[object] optional
id integer optional
value string optional
expiration_date_select object optional
1 string optional
0000-00-00 string optional
engine_hours array[object] optional
id string optional
value string optional
detect_engine array[object] optional
id string optional
value string optional
sensors object optional
total integer Validation {pagination}
optional
per_page integer Validation {pagination}
optional
current_page integer Validation {pagination}
optional
last_page integer Validation {pagination}
optional
from integer Validation {pagination}
optional
to integer Validation {pagination}
optional
next_page_url integer Validation {pagination}
optional
prev_page_url integer Validation {pagination}
optional
url string Validation {pagination}
optional
data array[object] Validation {Sensor}
optional
id integer string optional
user_id integer string optional
device_id integer string optional
name string optional
type string optional
tag_name string optional
add_to_history integer string optional
on_value string optional
off_value string optional
shown_value_by null string optional
fuel_tank_name null string optional
full_tank null string optional
full_tank_value null string optional
min_value null string optional
max_value null string optional
formula null string optional
odometer_value_by null string optional
odometer_value null string optional
odometer_value_unit string optional
temperature_max null string optional
temperature_max_value null string optional
temperature_min null string optional
temperature_min_value null string optional
value string optional
value_formula string optional
show_in_popup string optional
unit_of_measurement string optional
on_tag_value null string optional
off_tag_value null string optional
on_type null string optional
off_type null string optional
calibrations null array[object] optional
key integer optional
services object optional
total integer Validation {pagination}
optional
per_page integer Validation {pagination}
optional
current_page integer Validation {pagination}
optional
last_page integer Validation {pagination}
optional
from integer Validation {pagination}
optional
to integer Validation {pagination}
optional
next_page_url null string Validation {pagination}
optional
prev_page_url null string Validation {pagination}
optional
url string Validation {pagination}
data array[object] Validation {service}
optional
id integer string optional
user_id integer string optional
device_id integer string optional
name string optional
expiration_by string optional
interval string optional
last_service string optional
trigger_event_left string optional
renew_after_expiration string optional
expires string optional
expires_date null string optional
remind string optional
remind_date null string optional
event_sent string optional
expired string optional
email string optional
mobile_phone string optional
device object Validation {device}
optional
id string optional
user_id null integer optional
traccar_device_id string optional
icon_id string optional
active string optional
deleted string optional
name string optional
imei string optional
fuel_measurement_id string optional
fuel_quantity string optional
fuel_price string optional
fuel_per_km string optional
sim_number string optional
device_model string optional
plate_number string optional
vin string optional
registration_number string optional
object_owner string optional
expiration_date string optional
tail_color string optional
tail_length string optional
engine_hours string optional
detect_engine string optional
min_moving_speed string optional
min_fuel_fillings string optional
min_fuel_thefts string optional
snap_to_road string optional
created_at string optional
updated_at string optional
pivot object optional
user_id string optional
device_id string optional
group_id null optional
current_driver_id string optional
active string optional
timezone_id null optional
traccar object optional
id string optional
name string optional
uniqueId string optional
latestPosition_id string optional
lastValidLatitude string optional
lastValidLongitude string optional
other string optional
speed string optional
time string optional
server_time string optional
ack_time null optional
altitude string optional
course string optional
power null optional
address null optional
protocol string optional
latest_positions string optional
icon object optional
id string optional
order string optional
width string optional
height string optional
path string optional
sensors array[object] optional
id string optional
user_id string optional
device_id string optional
name string optional
type string optional
tag_name string optional
add_to_history string optional
on_value null optional
off_value null optional
shown_value_by string optional
fuel_tank_name null optional
full_tank null optional
full_tank_value null optional
min_value null optional
max_value null optional
formula null optional
odometer_value_by null optional
odometer_value null optional
odometer_value_unit string optional
temperature_max null optional
temperature_max_value null optional
temperature_min null optional
temperature_min_value null optional
value string optional
value_formula string optional
show_in_popup string optional
unit_of_measurement string optional
on_tag_value null optional
on_tag_value null optional
on_type null optional
off_type null optional
calibrations null optional
services array[object] optional
id string optional
user_id string optional
device_id string optional
name string optional
expiration_by string optional
interval string optional
last_service string optional
trigger_event_left string optional
renew_after_expiration string optional
expires string optional
expires_date null optional
remind string optional
remind_date null optional
event_sent string optional
expired string optional
email string optional
mobile_phone string optional
item object Validation {device}
optional
status integer optional

																	
object
status integer optional
errors object optional
{
  "status": 0,
  "errors": {}
}
object
status integer optional
error string optional
{
  "status": 0,
  "error": "No language selected."
}

																	
POST /edit_device
Definition
Query String
lang string Validation default: en required
user_api_hash string Validation default: $2y$10$5RACGMNxUdz3h1ug9yAttu95U2acugM0YG1K5wx01ZrNMvpL6BWMS required
device_id integer required
Request Body
object
name string required
imei string required
icon_id integer required
fuel_measurement_id integer required
tail_length number required
min_moving_speed number required
min_fuel_fillings number required
min_fuel_thefts number required
fuel_quantity number optional
fuel_price number optional
group_id integer optional
device_icons_type string Validation Allowed Values: arrow, icon, rotating
optional
timezone_id integer Validation default: 0
optional
icon_moving string Validation Allowed Values: green, yellow, red, blue, orange, black
default: green
optional
icon_stopped string Validation Allowed Values: green, yellow, red, blue, orange, black
default: red
optional
icon_offline string Validation Allowed Values: green, yellow, red, blue, orange, black
default: red
optional
icon_engine string Validation Allowed Values: green, yellow, red, blue, orange, black
default: yellow
optional
sim_number string optional
vin string optional
device_model string optional
plate_number string optional
registration_number string optional
object_owner string optional
additional_notes string optional

															
Responses application/json
object Validation {succes}
status integer optional

																	
object
status integer optional
errors object optional
{
  "status": 0,
  "errors": {}
}
object
status integer optional
error string optional
{
  "status": 0,
  "error": "No language selected."
}

																	
GET /destroy_device
Definition
Query String
lang string Validation default: en required
user_api_hash string Validation default: $2y$10$5RACGMNxUdz3h1ug9yAttu95U2acugM0YG1K5wx01ZrNMvpL6BWMS required
device_id integer required
string optional
Responses application/json
object Validation {succes}
status integer optional

																	
object
status integer optional
errors object optional
{
  "status": 0,
  "errors": {}
}
object
status integer optional
error string optional
{
  "status": 0,
  "error": "No language selected."
}

																	
GET /change_active_device
Definition
Query String
lang string Validation default: en required
user_api_hash string Validation default: $2y$10$5RACGMNxUdz3h1ug9yAttu95U2acugM0YG1K5wx01ZrNMvpL6BWMS required
Request Body
object
id integer array[integer] optional
active boolean optional

															
Responses application/json
object Validation {succes}
status integer optional

																	
object
status integer optional
errors object optional
{
  "status": 0,
  "errors": {}
}
object
status integer optional
error string optional
{
  "status": 0,
  "error": "No language selected."
}

																	
MODEL device
object
id string optional
user_id null integer optional
traccar_device_id string optional
icon_id string optional
active string optional
deleted string optional
name string optional
imei string optional
fuel_measurement_id string optional
fuel_quantity string optional
fuel_price string optional
fuel_per_km string optional
sim_number string optional
device_model string optional
plate_number string optional
vin string optional
registration_number string optional
object_owner string optional
expiration_date string optional
tail_color string optional
tail_length string optional
engine_hours string optional
detect_engine string optional
min_moving_speed string optional
min_fuel_fillings string optional
min_fuel_thefts string optional
snap_to_road string optional
created_at string optional
updated_at string optional
pivot object optional
user_id string optional
device_id string optional
group_id null optional
current_driver_id string optional
active string optional
timezone_id null optional
traccar object optional
id string optional
name string optional
uniqueId string optional
latestPosition_id string optional
lastValidLatitude string optional
lastValidLongitude string optional
other string optional
speed string optional
time string optional
server_time string optional
ack_time null optional
altitude string optional
course string optional
power null optional
address null optional
protocol string optional
latest_positions string optional
icon object optional
id string optional
order string optional
width string optional
height string optional
path string optional
sensors array[object] optional
id string optional
user_id string optional
device_id string optional
name string optional
type string optional
tag_name string optional
add_to_history string optional
on_value null optional
off_value null optional
shown_value_by string optional
fuel_tank_name null optional
full_tank null optional
full_tank_value null optional
min_value null optional
max_value null optional
formula null optional
odometer_value_by null optional
odometer_value null optional
odometer_value_unit string optional
temperature_max null optional
temperature_max_value null optional
temperature_min null optional
temperature_min_value null optional
value string optional
value_formula string optional
show_in_popup string optional
unit_of_measurement string optional
on_tag_value null optional
off_tag_value null optional
on_type null optional
off_type null optional
calibrations null optional
services array[object] optional
id string optional
user_id string optional
device_id string optional
name string optional
expiration_by string optional
interval string optional
last_service string optional
trigger_event_left string optional
renew_after_expiration string optional
expires string optional
expires_date null optional
remind string optional
remind_date null optional
event_sent string optional
expired string optional
email string optional
mobile_phone string optional
{
  "id": "3",
  "user_id": null,
  "traccar_device_id": "3",
  "icon_id": "8",
  "active": "1",
  "deleted": "0",
  "name": "Device name",
  "imei": "789832",
  "fuel_measurement_id": "1",
  "fuel_quantity": "0.00",
  "fuel_price": "0.00",
  "fuel_per_km": "0.00",
  "sim_number": "",
  "device_model": "",
  "plate_number": "",
  "vin": "",
  "registration_number": "",
  "object_owner": "",
  "expiration_date": "0000-00-00",
  "tail_color": "#33cc33",
  "tail_length": "5",
  "engine_hours": "gps",
  "detect_engine": "gps",
  "min_moving_speed": "6",
  "min_fuel_fillings": "10",
  "min_fuel_thefts": "10",
  "snap_to_road": "0",
  "created_at": "2016-04-25 16:21:19",
  "updated_at": "2016-06-26 15:52:46",
  "pivot": {
    "user_id": "2",
    "device_id": "3",
    "group_id": null,
    "current_driver_id": "1",
    "active": "1",
    "timezone_id": null
  },
  "traccar": {
    "id": "3",
    "name": "Device name",
    "uniqueId": "789832",
    "latestPosition_id": "99",
    "lastValidLatitude": "55.92299604",
    "lastValidLongitude": "23.34669059",
    "other": "31.083.181.149.238",
    "speed": "0.00",
    "time": "2016-04-29 19:01:26",
    "server_time": "2016-04-29 19:01:26",
    "ack_time": null,
    "altitude": "175",
    "course": "0",
    "power": null,
    "address": null,
    "protocol": "osmand",
    "latest_positions": "55.92297793/23.34665713;55.92336524/23.34666575;55.91928624/23.34572509;55.91590619/23.33778733;55.91986482/23.3255625;55.92581495/23.30829421;55.92748307/23.30725942;55.92966571/23.31183084;55.93430696/23.31986459;55.93769598/23.32408059;55.94483741/23.33093897;55.94417471/23.33107782;55.93988092/23.32629426;55.93719855/23.32534909;55.93344595/23.32372258"
  },
  "icon": {
    "id": "8",
    "order": "3",
    "width": "43.00",
    "height": "57.00",
    "path": "frontend/images/device_icons/8.png"
  },
  "sensors": [
    {
      "id": "1",
      "user_id": "2",
      "device_id": "3",
      "name": "Sensor test",
      "type": "battery",
      "tag_name": "Parameter name",
      "add_to_history": "0",
      "on_value": null,
      "off_value": null,
      "shown_value_by": "tag_value",
      "fuel_tank_name": null,
      "full_tank": null,
      "full_tank_value": null,
      "min_value": null,
      "max_value": null,
      "formula": null,
      "odometer_value_by": null,
      "odometer_value": null,
      "odometer_value_unit": "km",
      "temperature_max": null,
      "temperature_max_value": null,
      "temperature_min": null,
      "temperature_min_value": null,
      "value": "-",
      "value_formula": "0",
      "show_in_popup": "0",
      "unit_of_measurement": "nn",
      "on_tag_value": null,
      "off_tag_value": null,
      "on_type": null,
      "off_type": null,
      "calibrations": null
    }
  ],
  "services": [
    {
      "id": "1",
      "user_id": "2",
      "device_id": "3",
      "name": "Test service",
      "expiration_by": "engine_hours",
      "interval": "0",
      "last_service": "1000",
      "trigger_event_left": "0",
      "renew_after_expiration": "0",
      "expires": "1000",
      "expires_date": null,
      "remind": "1000",
      "remind_date": null,
      "event_sent": "0",
      "expired": "0",
      "email": "",
      "mobile_phone": ""
    }
  ]
}
MODEL devicePost
object
name string required
imei string required
icon_id integer optional
group_id integer optional
sim_number string optional
device_model string optional
plate_number string optional
vin string optional
registration_number string optional
object_owner string optional
fuel_measurement_id string optional
fuel_quantity number optional
fuel_price number optional
min_moving_speed number optional
min_fuel_fillings number optional
min_fuel_thefts number optional
tail_color string optional
tail_length integer optional