{
  "info": {
    "_postman_id": "miot-metrics-api-v1",
    "name": "ModularIoT Metrics API",
    "description": "API collection for sending telemetry data with metrics to ModularIoT using the miot.metrics@1.0 schema.\n\n## Setup\n\n1. Import this collection into Postman\n2. Create an environment with the following variables:\n   - `base_url`: https://iot.streamhub.cl\n   - `auth_url`: https://api.microboxlabs.com/api/v1/login\n   - `client_id`: Your client ID\n   - `client_secret`: Your client secret\n   - `audience`: https://iot.streamhub.cl/v1/asset/track\n3. Run the \"Login\" request first to get an access token\n4. The token will be automatically saved and used in subsequent requests\n\n## Engine Status Detection\n\nThere are two ways to report engine state:\n\n**1. Via `sensors.engine_status` (GPS devices without OBD-II)**\n- Use when the GPS device detects engine state directly via hardware input (e.g., ignition wire)\n- Values: `true` = engine on, `false` = engine off\n\n**2. Via `engine.rpm` metric (OBD-II devices - Recommended)**\n- When sending OBD-II metrics, engine state is implicitly detected from `engine.rpm`\n- `engine.rpm > 0` = engine on\n- `engine.rpm = 0` or absent = engine off\n- The platform also derives `idle.state` when `engine.rpm > 0 AND vehicle.speed ≈ 0`\n\n**Note:** When using OBD-II metrics with `engine.rpm`, you do NOT need to also send `sensors.engine_status`. The `engine.rpm` metric is more reliable for engine state detection.\n\n## Documentation\n\nSee https://docs.modulariot.com/integration/api-reference/asset-track for full API documentation.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{access_token}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "base_url",
      "value": "https://iot.streamhub.cl",
      "type": "string"
    },
    {
      "key": "auth_url",
      "value": "https://api.microboxlabs.com/api/v1/login",
      "type": "string"
    },
    {
      "key": "client_id",
      "value": "YOUR_CLIENT_ID",
      "type": "string"
    },
    {
      "key": "client_secret",
      "value": "YOUR_CLIENT_SECRET",
      "type": "string"
    },
    {
      "key": "audience",
      "value": "https://iot.streamhub.cl/v1/asset/track",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "Authentication",
      "item": [
        {
          "name": "Login",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "var jsonData = pm.response.json();",
                  "if (jsonData.access_token) {",
                  "    pm.collectionVariables.set('access_token', jsonData.access_token);",
                  "    console.log('Token saved successfully');",
                  "}"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "auth": {
              "type": "noauth"
            },
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"client_id\": \"{{client_id}}\",\n  \"client_secret\": \"{{client_secret}}\",\n  \"audience\": \"{{audience}}\",\n  \"grant_type\": \"client_credentials\"\n}"
            },
            "url": {
              "raw": "{{auth_url}}",
              "host": ["{{auth_url}}"]
            },
            "description": "Authenticate with Auth0 to get an access token. The token is automatically saved to the collection variables."
          },
          "response": []
        }
      ]
    },
    {
      "name": "Asset Tracking",
      "item": [
        {
          "name": "Track",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "X-Request-Id",
                "value": "{{$guid}}"
              },
              {
                "key": "X-Request-Timestamp",
                "value": "{{$timestamp}}"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"asset_id\": \"TTBJ72\",\n  \"type\": \"\",\n  \"owner\": \"Transportes Pilar Diaz\",\n  \"timestamp\": \"2025-02-13T13:48:57Z\",\n  \"gps\": {\n    \"latitude\": -29.810218,\n    \"longitude\": -71.282617,\n    \"speed\": 78,\n    \"heading\": 315,\n    \"satellites\": 15\n  },\n  \"sensors\": {\n    \"engine_status\": true\n  }\n}"
            },
            "url": {
              "raw": "{{base_url}}/v1/asset/track",
              "host": ["{{base_url}}"],
              "path": ["v1", "asset", "track"]
            },
            "description": "Basic tracking with GPS location and engine status sensor. Use this format for GPS devices without OBD-II that detect engine state via hardware input."
          },
          "response": []
        },
        {
          "name": "Track with GPS and Metrics",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "X-Request-Id",
                "value": "{{$guid}}"
              },
              {
                "key": "X-Request-Timestamp",
                "value": "{{$timestamp}}"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"asset_id\": \"SVSX88\",\n  \"type\": \"Truck\",\n  \"owner\": \"MicroboxLabs\",\n  \"timestamp\": \"2026-02-02T15:30:00Z\",\n  \"gps\": {\n    \"latitude\": -33.437913,\n    \"longitude\": -70.650456,\n    \"altitude\": 520,\n    \"speed\": 65,\n    \"heading\": 180,\n    \"satellites\": 12\n  },\n  \"sensors\": {\n    \"engine_status\": true\n  },\n  \"metrics\": {\n    \"schema\": \"miot.metrics@1.0\",\n    \"items\": [\n      { \"k\": \"engine.rpm\", \"v\": 2150, \"u\": \"rpm\", \"src\": \"obd2\", \"q\": \"ok\" },\n      { \"k\": \"engine.coolant_temp\", \"v\": 91, \"u\": \"C\", \"src\": \"obd2\", \"q\": \"ok\" },\n      { \"k\": \"battery.voltage\", \"v\": 13.9, \"u\": \"V\", \"src\": \"obd2\", \"q\": \"ok\" },\n      { \"k\": \"vehicle.speed\", \"v\": 65, \"u\": \"km/h\", \"src\": \"obd2\", \"q\": \"ok\" },\n      { \"k\": \"fuel.level\", \"v\": 72, \"u\": \"%\", \"src\": \"obd2\", \"q\": \"ok\" },\n      { \"k\": \"dtc.mil_on\", \"v\": false, \"src\": \"obd2\", \"q\": \"ok\" }\n    ],\n    \"seq\": 100001\n  }\n}"
            },
            "url": {
              "raw": "{{base_url}}/v1/asset/track",
              "host": ["{{base_url}}"],
              "path": ["v1", "asset", "track"]
            },
            "description": "GPS location with common OBD-II metrics including engine RPM, coolant temperature, battery voltage, vehicle speed, fuel level, and MIL status."
          },
          "response": []
        },
        {
          "name": "Track with Batched Metrics",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "X-Request-Id",
                "value": "{{$guid}}"
              },
              {
                "key": "X-Request-Timestamp",
                "value": "{{$timestamp}}"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"asset_id\": \"SVSX88\",\n  \"type\": \"Truck\",\n  \"owner\": \"MicroboxLabs\",\n  \"timestamp\": \"2026-02-02T15:30:30Z\",\n  \"gps\": {\n    \"latitude\": -33.440521,\n    \"longitude\": -70.648123,\n    \"altitude\": 515,\n    \"speed\": 58,\n    \"heading\": 175,\n    \"satellites\": 14\n  },\n  \"metrics\": {\n    \"schema\": \"miot.metrics@1.0\",\n    \"items\": [\n      { \"k\": \"engine.rpm\", \"v\": 1800, \"u\": \"rpm\", \"ts\": \"2026-02-02T15:30:10Z\", \"src\": \"obd2\" },\n      { \"k\": \"engine.rpm\", \"v\": 1950, \"u\": \"rpm\", \"ts\": \"2026-02-02T15:30:20Z\", \"src\": \"obd2\" },\n      { \"k\": \"engine.rpm\", \"v\": 2100, \"u\": \"rpm\", \"ts\": \"2026-02-02T15:30:30Z\", \"src\": \"obd2\" },\n      { \"k\": \"vehicle.speed\", \"v\": 52, \"u\": \"km/h\", \"ts\": \"2026-02-02T15:30:10Z\", \"src\": \"obd2\" },\n      { \"k\": \"vehicle.speed\", \"v\": 55, \"u\": \"km/h\", \"ts\": \"2026-02-02T15:30:20Z\", \"src\": \"obd2\" },\n      { \"k\": \"vehicle.speed\", \"v\": 58, \"u\": \"km/h\", \"ts\": \"2026-02-02T15:30:30Z\", \"src\": \"obd2\" },\n      { \"k\": \"throttle.position\", \"v\": 35, \"u\": \"%\", \"ts\": \"2026-02-02T15:30:30Z\", \"src\": \"obd2\" },\n      { \"k\": \"engine.load\", \"v\": 42, \"u\": \"%\", \"ts\": \"2026-02-02T15:30:30Z\", \"src\": \"obd2\" }\n    ],\n    \"seq\": 100002,\n    \"device_ts\": \"2026-02-02T15:30:30Z\"\n  }\n}"
            },
            "url": {
              "raw": "{{base_url}}/v1/asset/track",
              "host": ["{{base_url}}"],
              "path": ["v1", "asset", "track"]
            },
            "description": "Multiple timestamped metrics in a single request. Useful for devices that buffer data and send in batches. Each metric item can have its own timestamp (ts) override."
          },
          "response": []
        },
        {
          "name": "Track with GPS Sensors (Acceleration/Gyroscope)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "X-Request-Id",
                "value": "{{$guid}}"
              },
              {
                "key": "X-Request-Timestamp",
                "value": "{{$timestamp}}"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"asset_id\": \"TTBJ72\",\n  \"type\": \"Truck\",\n  \"owner\": \"Transportes Pilar Diaz\",\n  \"timestamp\": \"2026-02-13T13:48:57Z\",\n  \"gps\": {\n    \"latitude\": -29.810218,\n    \"longitude\": -71.282617,\n    \"speed\": 78,\n    \"heading\": 315,\n    \"satellites\": 15\n  },\n  \"sensors\": {\n    \"acceleration\": {\n      \"x_axis\": 1.5,\n      \"y_axis\": -0.5,\n      \"z_axis\": 2.0,\n      \"g_force\": 1.2\n    },\n    \"gyroscope\": {\n      \"rotation_rate_x\": 5.5,\n      \"rotation_rate_y\": -3.2,\n      \"rotation_rate_z\": 1.8\n    },\n    \"odometer\": 125432.5,\n    \"engine_status\": true\n  }\n}"
            },
            "url": {
              "raw": "{{base_url}}/v1/asset/track",
              "host": ["{{base_url}}"],
              "path": ["v1", "asset", "track"]
            },
            "description": "Inertial sensor data from a GPS device IMU: three-axis acceleration in g (with total g-force magnitude) and three-axis angular rotation in rad/s. Used to detect harsh braking, hard cornering, impacts and rollover events when no OBD-II/CAN bus is available."
          },
          "response": []
        },
        {
          "name": "Track with Provider Events (Hard Brake/Accel/Turn)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "X-Request-Id",
                "value": "{{$guid}}"
              },
              {
                "key": "X-Request-Timestamp",
                "value": "{{$timestamp}}"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"asset_id\": \"TTBJ72\",\n  \"type\": \"Truck\",\n  \"owner\": \"Transportes Pilar Diaz\",\n  \"timestamp\": \"2026-02-13T13:48:57Z\",\n  \"gps\": {\n    \"latitude\": -29.810218,\n    \"longitude\": -71.282617,\n    \"speed\": 74.5,\n    \"heading\": 315,\n    \"satellites\": 15\n  },\n  \"events\": [\n    {\n      \"event_type\": \"hard_brake\",\n      \"timestamp\": \"2026-02-13T13:48:55Z\",\n      \"severity\": \"high\",\n      \"threshold_exceeded\": true,\n      \"additional_info\": { \"g_force\": 0.82, \"speed_at_event\": 74.5, \"cargo_weight\": 5000 }\n    },\n    {\n      \"event_type\": \"hard_accel\",\n      \"timestamp\": \"2026-02-13T13:48:40Z\",\n      \"severity\": \"medium\",\n      \"threshold_exceeded\": true,\n      \"additional_info\": { \"g_force\": 0.61, \"speed_at_event\": 42.0 }\n    },\n    {\n      \"event_type\": \"hard_turn\",\n      \"timestamp\": \"2026-02-13T13:48:30Z\",\n      \"severity\": \"medium\",\n      \"threshold_exceeded\": true,\n      \"additional_info\": { \"g_force\": 0.55, \"speed_at_event\": 58.0 }\n    }\n  ]\n}"
            },
            "url": {
              "raw": "{{base_url}}/v1/asset/track",
              "host": ["{{base_url}}"],
              "path": ["v1", "asset", "track"]
            },
            "description": "Provider-calculated GPS events delivered in the events[] array. Use this shape when the device or provider already emits typed events (hard brake, hard acceleration, hard turn, speeding, impact) with severity and threshold, rather than only the raw accelerometer/gyroscope reading. Each event carries its own timestamp and optional additional_info (g_force, speed_at_event, cargo_weight)."
          },
          "response": []
        },
        {
          "name": "Track with Full Telemetry",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "X-Request-Id",
                "value": "{{$guid}}"
              },
              {
                "key": "X-Request-Timestamp",
                "value": "{{$timestamp}}"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"asset_id\": \"SVSX88\",\n  \"type\": \"Truck\",\n  \"owner\": \"MicroboxLabs\",\n  \"timestamp\": \"2026-02-02T16:00:00Z\",\n  \"gps\": {\n    \"latitude\": -33.452178,\n    \"longitude\": -70.639845,\n    \"altitude\": 498,\n    \"speed\": 0,\n    \"heading\": 90,\n    \"satellites\": 16\n  },\n  \"telecom\": {\n    \"iccid\": \"8956012345678901234\",\n    \"imei\": \"123456789012345\",\n    \"signal_strength\": -67\n  },\n  \"sensors\": {\n    \"engine_status\": true\n  },\n  \"metrics\": {\n    \"schema\": \"miot.metrics@1.0\",\n    \"items\": [\n      { \"k\": \"engine.rpm\", \"v\": 850, \"u\": \"rpm\", \"src\": \"obd2\", \"q\": \"ok\" },\n      { \"k\": \"engine.coolant_temp\", \"v\": 88, \"u\": \"C\", \"src\": \"obd2\", \"q\": \"ok\" },\n      { \"k\": \"engine.intake_air_temp\", \"v\": 32, \"u\": \"C\", \"src\": \"obd2\", \"q\": \"ok\" },\n      { \"k\": \"engine.load\", \"v\": 18, \"u\": \"%\", \"src\": \"obd2\", \"q\": \"ok\" },\n      { \"k\": \"engine.runtime\", \"v\": 7245, \"u\": \"s\", \"src\": \"obd2\", \"q\": \"ok\" },\n      { \"k\": \"vehicle.speed\", \"v\": 0, \"u\": \"km/h\", \"src\": \"obd2\", \"q\": \"ok\" },\n      { \"k\": \"throttle.position\", \"v\": 12, \"u\": \"%\", \"src\": \"obd2\", \"q\": \"ok\" },\n      { \"k\": \"battery.voltage\", \"v\": 14.2, \"u\": \"V\", \"src\": \"obd2\", \"q\": \"ok\" },\n      { \"k\": \"fuel.level\", \"v\": 68, \"u\": \"%\", \"src\": \"obd2\", \"q\": \"ok\" },\n      { \"k\": \"fuel.rate\", \"v\": 1.8, \"u\": \"L/h\", \"src\": \"obd2\", \"q\": \"ok\" },\n      { \"k\": \"vehicle.odometer\", \"v\": 142587, \"u\": \"km\", \"src\": \"obd2\", \"q\": \"ok\" },\n      { \"k\": \"dtc.mil_on\", \"v\": false, \"src\": \"obd2\", \"q\": \"ok\" }\n    ],\n    \"seq\": 100003,\n    \"device_ts\": \"2026-02-02T16:00:00Z\"\n  }\n}"
            },
            "url": {
              "raw": "{{base_url}}/v1/asset/track",
              "host": ["{{base_url}}"],
              "path": ["v1", "asset", "track"]
            },
            "description": "Comprehensive example with GPS, telecom, sensors, and extensive metrics including engine data, fuel consumption, odometer, idling detection, and device capabilities. This represents a full-featured OBD-II integration."
          },
          "response": []
        },
        {
          "name": "Track with DTC Codes",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "X-Request-Id",
                "value": "{{$guid}}"
              },
              {
                "key": "X-Request-Timestamp",
                "value": "{{$timestamp}}"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"asset_id\": \"SVSX88\",\n  \"type\": \"Truck\",\n  \"owner\": \"MicroboxLabs\",\n  \"timestamp\": \"2026-02-02T17:15:00Z\",\n  \"gps\": {\n    \"latitude\": -33.448912,\n    \"longitude\": -70.655234,\n    \"altitude\": 510,\n    \"speed\": 45,\n    \"heading\": 270,\n    \"satellites\": 11\n  },\n  \"sensors\": {\n    \"engine_status\": true\n  },\n  \"metrics\": {\n    \"schema\": \"miot.metrics@1.0\",\n    \"items\": [\n      { \"k\": \"engine.rpm\", \"v\": 2400, \"u\": \"rpm\", \"src\": \"obd2\", \"q\": \"ok\" },\n      { \"k\": \"engine.coolant_temp\", \"v\": 105, \"u\": \"C\", \"src\": \"obd2\", \"q\": \"ok\" },\n      { \"k\": \"vehicle.speed\", \"v\": 45, \"u\": \"km/h\", \"src\": \"obd2\", \"q\": \"ok\" },\n      { \"k\": \"battery.voltage\", \"v\": 13.1, \"u\": \"V\", \"src\": \"obd2\", \"q\": \"ok\" },\n      { \"k\": \"dtc.mil_on\", \"v\": true, \"src\": \"obd2\", \"q\": \"ok\" },\n      {\n        \"k\": \"dtc.codes\",\n        \"v\": [\"P0217\", \"P0128\"],\n        \"src\": \"obd2\",\n        \"q\": \"ok\",\n        \"meta\": {\n          \"descriptions\": {\n            \"P0217\": \"Engine Coolant Over Temperature Condition\",\n            \"P0128\": \"Coolant Thermostat Below Regulating Temperature\"\n          }\n        }\n      }\n    ],\n    \"seq\": 100004,\n    \"device_ts\": \"2026-02-02T17:15:00Z\"\n  }\n}"
            },
            "url": {
              "raw": "{{base_url}}/v1/asset/track",
              "host": ["{{base_url}}"],
              "path": ["v1", "asset", "track"]
            },
            "description": "Diagnostic trouble codes (DTCs) with check engine light on. Includes the MIL status, DTC count, and array of fault codes with optional metadata for descriptions."
          },
          "response": []
        },
        {
          "name": "Track with OBD-II Vehicle Data",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "X-Request-Id",
                "value": "{{$guid}}"
              },
              {
                "key": "X-Request-Timestamp",
                "value": "{{$timestamp}}"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"asset_id\": \"SVSX88\",\n  \"type\": \"Truck\",\n  \"owner\": \"MicroboxLabs\",\n  \"timestamp\": \"2026-02-05T10:30:00Z\",\n  \"gps\": {\n    \"latitude\": -33.445123,\n    \"longitude\": -70.660789,\n    \"altitude\": 515,\n    \"speed\": 72,\n    \"heading\": 145,\n    \"satellites\": 14\n  },\n  \"sensors\": {\n    \"engine_status\": true\n  },\n  \"metrics\": {\n    \"schema\": \"miot.metrics@1.0\",\n    \"items\": [\n      { \"k\": \"engine.rpm\", \"v\": 2850, \"u\": \"rpm\", \"src\": \"obd2\", \"q\": \"ok\" },\n      { \"k\": \"vehicle.speed\", \"v\": 72, \"u\": \"km/h\", \"src\": \"obd2\", \"q\": \"ok\" },\n      { \"k\": \"fuel.level\", \"v\": 54, \"u\": \"%\", \"src\": \"obd2\", \"q\": \"ok\" },\n      { \"k\": \"engine.coolant_temp\", \"v\": 92, \"u\": \"C\", \"src\": \"obd2\", \"q\": \"ok\" },\n      { \"k\": \"battery.voltage\", \"v\": 14.1, \"u\": \"V\", \"src\": \"obd2\", \"q\": \"ok\" },\n      { \"k\": \"vehicle.odometer\", \"v\": 87432, \"u\": \"km\", \"src\": \"obd2\", \"q\": \"ok\" },\n      { \"k\": \"fuel.rate\", \"v\": 8.5, \"u\": \"L/h\", \"src\": \"obd2\", \"q\": \"ok\" },\n      { \"k\": \"engine.load\", \"v\": 42, \"u\": \"%\", \"src\": \"obd2\", \"q\": \"ok\" },\n      { \"k\": \"throttle.position\", \"v\": 35, \"u\": \"%\", \"src\": \"obd2\", \"q\": \"ok\" },\n      { \"k\": \"catalyst.temp\", \"v\": 485, \"u\": \"C\", \"src\": \"obd2\", \"q\": \"ok\" },\n      { \"k\": \"dtc.mil_on\", \"v\": false, \"src\": \"obd2\", \"q\": \"ok\" }\n    ],\n    \"seq\": 100005,\n    \"device_ts\": \"2026-02-05T10:30:00Z\"\n  }\n}"
            },
            "url": {
              "raw": "{{base_url}}/v1/asset/track",
              "host": ["{{base_url}}"],
              "path": ["v1", "asset", "track"]
            },
            "description": "Comprehensive OBD-II vehicle data while driving. Includes engine metrics (RPM, load, coolant temp), fuel metrics (level, rate), vehicle metrics (speed, odometer), emissions (catalyst temp), and diagnostics."
          },
          "response": []
        },
        {
          "name": "Track with Heavy-Duty Extensions (AdBlue/DPF)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "X-Request-Id",
                "value": "{{$guid}}"
              },
              {
                "key": "X-Request-Timestamp",
                "value": "{{$timestamp}}"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"asset_id\": \"SVSX88\",\n  \"type\": \"Truck\",\n  \"owner\": \"MicroboxLabs\",\n  \"timestamp\": \"2026-02-05T14:00:00Z\",\n  \"gps\": {\n    \"latitude\": -33.438712,\n    \"longitude\": -70.641234,\n    \"altitude\": 508,\n    \"speed\": 82,\n    \"heading\": 200,\n    \"satellites\": 13\n  },\n  \"metrics\": {\n    \"schema\": \"miot.metrics@1.0\",\n    \"items\": [\n      { \"k\": \"engine.rpm\", \"v\": 1850, \"u\": \"rpm\", \"src\": \"j1939\", \"q\": \"ok\" },\n      { \"k\": \"vehicle.speed\", \"v\": 82, \"u\": \"km/h\", \"src\": \"j1939\", \"q\": \"ok\" },\n      { \"k\": \"engine.coolant_temp\", \"v\": 89, \"u\": \"C\", \"src\": \"j1939\", \"q\": \"ok\" },\n      { \"k\": \"fuel.level\", \"v\": 61, \"u\": \"%\", \"src\": \"j1939\", \"q\": \"ok\" },\n      { \"k\": \"engine.load\", \"v\": 55, \"u\": \"%\", \"src\": \"j1939\", \"q\": \"ok\" },\n      { \"k\": \"battery.voltage\", \"v\": 27.8, \"u\": \"V\", \"src\": \"j1939\", \"q\": \"ok\" },\n      { \"k\": \"vehicle.odometer\", \"v\": 342150, \"u\": \"km\", \"src\": \"j1939\", \"q\": \"ok\" },\n      { \"k\": \"x.adblue.level\", \"v\": 72.5, \"u\": \"%\", \"src\": \"j1939\", \"q\": \"ok\" },\n      { \"k\": \"x.adblue.volume\", \"v\": 48.2, \"u\": \"L\", \"src\": \"j1939\", \"q\": \"ok\" },\n      { \"k\": \"x.adblue.rate\", \"v\": 1.2, \"u\": \"L/h\", \"src\": \"j1939\", \"q\": \"ok\" },\n      { \"k\": \"x.adblue.temp\", \"v\": 25.0, \"u\": \"C\", \"src\": \"j1939\", \"q\": \"ok\" },\n      { \"k\": \"x.dpf.differential_pressure\", \"v\": 12.3, \"u\": \"kPa\", \"src\": \"j1939\", \"q\": \"ok\" },\n      { \"k\": \"x.dpf.inlet_temp\", \"v\": 350, \"u\": \"C\", \"src\": \"j1939\", \"q\": \"ok\" },\n      { \"k\": \"x.dpf.outlet_temp\", \"v\": 310, \"u\": \"C\", \"src\": \"j1939\", \"q\": \"ok\" },\n      { \"k\": \"x.dpf.soot_load\", \"v\": 45, \"u\": \"%\", \"src\": \"j1939\", \"q\": \"ok\" },\n      { \"k\": \"x.dpf.soot_density\", \"v\": 6.4, \"u\": \"g/L\", \"src\": \"j1939\", \"q\": \"ok\" },\n      { \"k\": \"x.dpf.regen_state\", \"v\": false, \"src\": \"j1939\", \"q\": \"ok\" },\n      { \"k\": \"dtc.mil_on\", \"v\": false, \"src\": \"j1939\", \"q\": \"ok\" }\n    ],\n    \"seq\": 200001,\n    \"device_ts\": \"2026-02-05T14:00:00Z\"\n  }\n}"
            },
            "url": {
              "raw": "{{base_url}}/v1/asset/track",
              "host": ["{{base_url}}"],
              "path": ["v1", "asset", "track"]
            },
            "description": "Heavy-duty truck with J1939 metrics including AdBlue (DEF) tank level, consumption rate, and temperature, plus DPF (Diesel Particulate Filter) differential pressure, exhaust temperatures, soot load, and regeneration state. These use the x.* extension key prefix for vendor/fleet-specific metrics. Note: source is 'j1939' for heavy-duty bus data."
          },
          "response": []
        },
        {
          "name": "Track with Vehicle Identity and DTCs",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "X-Request-Id",
                "value": "{{$guid}}"
              },
              {
                "key": "X-Request-Timestamp",
                "value": "{{$timestamp}}"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"asset_id\": \"SVSX88\",\n  \"type\": \"Truck\",\n  \"owner\": \"MicroboxLabs\",\n  \"timestamp\": \"2026-02-05T11:45:00Z\",\n  \"gps\": {\n    \"latitude\": -33.451234,\n    \"longitude\": -70.648567,\n    \"altitude\": 502,\n    \"speed\": 0,\n    \"heading\": 90,\n    \"satellites\": 12\n  },\n  \"sensors\": {\n    \"engine_status\": true\n  },\n  \"metrics\": {\n    \"schema\": \"miot.metrics@1.0\",\n    \"items\": [\n      { \"k\": \"vehicle.vin\", \"v\": \"1HGCM82633A004352\", \"src\": \"obd2\", \"q\": \"ok\" },\n      { \"k\": \"vehicle.protocol\", \"v\": \"ISO 15765-4 CAN (11 bit ID, 500 kbaud)\", \"src\": \"obd2\", \"q\": \"ok\" },\n      { \"k\": \"engine.rpm\", \"v\": 780, \"u\": \"rpm\", \"src\": \"obd2\", \"q\": \"ok\" },\n      { \"k\": \"vehicle.speed\", \"v\": 0, \"u\": \"km/h\", \"src\": \"obd2\", \"q\": \"ok\" },\n      { \"k\": \"fuel.level\", \"v\": 32, \"u\": \"%\", \"src\": \"obd2\", \"q\": \"ok\" },\n      { \"k\": \"engine.coolant_temp\", \"v\": 98, \"u\": \"C\", \"src\": \"obd2\", \"q\": \"ok\" },\n      { \"k\": \"battery.voltage\", \"v\": 13.8, \"u\": \"V\", \"src\": \"obd2\", \"q\": \"ok\" },\n      { \"k\": \"vehicle.odometer\", \"v\": 156789, \"u\": \"km\", \"src\": \"obd2\", \"q\": \"ok\" },\n      { \"k\": \"fuel.rate\", \"v\": 1.2, \"u\": \"L/h\", \"src\": \"obd2\", \"q\": \"ok\" },\n      { \"k\": \"engine.load\", \"v\": 15, \"u\": \"%\", \"src\": \"obd2\", \"q\": \"ok\" },\n      { \"k\": \"throttle.position\", \"v\": 10, \"u\": \"%\", \"src\": \"obd2\", \"q\": \"ok\" },\n      { \"k\": \"catalyst.temp\", \"v\": 320, \"u\": \"C\", \"src\": \"obd2\", \"q\": \"ok\" },\n      { \"k\": \"dtc.mil_on\", \"v\": true, \"src\": \"obd2\", \"q\": \"ok\" },\n      {\n        \"k\": \"dtc.codes\",\n        \"v\": [\"P0420\", \"P0171\"],\n        \"src\": \"obd2\",\n        \"q\": \"ok\",\n        \"meta\": {\n          \"descriptions\": {\n            \"P0420\": \"Catalyst System Efficiency Below Threshold (Bank 1)\",\n            \"P0171\": \"System Too Lean (Bank 1)\"\n          }\n        }\n      }\n    ],\n    \"seq\": 100006,\n    \"device_ts\": \"2026-02-05T11:45:00Z\"\n  }\n}"
            },
            "url": {
              "raw": "{{base_url}}/v1/asset/track",
              "host": ["{{base_url}}"],
              "path": ["v1", "asset", "track"]
            },
            "description": "Vehicle identity information (VIN, protocol) with active diagnostic trouble codes. Shows an idling vehicle with check engine light on and comprehensive OBD-II metrics."
          },
          "response": []
        }
      ]
    }
  ]
}
