---
updatedAt: 2026-09-02T20:23:35.000Z
agentTools:
  projectIndex: https://developers.samsara.com/llms.txt
---

# Get trailer stats history

Returns trailer stats during the given time range for all trailers. This can be optionally filtered by tags or specific trailer IDs.

 <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).

To use this endpoint, select **Read Trailer Statistics** under the Trailers category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
 

 **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href="https://forms.gle/zkD4NCH7HjKb7mm69" target="_blank">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href="https://www.samsara.com/help" target="_blank">submit a case</a> to our support team.

# OpenAPI definition

````json
{
  "components": {
    "schemas": {
      "GoaPaginationResponseResponseBody": {
        "description": "Pagination parameters.",
        "properties": {
          "endCursor": {
            "description": "Cursor identifier representing the last element in the response. This value should be used in conjunction with a subsequent request's 'after' query parameter. This may be an empty string if there are no more pages left to view.",
            "example": "MjkY",
            "type": "string"
          },
          "hasNextPage": {
            "description": "True if there are more pages of results immediately available after this endCursor.",
            "example": true,
            "type": "boolean"
          }
        },
        "required": [
          "endCursor",
          "hasNextPage"
        ],
        "type": "object"
      },
      "ReverseGeoObjectResponseBody": {
        "description": "Reverse geocoded information",
        "properties": {
          "formattedLocation": {
            "description": "Formatted address of the reverse geocoding data.",
            "example": "850 Made Up Lane, Orange, CA",
            "type": "string"
          }
        },
        "type": "object"
      },
      "TrailerStatDecorationResponseBody": {
        "description": "Decorated values for the primary trailer stat datapoints.",
        "properties": {
          "carrierReeferState": {
            "$ref": "#/components/schemas/TrailerStatReeferStateTypeResponseBody"
          },
          "gps": {
            "$ref": "#/components/schemas/TrailerStatGpsTypeResponseBody"
          },
          "gpsOdometerMeters": {
            "$ref": "#/components/schemas/TrailerStatGpsOdometerMetersTypeResponseBody"
          },
          "reeferAlarms": {
            "$ref": "#/components/schemas/TrailerStatReeferAlarmTypeResponseBody"
          },
          "reeferAmbientAirTemperatureMilliC": {
            "$ref": "#/components/schemas/TrailerStatReeferAmbientAirTemperatureMilliCTypeResponseBody"
          },
          "reeferDoorStateZone1": {
            "$ref": "#/components/schemas/TrailerStatReeferDoorStateZone1TypeResponseBody"
          },
          "reeferDoorStateZone2": {
            "$ref": "#/components/schemas/TrailerStatReeferDoorStateZone2TypeResponseBody"
          },
          "reeferDoorStateZone3": {
            "$ref": "#/components/schemas/TrailerStatReeferDoorStateZone3TypeResponseBody"
          },
          "reeferFuelPercent": {
            "$ref": "#/components/schemas/TrailerStatReeferFuelPercentTypeResponseBody"
          },
          "reeferObdEngineSeconds": {
            "$ref": "#/components/schemas/TrailerStatReeferObdEngineSecondsTypeResponseBody"
          },
          "reeferReturnAirTemperatureMilliCZone1": {
            "$ref": "#/components/schemas/TrailerStatReeferReturnAirTemperatureMilliCZone1TypeResponseBody"
          },
          "reeferReturnAirTemperatureMilliCZone2": {
            "$ref": "#/components/schemas/TrailerStatReeferReturnAirTemperatureMilliCZone2TypeResponseBody"
          },
          "reeferReturnAirTemperatureMilliCZone3": {
            "$ref": "#/components/schemas/TrailerStatReeferReturnAirTemperatureMilliCZone3TypeResponseBody"
          },
          "reeferRunMode": {
            "$ref": "#/components/schemas/TrailerStatReeferRunModeTypeResponseBody"
          },
          "reeferSetPointTemperatureMilliCZone1": {
            "$ref": "#/components/schemas/TrailerStatReeferSetPointTemperatureMilliCZone1TypeResponseBody"
          },
          "reeferSetPointTemperatureMilliCZone2": {
            "$ref": "#/components/schemas/TrailerStatReeferSetPointTemperatureMilliCZone2TypeResponseBody"
          },
          "reeferSetPointTemperatureMilliCZone3": {
            "$ref": "#/components/schemas/TrailerStatReeferSetPointTemperatureMilliCZone3TypeResponseBody"
          },
          "reeferStateZone1": {
            "$ref": "#/components/schemas/TrailerStatReeferStateZone1TypeResponseBody"
          },
          "reeferStateZone2": {
            "$ref": "#/components/schemas/TrailerStatReeferStateZone2TypeResponseBody"
          },
          "reeferStateZone3": {
            "$ref": "#/components/schemas/TrailerStatReeferStateZone3TypeResponseBody"
          },
          "reeferSupplyAirTemperatureMilliCZone1": {
            "$ref": "#/components/schemas/TrailerStatReeferSupplyAirTemperatureMilliCZone1TypeResponseBody"
          },
          "reeferSupplyAirTemperatureMilliCZone2": {
            "$ref": "#/components/schemas/TrailerStatReeferSupplyAirTemperatureMilliCZone2TypeResponseBody"
          },
          "reeferSupplyAirTemperatureMilliCZone3": {
            "$ref": "#/components/schemas/TrailerStatReeferSupplyAirTemperatureMilliCZone3TypeResponseBody"
          }
        },
        "type": "object"
      },
      "TrailerStatGpsOdometerMetersTypeResponseBody": {
        "description": "Trailer GPS odometer event.",
        "properties": {
          "time": {
            "description": "UTC timestamp in RFC 3339 format.",
            "example": "2020-01-27T07:06:25Z",
            "type": "string"
          },
          "value": {
            "description": "Number of meters the trailer has traveled according to the GPS calculations and the manually specified odometer reading.",
            "example": 50,
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "time",
          "value"
        ],
        "type": "object"
      },
      "TrailerStatGpsOdometerMetersWithDecorationsTypeResponseBody": {
        "description": "Trailer GPS odometer event.",
        "properties": {
          "decorations": {
            "$ref": "#/components/schemas/TrailerStatDecorationResponseBody"
          },
          "time": {
            "description": "UTC timestamp in RFC 3339 format.",
            "example": "2020-01-27T07:06:25Z",
            "type": "string"
          },
          "value": {
            "description": "Number of meters the trailer has traveled according to the GPS calculations and the manually specified odometer reading.",
            "example": 50,
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "time",
          "value"
        ],
        "type": "object"
      },
      "TrailerStatGpsTypeResponseBody": {
        "description": "GPS location data for the trailer.",
        "properties": {
          "headingDegrees": {
            "description": "Heading of the trailer in degrees.",
            "example": 7982033236946874000,
            "format": "int64",
            "type": "integer"
          },
          "latitude": {
            "description": "GPS latitude represented in degrees.",
            "example": 0.02659130816226228,
            "format": "double",
            "type": "number"
          },
          "longitude": {
            "description": "GPS longitude represented in degrees.",
            "example": 0.468774774626828,
            "format": "double",
            "type": "number"
          },
          "reverseGeo": {
            "$ref": "#/components/schemas/ReverseGeoObjectResponseBody"
          },
          "speedMilesPerHour": {
            "description": "GPS speed of the trailer in miles per hour.",
            "example": 842599652113183900,
            "format": "int64",
            "type": "integer"
          },
          "time": {
            "description": "UTC timestamp in RFC 3339 format.",
            "example": "2020-01-27T07:06:25Z",
            "type": "string"
          }
        },
        "required": [
          "latitude",
          "longitude",
          "time"
        ],
        "type": "object"
      },
      "TrailerStatGpsWithDecorationsTypeResponseBody": {
        "description": "GPS location data for the trailer.",
        "properties": {
          "decorations": {
            "$ref": "#/components/schemas/TrailerStatDecorationResponseBody"
          },
          "headingDegrees": {
            "description": "Heading of the trailer in degrees.",
            "example": 1495749085005925000,
            "format": "int64",
            "type": "integer"
          },
          "latitude": {
            "description": "GPS latitude represented in degrees.",
            "example": 0.5449429145346,
            "format": "double",
            "type": "number"
          },
          "longitude": {
            "description": "GPS longitude represented in degrees.",
            "example": 0.46982365750308985,
            "format": "double",
            "type": "number"
          },
          "reverseGeo": {
            "$ref": "#/components/schemas/ReverseGeoObjectResponseBody"
          },
          "speedMilesPerHour": {
            "description": "GPS speed of the trailer in miles per hour.",
            "example": 152047843600549300,
            "format": "int64",
            "type": "integer"
          },
          "time": {
            "description": "UTC timestamp in RFC 3339 format.",
            "example": "2020-01-27T07:06:25Z",
            "type": "string"
          }
        },
        "required": [
          "latitude",
          "longitude",
          "time"
        ],
        "type": "object"
      },
      "TrailerStatReeferAlarmResponseBody": {
        "properties": {
          "alarmCode": {
            "description": "The ID of the alarm.",
            "example": "3",
            "type": "string"
          },
          "description": {
            "description": "The description of the alarm.",
            "example": "Test alarm",
            "type": "string"
          },
          "operatorAction": {
            "description": "The recommended operator action.",
            "example": "Manually disable alarm",
            "type": "string"
          },
          "severity": {
            "description": "The severity of the alarm. `1`: Ok to run, `2`: Check as specified, `3`: Take immediate action.",
            "example": 6264683518707844000,
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "alarmCode",
          "description",
          "operatorAction",
          "severity"
        ],
        "type": "object"
      },
      "TrailerStatReeferAlarmTypeResponseBody": {
        "description": "Alarms that have been emitted by the reefer.",
        "properties": {
          "alarms": {
            "description": "The alarms reported by the reefer.",
            "items": {
              "$ref": "#/components/schemas/TrailerStatReeferAlarmResponseBody"
            },
            "type": "array"
          },
          "time": {
            "description": "UTC timestamp in RFC 3339 format.",
            "example": "2020-01-27T07:06:25Z",
            "type": "string"
          }
        },
        "required": [
          "alarms",
          "time"
        ],
        "type": "object"
      },
      "TrailerStatReeferAlarmWithDecorationsTypeResponseBody": {
        "description": "Alarms that have been emitted by the reefer.",
        "properties": {
          "alarms": {
            "description": "The alarms reported by the reefer.",
            "items": {
              "$ref": "#/components/schemas/TrailerStatReeferAlarmResponseBody"
            },
            "type": "array"
          },
          "decorations": {
            "$ref": "#/components/schemas/TrailerStatDecorationResponseBody"
          },
          "time": {
            "description": "UTC timestamp in RFC 3339 format.",
            "example": "2020-01-27T07:06:25Z",
            "type": "string"
          }
        },
        "required": [
          "alarms",
          "time"
        ],
        "type": "object"
      },
      "TrailerStatReeferAmbientAirTemperatureMilliCTypeResponseBody": {
        "description": "Reefer ambient air temperature reading.",
        "properties": {
          "time": {
            "description": "UTC timestamp in RFC 3339 format.",
            "example": "2020-01-27T07:06:25Z",
            "type": "string"
          },
          "value": {
            "description": "The ambient air temperature reading of the reefer in millidegree Celsius.",
            "example": 50,
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "time",
          "value"
        ],
        "type": "object"
      },
      "TrailerStatReeferAmbientAirTemperatureWithDecorationsTypeResponseBody": {
        "description": "Reefer ambient air temperature reading.",
        "properties": {
          "decorations": {
            "$ref": "#/components/schemas/TrailerStatDecorationResponseBody"
          },
          "time": {
            "description": "UTC timestamp in RFC 3339 format.",
            "example": "2020-01-27T07:06:25Z",
            "type": "string"
          },
          "value": {
            "description": "The ambient air temperature reading of the reefer in millidegree Celsius.",
            "example": 50,
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "time",
          "value"
        ],
        "type": "object"
      },
      "TrailerStatReeferDoorStateZone1TypeResponseBody": {
        "description": "The door state of the reefer.",
        "properties": {
          "time": {
            "description": "UTC timestamp in RFC 3339 format.",
            "example": "2020-01-27T07:06:25Z",
            "type": "string"
          },
          "value": {
            "description": "The door state of zone 2 of the reefer.  Valid values: `open`, `closed`",
            "enum": [
              "open",
              "closed"
            ],
            "example": "closed",
            "type": "string"
          }
        },
        "required": [
          "time",
          "value"
        ],
        "type": "object"
      },
      "TrailerStatReeferDoorStateZone1WithDecorationsTypeResponseBody": {
        "description": "Door stats that have been emitted by the reefer.",
        "properties": {
          "decorations": {
            "$ref": "#/components/schemas/TrailerStatDecorationResponseBody"
          },
          "time": {
            "description": "UTC timestamp in RFC 3339 format.",
            "example": "2020-01-27T07:06:25Z",
            "type": "string"
          },
          "value": {
            "description": "The door state of zone 2 of the reefer.  Valid values: `open`, `closed`",
            "enum": [
              "open",
              "closed"
            ],
            "example": "closed",
            "type": "string"
          }
        },
        "required": [
          "time",
          "value"
        ],
        "type": "object"
      },
      "TrailerStatReeferDoorStateZone2TypeResponseBody": {
        "description": "The door state of the reefer.",
        "properties": {
          "time": {
            "description": "UTC timestamp in RFC 3339 format.",
            "example": "2020-01-27T07:06:25Z",
            "type": "string"
          },
          "value": {
            "description": "The door state of zone 2 of the reefer.  Valid values: `open`, `closed`",
            "enum": [
              "open",
              "closed"
            ],
            "example": "closed",
            "type": "string"
          }
        },
        "required": [
          "time",
          "value"
        ],
        "type": "object"
      },
      "TrailerStatReeferDoorStateZone2WithDecorationsTypeResponseBody": {
        "description": "Door stats that have been emitted by the reefer.",
        "properties": {
          "decorations": {
            "$ref": "#/components/schemas/TrailerStatDecorationResponseBody"
          },
          "time": {
            "description": "UTC timestamp in RFC 3339 format.",
            "example": "2020-01-27T07:06:25Z",
            "type": "string"
          },
          "value": {
            "description": "The door state of zone 2 of the reefer.  Valid values: `open`, `closed`",
            "enum": [
              "open",
              "closed"
            ],
            "example": "closed",
            "type": "string"
          }
        },
        "required": [
          "time",
          "value"
        ],
        "type": "object"
      },
      "TrailerStatReeferDoorStateZone3TypeResponseBody": {
        "description": "The door state of the reefer.",
        "properties": {
          "time": {
            "description": "UTC timestamp in RFC 3339 format.",
            "example": "2020-01-27T07:06:25Z",
            "type": "string"
          },
          "value": {
            "description": "The door state of zone 2 of the reefer.  Valid values: `open`, `closed`",
            "enum": [
              "open",
              "closed"
            ],
            "example": "closed",
            "type": "string"
          }
        },
        "required": [
          "time",
          "value"
        ],
        "type": "object"
      },
      "TrailerStatReeferDoorStateZone3WithDecorationsTypeResponseBody": {
        "description": "Door stats that have been emitted by the reefer.",
        "properties": {
          "decorations": {
            "$ref": "#/components/schemas/TrailerStatDecorationResponseBody"
          },
          "time": {
            "description": "UTC timestamp in RFC 3339 format.",
            "example": "2020-01-27T07:06:25Z",
            "type": "string"
          },
          "value": {
            "description": "The door state of zone 2 of the reefer.  Valid values: `open`, `closed`",
            "enum": [
              "open",
              "closed"
            ],
            "example": "closed",
            "type": "string"
          }
        },
        "required": [
          "time",
          "value"
        ],
        "type": "object"
      },
      "TrailerStatReeferFuelPercentTypeResponseBody": {
        "description": "The fuel percentage of the reefer.",
        "properties": {
          "time": {
            "description": "UTC timestamp in RFC 3339 format.",
            "example": "2020-01-27T07:06:25Z",
            "type": "string"
          },
          "value": {
            "description": "The fuel level in percentage points (e.g. `99`, `50`, etc).",
            "example": 50,
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "time",
          "value"
        ],
        "type": "object"
      },
      "TrailerStatReeferFuelPercentWithDecorationsTypeResponseBody": {
        "description": "The fuel percentage of the reefer.",
        "properties": {
          "decorations": {
            "$ref": "#/components/schemas/TrailerStatDecorationResponseBody"
          },
          "time": {
            "description": "UTC timestamp in RFC 3339 format.",
            "example": "2020-01-27T07:06:25Z",
            "type": "string"
          },
          "value": {
            "description": "The fuel level in percentage points (e.g. `99`, `50`, etc).",
            "example": 50,
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "time",
          "value"
        ],
        "type": "object"
      },
      "TrailerStatReeferObdEngineSecondsTypeResponseBody": {
        "description": "Reefer onboard engine seconds reading.",
        "properties": {
          "time": {
            "description": "UTC timestamp in RFC 3339 format.",
            "example": "2020-01-27T07:06:25Z",
            "type": "string"
          },
          "value": {
            "description": "The number of seconds the reefer has been on according to the onboard diagnostics.",
            "example": 50,
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "time",
          "value"
        ],
        "type": "object"
      },
      "TrailerStatReeferObdEngineSecondsWithDecorationsTypeResponseBody": {
        "description": "Reefer onboard engine seconds reading.",
        "properties": {
          "decorations": {
            "$ref": "#/components/schemas/TrailerStatDecorationResponseBody"
          },
          "time": {
            "description": "UTC timestamp in RFC 3339 format.",
            "example": "2020-01-27T07:06:25Z",
            "type": "string"
          },
          "value": {
            "description": "The number of seconds the reefer has been on according to the onboard diagnostics.",
            "example": 50,
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "time",
          "value"
        ],
        "type": "object"
      },
      "TrailerStatReeferReturnAirTemperatureMilliCZone1TypeResponseBody": {
        "description": "Return air temperature of zone 1 of the reefer. This is the temperature of the air as it enters the cooling unit.",
        "properties": {
          "time": {
            "description": "UTC timestamp in RFC 3339 format.",
            "example": "2020-01-27T07:06:25Z",
            "type": "string"
          },
          "value": {
            "description": "The return air temperature reading in millidegree Celsius.",
            "example": 50,
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "time",
          "value"
        ],
        "type": "object"
      },
      "TrailerStatReeferReturnAirTemperatureMilliCZone1WithDecorationsTypeResponseBody": {
        "description": "Return air temperature of zone 1 of the reefer. This is the temperature of the air as it enters the cooling unit.",
        "properties": {
          "decorations": {
            "$ref": "#/components/schemas/TrailerStatDecorationResponseBody"
          },
          "time": {
            "description": "UTC timestamp in RFC 3339 format.",
            "example": "2020-01-27T07:06:25Z",
            "type": "string"
          },
          "value": {
            "description": "The return air temperature reading in millidegree Celsius.",
            "example": 50,
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "time",
          "value"
        ],
        "type": "object"
      },
      "TrailerStatReeferReturnAirTemperatureMilliCZone2TypeResponseBody": {
        "description": "Return air temperature of zone 2 of the reefer. This is the temperature of the air as it enters the cooling unit.",
        "properties": {
          "time": {
            "description": "UTC timestamp in RFC 3339 format.",
            "example": "2020-01-27T07:06:25Z",
            "type": "string"
          },
          "value": {
            "description": "The return air temperature reading in millidegree Celsius.",
            "example": 50,
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "time",
          "value"
        ],
        "type": "object"
      },
      "TrailerStatReeferReturnAirTemperatureMilliCZone2WithDecorationsTypeResponseBody": {
        "description": "Return air temperature of zone 2 of the reefer. This is the temperature of the air as it enters the cooling unit.",
        "properties": {
          "decorations": {
            "$ref": "#/components/schemas/TrailerStatDecorationResponseBody"
          },
          "time": {
            "description": "UTC timestamp in RFC 3339 format.",
            "example": "2020-01-27T07:06:25Z",
            "type": "string"
          },
          "value": {
            "description": "The return air temperature reading in millidegree Celsius.",
            "example": 50,
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "time",
          "value"
        ],
        "type": "object"
      },
      "TrailerStatReeferReturnAirTemperatureMilliCZone3TypeResponseBody": {
        "description": "Return air temperature of zone 3 of the reefer. This is the temperature of the air as it enters the cooling unit.",
        "properties": {
          "time": {
            "description": "UTC timestamp in RFC 3339 format.",
            "example": "2020-01-27T07:06:25Z",
            "type": "string"
          },
          "value": {
            "description": "The return air temperature reading in millidegree Celsius.",
            "example": 50,
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "time",
          "value"
        ],
        "type": "object"
      },
      "TrailerStatReeferReturnAirTemperatureMilliCZone3WithDecorationsTypeResponseBody": {
        "description": "Return air temperature of zone 3 of the reefer. This is the temperature of the air as it enters the cooling unit.",
        "properties": {
          "decorations": {
            "$ref": "#/components/schemas/TrailerStatDecorationResponseBody"
          },
          "time": {
            "description": "UTC timestamp in RFC 3339 format.",
            "example": "2020-01-27T07:06:25Z",
            "type": "string"
          },
          "value": {
            "description": "The return air temperature reading in millidegree Celsius.",
            "example": 50,
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "time",
          "value"
        ],
        "type": "object"
      },
      "TrailerStatReeferRunModeTypeResponseBody": {
        "description": "The run mode of the reefer.",
        "properties": {
          "time": {
            "description": "UTC timestamp in RFC 3339 format.",
            "example": "2020-01-27T07:06:25Z",
            "type": "string"
          },
          "value": {
            "description": "The operational mode of the reefer.",
            "example": "`Start/Stop`,`Continuous`",
            "type": "string"
          }
        },
        "required": [
          "time",
          "value"
        ],
        "type": "object"
      },
      "TrailerStatReeferRunModeWithDecorationsTypeResponseBody": {
        "description": "The run mode of the reefer.",
        "properties": {
          "decorations": {
            "$ref": "#/components/schemas/TrailerStatDecorationResponseBody"
          },
          "time": {
            "description": "UTC timestamp in RFC 3339 format.",
            "example": "2020-01-27T07:06:25Z",
            "type": "string"
          },
          "value": {
            "description": "The operational mode of the reefer.",
            "example": "`Start/Stop`,`Continuous`",
            "type": "string"
          }
        },
        "required": [
          "time",
          "value"
        ],
        "type": "object"
      },
      "TrailerStatReeferSetPointTemperatureMilliCZone1TypeResponseBody": {
        "description": "Set point temperature of zone 1 of the reefer.",
        "properties": {
          "time": {
            "description": "UTC timestamp in RFC 3339 format.",
            "example": "2020-01-27T07:06:25Z",
            "type": "string"
          },
          "value": {
            "description": "The set point temperature reading in millidegree Celsius.",
            "example": 50,
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "time",
          "value"
        ],
        "type": "object"
      },
      "TrailerStatReeferSetPointTemperatureMilliCZone1WithDecorationsTypeResponseBody": {
        "description": "Set point temperature of zone 1 of the reefer.",
        "properties": {
          "decorations": {
            "$ref": "#/components/schemas/TrailerStatDecorationResponseBody"
          },
          "time": {
            "description": "UTC timestamp in RFC 3339 format.",
            "example": "2020-01-27T07:06:25Z",
            "type": "string"
          },
          "value": {
            "description": "The set point temperature reading in millidegree Celsius.",
            "example": 50,
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "time",
          "value"
        ],
        "type": "object"
      },
      "TrailerStatReeferSetPointTemperatureMilliCZone2TypeResponseBody": {
        "description": "Set point temperature of zone 2 of the reefer.",
        "properties": {
          "time": {
            "description": "UTC timestamp in RFC 3339 format.",
            "example": "2020-01-27T07:06:25Z",
            "type": "string"
          },
          "value": {
            "description": "The set point temperature reading in millidegree Celsius.",
            "example": 50,
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "time",
          "value"
        ],
        "type": "object"
      },
      "TrailerStatReeferSetPointTemperatureMilliCZone2WithDecorationsTypeResponseBody": {
        "description": "Set point temperature of zone 2 of the reefer.",
        "properties": {
          "decorations": {
            "$ref": "#/components/schemas/TrailerStatDecorationResponseBody"
          },
          "time": {
            "description": "UTC timestamp in RFC 3339 format.",
            "example": "2020-01-27T07:06:25Z",
            "type": "string"
          },
          "value": {
            "description": "The set point temperature reading in millidegree Celsius.",
            "example": 50,
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "time",
          "value"
        ],
        "type": "object"
      },
      "TrailerStatReeferSetPointTemperatureMilliCZone3TypeResponseBody": {
        "description": "Set point temperature of zone 3 of the reefer.",
        "properties": {
          "time": {
            "description": "UTC timestamp in RFC 3339 format.",
            "example": "2020-01-27T07:06:25Z",
            "type": "string"
          },
          "value": {
            "description": "The set point temperature reading in millidegree Celsius.",
            "example": 50,
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "time",
          "value"
        ],
        "type": "object"
      },
      "TrailerStatReeferSetPointTemperatureMilliCZone3WithDecorationsTypeResponseBody": {
        "description": "Set point temperature of zone 3 of the reefer.",
        "properties": {
          "decorations": {
            "$ref": "#/components/schemas/TrailerStatDecorationResponseBody"
          },
          "time": {
            "description": "UTC timestamp in RFC 3339 format.",
            "example": "2020-01-27T07:06:25Z",
            "type": "string"
          },
          "value": {
            "description": "The set point temperature reading in millidegree Celsius.",
            "example": 50,
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "time",
          "value"
        ],
        "type": "object"
      },
      "TrailerStatReeferStateTypeResponseBody": {
        "description": "Reefer state event.",
        "properties": {
          "substateValue": {
            "description": "The substate of the multizone carrier reefer, if available.",
            "example": "`Pretrip`, `Defrost`",
            "type": "string"
          },
          "time": {
            "description": "UTC timestamp in RFC 3339 format.",
            "example": "2020-01-27T07:06:25Z",
            "type": "string"
          },
          "value": {
            "description": "The overall state of the multizone carrier reefer.",
            "example": "`Off`, `On`",
            "type": "string"
          }
        },
        "required": [
          "time",
          "value"
        ],
        "type": "object"
      },
      "TrailerStatReeferStateWithDecorationsTypeResponseBody": {
        "description": "Reefer state event.",
        "properties": {
          "decorations": {
            "$ref": "#/components/schemas/TrailerStatDecorationResponseBody"
          },
          "substateValue": {
            "description": "The substate of the multizone carrier reefer, if available.",
            "example": "`Pretrip`, `Defrost`",
            "type": "string"
          },
          "time": {
            "description": "UTC timestamp in RFC 3339 format.",
            "example": "2020-01-27T07:06:25Z",
            "type": "string"
          },
          "value": {
            "description": "The overall state of the multizone carrier reefer.",
            "example": "`Off`, `On`",
            "type": "string"
          }
        },
        "required": [
          "time",
          "value"
        ],
        "type": "object"
      },
      "TrailerStatReeferStateZone1TypeResponseBody": {
        "description": "Reefer state event.",
        "properties": {
          "substateValue": {
            "description": "The substate zone 1 of the reefer, if available.",
            "example": "`Pretrip`, `Defrost`",
            "type": "string"
          },
          "time": {
            "description": "UTC timestamp in RFC 3339 format.",
            "example": "2020-01-27T07:06:25Z",
            "type": "string"
          },
          "value": {
            "description": "The state zone 1 of the reefer.",
            "example": "`Off`, `On`",
            "type": "string"
          }
        },
        "required": [
          "time",
          "value"
        ],
        "type": "object"
      },
      "TrailerStatReeferStateZone1WithDecorationsTypeResponseBody": {
        "description": "Reefer state event.",
        "properties": {
          "decorations": {
            "$ref": "#/components/schemas/TrailerStatDecorationResponseBody"
          },
          "substateValue": {
            "description": "The substate zone 1 of the reefer, if available.",
            "example": "`Pretrip`, `Defrost`",
            "type": "string"
          },
          "time": {
            "description": "UTC timestamp in RFC 3339 format.",
            "example": "2020-01-27T07:06:25Z",
            "type": "string"
          },
          "value": {
            "description": "The state zone 1 of the reefer.",
            "example": "`Off`, `On`",
            "type": "string"
          }
        },
        "required": [
          "time",
          "value"
        ],
        "type": "object"
      },
      "TrailerStatReeferStateZone2TypeResponseBody": {
        "description": "Reefer state event.",
        "properties": {
          "substateValue": {
            "description": "The substate zone 2 of the reefer, if available.",
            "example": "`Pretrip`, `Defrost`",
            "type": "string"
          },
          "time": {
            "description": "UTC timestamp in RFC 3339 format.",
            "example": "2020-01-27T07:06:25Z",
            "type": "string"
          },
          "value": {
            "description": "The state zone 2 of the reefer.",
            "example": "`Off`, `On`",
            "type": "string"
          }
        },
        "required": [
          "time",
          "value"
        ],
        "type": "object"
      },
      "TrailerStatReeferStateZone2WithDecorationsTypeResponseBody": {
        "description": "Reefer state event.",
        "properties": {
          "decorations": {
            "$ref": "#/components/schemas/TrailerStatDecorationResponseBody"
          },
          "substateValue": {
            "description": "The substate zone 2 of the reefer, if available.",
            "example": "`Pretrip`, `Defrost`",
            "type": "string"
          },
          "time": {
            "description": "UTC timestamp in RFC 3339 format.",
            "example": "2020-01-27T07:06:25Z",
            "type": "string"
          },
          "value": {
            "description": "The state zone 2 of the reefer.",
            "example": "`Off`, `On`",
            "type": "string"
          }
        },
        "required": [
          "time",
          "value"
        ],
        "type": "object"
      },
      "TrailerStatReeferStateZone3TypeResponseBody": {
        "description": "Reefer state event.",
        "properties": {
          "substateValue": {
            "description": "The substate zone 3 of the reefer, if available.",
            "example": "`Pretrip`, `Defrost`",
            "type": "string"
          },
          "time": {
            "description": "UTC timestamp in RFC 3339 format.",
            "example": "2020-01-27T07:06:25Z",
            "type": "string"
          },
          "value": {
            "description": "The state zone 3 of the reefer.",
            "example": "`Off`, `On`",
            "type": "string"
          }
        },
        "required": [
          "time",
          "value"
        ],
        "type": "object"
      },
      "TrailerStatReeferStateZone3WithDecorationsTypeResponseBody": {
        "description": "Reefer state event.",
        "properties": {
          "decorations": {
            "$ref": "#/components/schemas/TrailerStatDecorationResponseBody"
          },
          "substateValue": {
            "description": "The substate zone 3 of the reefer, if available.",
            "example": "`Pretrip`, `Defrost`",
            "type": "string"
          },
          "time": {
            "description": "UTC timestamp in RFC 3339 format.",
            "example": "2020-01-27T07:06:25Z",
            "type": "string"
          },
          "value": {
            "description": "The state zone 3 of the reefer.",
            "example": "`Off`, `On`",
            "type": "string"
          }
        },
        "required": [
          "time",
          "value"
        ],
        "type": "object"
      },
      "TrailerStatReeferSupplyAirTemperatureMilliCZone1TypeResponseBody": {
        "description": "Supply or discharge air temperature of zone 2 of the reefer. This is the temperature of the air as it leaves the cooling unit.",
        "properties": {
          "time": {
            "description": "UTC timestamp in RFC 3339 format.",
            "example": "2020-01-27T07:06:25Z",
            "type": "string"
          },
          "value": {
            "description": "The supply or discharge air temperature reading in millidegree Celsius.",
            "example": 50,
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "time",
          "value"
        ],
        "type": "object"
      },
      "TrailerStatReeferSupplyAirTemperatureMilliCZone1WithDecorationsTypeResponseBody": {
        "description": "Supply or discharge air temperature of zone 2 of the reefer. This is the temperature of the air as it leaves the cooling unit.",
        "properties": {
          "decorations": {
            "$ref": "#/components/schemas/TrailerStatDecorationResponseBody"
          },
          "time": {
            "description": "UTC timestamp in RFC 3339 format.",
            "example": "2020-01-27T07:06:25Z",
            "type": "string"
          },
          "value": {
            "description": "The supply or discharge air temperature reading in millidegree Celsius.",
            "example": 50,
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "time",
          "value"
        ],
        "type": "object"
      },
      "TrailerStatReeferSupplyAirTemperatureMilliCZone2TypeResponseBody": {
        "description": "Supply or discharge air temperature of zone 2 of the reefer. This is the temperature of the air as it leaves the cooling unit.",
        "properties": {
          "time": {
            "description": "UTC timestamp in RFC 3339 format.",
            "example": "2020-01-27T07:06:25Z",
            "type": "string"
          },
          "value": {
            "description": "The supply or discharge air temperature reading in millidegree Celsius.",
            "example": 50,
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "time",
          "value"
        ],
        "type": "object"
      },
      "TrailerStatReeferSupplyAirTemperatureMilliCZone2WithDecorationsTypeResponseBody": {
        "description": "Supply or discharge air temperature of zone 2 of the reefer. This is the temperature of the air as it leaves the cooling unit.",
        "properties": {
          "decorations": {
            "$ref": "#/components/schemas/TrailerStatDecorationResponseBody"
          },
          "time": {
            "description": "UTC timestamp in RFC 3339 format.",
            "example": "2020-01-27T07:06:25Z",
            "type": "string"
          },
          "value": {
            "description": "The supply or discharge air temperature reading in millidegree Celsius.",
            "example": 50,
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "time",
          "value"
        ],
        "type": "object"
      },
      "TrailerStatReeferSupplyAirTemperatureMilliCZone3TypeResponseBody": {
        "description": "Supply or discharge air temperature of zone 2 of the reefer. This is the temperature of the air as it leaves the cooling unit.",
        "properties": {
          "time": {
            "description": "UTC timestamp in RFC 3339 format.",
            "example": "2020-01-27T07:06:25Z",
            "type": "string"
          },
          "value": {
            "description": "The supply or discharge air temperature reading in millidegree Celsius.",
            "example": 50,
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "time",
          "value"
        ],
        "type": "object"
      },
      "TrailerStatReeferSupplyAirTemperatureMilliCZone3WithDecorationsTypeResponseBody": {
        "description": "Supply or discharge air temperature of zone 2 of the reefer. This is the temperature of the air as it leaves the cooling unit.",
        "properties": {
          "decorations": {
            "$ref": "#/components/schemas/TrailerStatDecorationResponseBody"
          },
          "time": {
            "description": "UTC timestamp in RFC 3339 format.",
            "example": "2020-01-27T07:06:25Z",
            "type": "string"
          },
          "value": {
            "description": "The supply or discharge air temperature reading in millidegree Celsius.",
            "example": 50,
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "time",
          "value"
        ],
        "type": "object"
      },
      "TrailerStatsGetTrailerStatsHistoryBadGatewayErrorResponseBody": {
        "description": "Bad Gateway",
        "properties": {
          "message": {
            "description": "Message of error",
            "example": "rpc error: code = Unknown desc = connection refused",
            "type": "string"
          },
          "requestId": {
            "description": "The request ID; used when reaching out to support for issues with requests.",
            "example": "8916e1c1",
            "type": "string"
          }
        },
        "required": [
          "message",
          "requestId"
        ],
        "type": "object"
      },
      "TrailerStatsGetTrailerStatsHistoryBadRequestErrorResponseBody": {
        "description": "Bad Request parameters",
        "properties": {
          "message": {
            "description": "Message of error",
            "example": "Invalid value for parameter.",
            "type": "string"
          },
          "requestId": {
            "description": "The request ID; used when reaching out to support for issues with requests.",
            "example": "8916e1c1",
            "type": "string"
          }
        },
        "required": [
          "message",
          "requestId"
        ],
        "type": "object"
      },
      "TrailerStatsGetTrailerStatsHistoryContentTooLargeErrorResponseBody": {
        "description": "Content Too Large",
        "properties": {
          "message": {
            "description": "Message of error",
            "example": "Request content too large.",
            "type": "string"
          },
          "requestId": {
            "description": "The request ID; used when reaching out to support for issues with requests.",
            "example": "8916e1c1",
            "type": "string"
          }
        },
        "required": [
          "message",
          "requestId"
        ],
        "type": "object"
      },
      "TrailerStatsGetTrailerStatsHistoryGatewayTimeoutErrorResponseBody": {
        "description": "Gateway timeout",
        "properties": {
          "message": {
            "description": "Message of error",
            "example": "context deadline exceeded",
            "type": "string"
          },
          "requestId": {
            "description": "The request ID; used when reaching out to support for issues with requests.",
            "example": "8916e1c1",
            "type": "string"
          }
        },
        "required": [
          "message",
          "requestId"
        ],
        "type": "object"
      },
      "TrailerStatsGetTrailerStatsHistoryInternalServerErrorResponseBody": {
        "description": "An internal server error occurred",
        "properties": {
          "message": {
            "description": "Message of error",
            "example": "Failed to execute GraphQL query.",
            "type": "string"
          },
          "requestId": {
            "description": "The request ID; used when reaching out to support for issues with requests.",
            "example": "8916e1c1",
            "type": "string"
          }
        },
        "required": [
          "message",
          "requestId"
        ],
        "type": "object"
      },
      "TrailerStatsGetTrailerStatsHistoryMethodNotAllowedErrorResponseBody": {
        "description": "Method not allowed",
        "properties": {
          "message": {
            "description": "Message of error",
            "example": "DELETE not allowed on /endpoint.",
            "type": "string"
          },
          "requestId": {
            "description": "The request ID; used when reaching out to support for issues with requests.",
            "example": "8916e1c1",
            "type": "string"
          }
        },
        "required": [
          "message",
          "requestId"
        ],
        "type": "object"
      },
      "TrailerStatsGetTrailerStatsHistoryNotFoundErrorResponseBody": {
        "description": "Resource not found",
        "properties": {
          "message": {
            "description": "Message of error",
            "example": "Object not found.",
            "type": "string"
          },
          "requestId": {
            "description": "The request ID; used when reaching out to support for issues with requests.",
            "example": "8916e1c1",
            "type": "string"
          }
        },
        "required": [
          "message",
          "requestId"
        ],
        "type": "object"
      },
      "TrailerStatsGetTrailerStatsHistoryNotImplementedErrorResponseBody": {
        "description": "Requested endpoint is not yet implemented",
        "properties": {
          "message": {
            "description": "Message of error",
            "example": "Not implemented.",
            "type": "string"
          },
          "requestId": {
            "description": "The request ID; used when reaching out to support for issues with requests.",
            "example": "8916e1c1",
            "type": "string"
          }
        },
        "required": [
          "message",
          "requestId"
        ],
        "type": "object"
      },
      "TrailerStatsGetTrailerStatsHistoryResponseBody": {
        "properties": {
          "data": {
            "description": "List of trailers and their stats",
            "items": {
              "$ref": "#/components/schemas/TrailerStatsObjectResponseBody"
            },
            "type": "array"
          },
          "pagination": {
            "$ref": "#/components/schemas/GoaPaginationResponseResponseBody"
          }
        },
        "required": [
          "data",
          "pagination"
        ],
        "type": "object"
      },
      "TrailerStatsGetTrailerStatsHistoryServiceUnavailableErrorResponseBody": {
        "description": "Service unavailable",
        "properties": {
          "message": {
            "description": "Message of error",
            "example": "context deadline exceeded",
            "type": "string"
          },
          "requestId": {
            "description": "The request ID; used when reaching out to support for issues with requests.",
            "example": "8916e1c1",
            "type": "string"
          }
        },
        "required": [
          "message",
          "requestId"
        ],
        "type": "object"
      },
      "TrailerStatsGetTrailerStatsHistoryTooManyRequestsErrorResponseBody": {
        "description": "Too many requests",
        "properties": {
          "message": {
            "description": "Message of error",
            "example": "Exceeded rate limit.",
            "type": "string"
          },
          "requestId": {
            "description": "The request ID; used when reaching out to support for issues with requests.",
            "example": "8916e1c1",
            "type": "string"
          }
        },
        "required": [
          "message",
          "requestId"
        ],
        "type": "object"
      },
      "TrailerStatsGetTrailerStatsHistoryUnauthorizedErrorResponseBody": {
        "description": "Unauthorized",
        "properties": {
          "message": {
            "description": "Message of error",
            "example": "Invalid token.",
            "type": "string"
          },
          "requestId": {
            "description": "The request ID; used when reaching out to support for issues with requests.",
            "example": "8916e1c1",
            "type": "string"
          }
        },
        "required": [
          "message",
          "requestId"
        ],
        "type": "object"
      },
      "TrailerStatsObjectResponseBody": {
        "description": "A trailer and its stats",
        "properties": {
          "carrierReeferState": {
            "description": "A list of engine state points.",
            "items": {
              "$ref": "#/components/schemas/TrailerStatReeferStateWithDecorationsTypeResponseBody"
            },
            "type": "array"
          },
          "externalIds": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "A map of external ids",
            "type": "object"
          },
          "gps": {
            "description": "A list of GPS points.",
            "items": {
              "$ref": "#/components/schemas/TrailerStatGpsWithDecorationsTypeResponseBody"
            },
            "type": "array"
          },
          "gpsOdometerMeters": {
            "description": "A list of odometer points.",
            "items": {
              "$ref": "#/components/schemas/TrailerStatGpsOdometerMetersWithDecorationsTypeResponseBody"
            },
            "type": "array"
          },
          "id": {
            "description": "ID of the trailer.",
            "example": "1234",
            "type": "string"
          },
          "name": {
            "description": "Name of the vehicle.",
            "example": "Trailer-123",
            "type": "string"
          },
          "reeferAlarms": {
            "description": "A list of reefer alarm points.",
            "items": {
              "$ref": "#/components/schemas/TrailerStatReeferAlarmWithDecorationsTypeResponseBody"
            },
            "type": "array"
          },
          "reeferAmbientAirTemperatureMilliC": {
            "description": "A list of ambient air temperature points.",
            "items": {
              "$ref": "#/components/schemas/TrailerStatReeferAmbientAirTemperatureWithDecorationsTypeResponseBody"
            },
            "type": "array"
          },
          "reeferDoorStateZone1": {
            "description": "A list of door state points.",
            "items": {
              "$ref": "#/components/schemas/TrailerStatReeferDoorStateZone1WithDecorationsTypeResponseBody"
            },
            "type": "array"
          },
          "reeferDoorStateZone2": {
            "description": "A list of door state points.",
            "items": {
              "$ref": "#/components/schemas/TrailerStatReeferDoorStateZone2WithDecorationsTypeResponseBody"
            },
            "type": "array"
          },
          "reeferDoorStateZone3": {
            "description": "A list of door state points.",
            "items": {
              "$ref": "#/components/schemas/TrailerStatReeferDoorStateZone3WithDecorationsTypeResponseBody"
            },
            "type": "array"
          },
          "reeferFuelPercent": {
            "description": "A list of fuel percent points.",
            "items": {
              "$ref": "#/components/schemas/TrailerStatReeferFuelPercentWithDecorationsTypeResponseBody"
            },
            "type": "array"
          },
          "reeferObdEngineSeconds": {
            "description": "A list of engine second points",
            "items": {
              "$ref": "#/components/schemas/TrailerStatReeferObdEngineSecondsWithDecorationsTypeResponseBody"
            },
            "type": "array"
          },
          "reeferReturnAirTemperatureMilliCZone1": {
            "description": "A list of return air temperature points.",
            "items": {
              "$ref": "#/components/schemas/TrailerStatReeferReturnAirTemperatureMilliCZone1WithDecorationsTypeResponseBody"
            },
            "type": "array"
          },
          "reeferReturnAirTemperatureMilliCZone2": {
            "description": "A list of return air temperature points.",
            "items": {
              "$ref": "#/components/schemas/TrailerStatReeferReturnAirTemperatureMilliCZone2WithDecorationsTypeResponseBody"
            },
            "type": "array"
          },
          "reeferReturnAirTemperatureMilliCZone3": {
            "description": "A list of return air temperature points.",
            "items": {
              "$ref": "#/components/schemas/TrailerStatReeferReturnAirTemperatureMilliCZone3WithDecorationsTypeResponseBody"
            },
            "type": "array"
          },
          "reeferRunMode": {
            "description": "A list of run mode points",
            "items": {
              "$ref": "#/components/schemas/TrailerStatReeferRunModeWithDecorationsTypeResponseBody"
            },
            "type": "array"
          },
          "reeferSetPointTemperatureMilliCZone1": {
            "description": "A list of set point temperature points.",
            "items": {
              "$ref": "#/components/schemas/TrailerStatReeferSetPointTemperatureMilliCZone1WithDecorationsTypeResponseBody"
            },
            "type": "array"
          },
          "reeferSetPointTemperatureMilliCZone2": {
            "description": "A list of set point temperature points.",
            "items": {
              "$ref": "#/components/schemas/TrailerStatReeferSetPointTemperatureMilliCZone2WithDecorationsTypeResponseBody"
            },
            "type": "array"
          },
          "reeferSetPointTemperatureMilliCZone3": {
            "description": "A list of set point temperature points.",
            "items": {
              "$ref": "#/components/schemas/TrailerStatReeferSetPointTemperatureMilliCZone3WithDecorationsTypeResponseBody"
            },
            "type": "array"
          },
          "reeferStateZone1": {
            "description": "A list of engine state points.",
            "items": {
              "$ref": "#/components/schemas/TrailerStatReeferStateZone1WithDecorationsTypeResponseBody"
            },
            "type": "array"
          },
          "reeferStateZone2": {
            "description": "A list of engine state points.",
            "items": {
              "$ref": "#/components/schemas/TrailerStatReeferStateZone2WithDecorationsTypeResponseBody"
            },
            "type": "array"
          },
          "reeferStateZone3": {
            "description": "A list of engine state points.",
            "items": {
              "$ref": "#/components/schemas/TrailerStatReeferStateZone3WithDecorationsTypeResponseBody"
            },
            "type": "array"
          },
          "reeferSupplyAirTemperatureMilliCZone1": {
            "description": "A list of supply air temperature points.",
            "items": {
              "$ref": "#/components/schemas/TrailerStatReeferSupplyAirTemperatureMilliCZone1WithDecorationsTypeResponseBody"
            },
            "type": "array"
          },
          "reeferSupplyAirTemperatureMilliCZone2": {
            "description": "A list of supply air temperature points.",
            "items": {
              "$ref": "#/components/schemas/TrailerStatReeferSupplyAirTemperatureMilliCZone2WithDecorationsTypeResponseBody"
            },
            "type": "array"
          },
          "reeferSupplyAirTemperatureMilliCZone3": {
            "description": "A list of supply air temperature points.",
            "items": {
              "$ref": "#/components/schemas/TrailerStatReeferSupplyAirTemperatureMilliCZone3WithDecorationsTypeResponseBody"
            },
            "type": "array"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "type": "object"
      }
    },
    "securitySchemes": {
      "AccessTokenHeader": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "info": {
    "description": "# Overview\n\n> 📘 Something new!\n>\n> Welcome Samsara's new and improved API. Check out our FAQ [here](https://developers.samsara.com/docs/introducing-our-next-generation-api) to see what's changed and learn how to get started.\n>\n> Want to access the legacy API docs? You can find them [here](https://www.samsara.com/api-legacy).\n>\n> _Note: Because this is a new set of APIs, we have not transitioned all endpoints over to this standard. Endpoints that still use the legacy standards are indicated in the reference documentation. If you can't find an API that you're looking for, we encourage you to look for it in our [legacy API docs](https://www.samsara.com/api-legacy) as we continue to transition all endpoints over. Check back here for updates!_\n>\n> Submit your feedback [here](https://forms.gle/r4bs6HQshQAvBuwv6)!\n\nSamsara provides API endpoints so that you can build powerful applications and custom solutions with sensor data. Samsara has endpoints available to track and analyze sensors, vehicles, and entire fleets.\n\nThe Samsara API is a [RESTful API](https://en.wikipedia.org/wiki/Representational_state_transfer). It uses standard [HTTP](https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol) authentication, verbs, and response codes, and it returns [JSON](http://www.json.org/) response bodies. If you're familiar with what you can build with a REST API, then this will be your go-to API reference.\n\nVisit [developers.samsara.com](https://developers.samsara.com) to find getting started guides and an API overview.\n\nIf you have any questions, please visit https://samsara.com/help.\n\n## Endpoints\n\nAll our APIs can be accessed through HTTP requests to URLs like:\n\n```\nhttps://api.samsara.com/<endpoint>\n```\n\nFor EU customers, this URL will be:\n\n```\nhttps://api.eu.samsara.com/<endpoint>\n```\n\n> 🚧 Note\n>\n> Legacy endpoints will have the URL: `https://api.samsara.com/v1/<endpoint>` or `https://api.eu.samsara.com/v1/<endpoint>`\n\n## Authentication\n\nTo authenticate your API request you will need to include your secret token. You can manage your API tokens in the [Dashboard](https://cloud.samsara.com). They are visible under `Settings->Organization->API Tokens`.\n\nYour API tokens carry many privileges, so be sure to keep them secure. Do not share your secret API tokens in publicly accessible areas such as GitHub, client-side code, and so on.\n\nAuthentication to the API is performed via Bearer Token in the HTTP Authorization header. Provide your API token as the `access_token` value in an `Authorization: Bearer` header. You do not need to provide a password:\n\n```curl\nAuthorization: Bearer {access_token}\n```\n\nAll API requests must be made over [HTTPS](https://en.wikipedia.org/wiki/HTTPS). Calls made over plain HTTP or without authentication will fail.\n\n### OAuth2\n\nIf building an application for our marketplace, our API is accessible via. OAuth2 as well.\n\n| Type              |                  Value                   |\n| ----------------- | :--------------------------------------: |\n| Security scheme   |                  OAuth2                  |\n| OAuth2 Flow       |                accessCode                |\n| Authorization URL | https://api.samsara.com/oauth2/authorize |\n| Token URL         |   https://api.samsara.com/oauth2/token   |\n\n## Common Patterns\n\nYou can find more info about request methods, response codes, error codes, versioning, pagination, timestamps, and mini-objects [here](https://developers.samsara.com/docs/common-structures).\n",
    "title": "Samsara API",
    "version": "2025-10-23"
  },
  "openapi": "3.0.1",
  "paths": {
    "/fleet/trailers/stats/history": {
      "get": {
        "description": "Returns trailer stats during the given time range for all trailers. This can be optionally filtered by tags or specific trailer IDs.\n\n <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href=\"https://developers.samsara.com/docs/rate-limits\" target=\"_blank\">here</a>).\n\nTo use this endpoint, select **Read Trailer Statistics** under the Trailers category when creating or editing an API token. <a href=\"https://developers.samsara.com/docs/authentication#scopes-for-api-tokens\" target=\"_blank\">Learn More.</a>\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href=\"https://forms.gle/zkD4NCH7HjKb7mm69\" target=\"_blank\">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href=\"https://www.samsara.com/help\" target=\"_blank\">submit a case</a> to our support team.",
        "operationId": "getTrailerStatsHistory",
        "parameters": [
          {
            "description": " A start time in RFC 3339 format. Defaults to now if not provided. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).",
            "in": "query",
            "name": "startTime",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": " An end time in RFC 3339 format. Defaults to now if not provided. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00).",
            "in": "query",
            "name": "endTime",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The stat types you want this endpoint to return information on.\n\nYou may list **up to 3** types using comma-separated format. For example: `types=gps,reeferAmbientAirTemperatureMilliC,gpsOdometerMeters`.\n\n* `gps`: GPS data including lat/long, heading, speed, and a reverse geocode address.\n* `gpsOdometerMeters`: Odometer reading provided by GPS calculations. You must provide a manual odometer reading before this value is updated. Manual odometer readings can be provided via the PATCH /fleet/trailers/{id} endpoint or through the [cloud dashboard](https://kb.samsara.com/hc/en-us/articles/115005273667-Editing-Odometer-Reading). Odometer readings wthat are manually set will update as GPS trip data is gathered.\n* `reeferAmbientAirTemperatureMilliC`: The ambient air temperature reading of the reefer in millidegree Celsius.\n* `reeferObdEngineSeconds`: The cumulative number of seconds the reefer has run according to onboard diagnostics. Only supported on reefer solutions.\n* `reeferSupplyAirTemperatureMilliCZone1`: The supply or discharge air temperature zone 1 in millidegrees Celsius. For single zone reefers, this applies to the single zone. Only supported on multizone reefer solutions.\n* `reeferSupplyAirTemperatureMilliCZone2`: The supply or discharge air temperature zone 2 in millidegrees Celsius. Only supported on multizone reefer solutions.\n* `reeferSupplyAirTemperatureMilliCZone3`: The supply or discharge air temperature zone 3 in millidegrees Celsius. Only supported on multizone reefer solutions.\n* `reeferFuelPercent`: The fuel level of the reefer unit in percentage points (e.g. `99`, `50`, etc). Only supported on reefer solutions.\n* `carrierReeferState`: The overall state of the reefer (`Off`, `On`). Only supported on multizone Carrier reefer solutions.\n* `reeferStateZone1`: The state of the reefer in zone 1. For single zone reefers, this applies tot he single zone. Only supported on multizone reefer solutions.\n* `reeferStateZone2`: The state of the reefer in zone 2. Only supported on multizone reefer solutions.\n* `reeferStateZone3`: The state of the reefer in zone 3. Only supported on multizone reefer solutions.\n* `reeferRunMode`: The operational mode of the reefer (`Start/Stop`, `Continuous`)\n* `reeferAlarms`: Any alarms that are present on the reefer. Only supported on reefer solutions.\n* `reeferReturnAirTemperatureMilliCZone1`: The return air temperature in zone 1 of the reefer in millidegrees Celsius. For single zone reefers, this applies to the single zone. Only supported on multizone reefer solutions.\n* `reeferReturnAirTemperatureMilliCZone2`: The return air temperature in zone 2 of the reefer in millidegrees Celsius. Only supported on multizone reefer solutions.\n* `reeferReturnAirTemperatureMilliCZone3`: The return air temperature in zone 3 of the reefer in millidegrees Celsius. Only supported on multizone reefer solutions.\n* `reeferSetPointTemperatureMilliCZone1`: The set point temperature in zone 1 of the reefer in millidegrees Celsius. For single zone reefers, this applies to the single zone. Only supported on multizone reefer solutions.\n* `reeferSetPointTemperatureMilliCZone2`: The set point temperature in zone 2 of the reefer in millidegrees Celsius. Only supported on multizone reefer solutions.\n* `reeferSetPointTemperatureMilliCZone3`: The set point temperature in zone 3 of the reefer in millidegrees Celsius. Only supported on multizone reefer solutions.\n* `reeferDoorStateZone1`: The door status in zone 1 of the reefer. For single zone reefers, this applies to the single zone.\n* `reeferDoorStateZone2`: The door status in zone 2 of the reefer. Only supported on multizone reefer solutions.\n* `reeferDoorStateZone3`: The door status in zone 3 of the reefer. Only supported on multizone reefer solutions.",
            "in": "query",
            "name": "types",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": " A filter on the data based on this comma-separated list of tag IDs. Example: `tagIds=1234,5678`",
            "in": "query",
            "name": "tagIds",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": " A filter on the data based on this comma-separated list of parent tag IDs, for use by orgs with tag hierarchies. Specifying a parent tag will implicitly include all descendent tags of the parent tag. Example: `parentTagIds=345,678`",
            "in": "query",
            "name": "parentTagIds",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": " If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results.",
            "in": "query",
            "name": "after",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": " A filter on the data based on this comma-separated list of trailer IDs and externalIds. Example: `trailerIds=1234,5678,samsara.vin:1HGBH41JXMN109186`",
            "in": "query",
            "name": "trailerIds",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Decorations add to the primary stats listed in the `types` parameter. For example, if you wish to know the trailer's location whenever the odometer updates, you may set `types=gpsOdometerMeters&decorations=gps`.\n\nYou may list **up to 2** types using comma-separated format. If multiple stats are listed in the types parameter, the decorations will be added to each type. For example: `types=reeferStateZone1,reeferAmbientAirTemperatureMilliC,gpsOdometerMeters&decorations=gps` will list GPS decorations for each reeferStateZone1 reading, each reeferAmbientAirTemperatureMilliC reding, and gpsOdometerMeters reading.\n\nNote that decorations may significantly increase the response payload size.\n\n* `gps`: GPS data including lat/long, heading, speed, and a reverse geocode address.\n* `gpsOdometerMeters`: Odometer reading provided by GPS calculations. You must provide a manual odometer reading before this value is updated. Manual odometer readings can be provided via the PATCH /fleet/trailers/{id} endpoint or through the [cloud dashboard](https://kb.samsara.com/hc/en-us/articles/115005273667-Editing-Odometer-Reading). Odometer readings wthat are manually set will update as GPS trip data is gathered.\n* `reeferAmbientAirTemperatureMilliC`: The ambient air temperature reading of the reefer in millidegree Celsius.\n* `reeferObdEngineSeconds`: The cumulative number of seconds the reefer has run according to onboard diagnostics. Only supported on reefer solutions.\n* `reeferSupplyAirTemperatureMilliCZone1`: The supply or discharge air temperature zone 1 in millidegrees Celsius. For single zone reefers, this applies to the single zone. Only supported on multizone reefer solutions.\n* `reeferSupplyAirTemperatureMilliCZone2`: The supply or discharge air temperature zone 2 in millidegrees Celsius. Only supported on multizone reefer solutions.\n* `reeferSupplyAirTemperatureMilliCZone3`: The supply or discharge air temperature zone 3 in millidegrees Celsius. Only supported on multizone reefer solutions.\n* `reeferFuelPercent`: The fuel level of the reefer unit in percentage points (e.g. `99`, `50`, etc). Only supported on reefer solutions.\n* `carrierReeferState`: The overall state of the reefer (`Off`, `On`). Only supported on multizone Carrier reefer solutions.\n* `reeferStateZone1`: The state of the reefer in zone 1. For single zone reefers, this applies tot he single zone. Only supported on multizone reefer solutions.\n* `reeferStateZone2`: The state of the reefer in zone 2. Only supported on multizone reefer solutions.\n* `reeferStateZone3`: The state of the reefer in zone 3. Only supported on multizone reefer solutions.\n* `reeferRunMode`: The operational mode of the reefer (`Start/Stop`, `Continuous`)\n* `reeferAlarms`: Any alarms that are present on the reefer. Only supported on reefer solutions.\n* `reeferReturnAirTemperatureMilliCZone1`: The return air temperature in zone 1 of the reefer in millidegrees Celsius. For single zone reefers, this applies to the single zone. Only supported on multizone reefer solutions.\n* `reeferReturnAirTemperatureMilliCZone2`: The return air temperature in zone 2 of the reefer in millidegrees Celsius. Only supported on multizone reefer solutions.\n* `reeferReturnAirTemperatureMilliCZone3`: The return air temperature in zone 3 of the reefer in millidegrees Celsius. Only supported on multizone reefer solutions.\n* `reeferSetPointTemperatureMilliCZone1`: The set point temperature in zone 1 of the reefer in millidegrees Celsius. For single zone reefers, this applies to the single zone. Only supported on multizone reefer solutions.\n* `reeferSetPointTemperatureMilliCZone2`: The set point temperature in zone 2 of the reefer in millidegrees Celsius. Only supported on multizone reefer solutions.\n* `reeferSetPointTemperatureMilliCZone3`: The set point temperature in zone 3 of the reefer in millidegrees Celsius. Only supported on multizone reefer solutions.\n* `reeferDoorStateZone1`: The door status in zone 1 of the reefer. For single zone reefers, this applies to the single zone.\n* `reeferDoorStateZone2`: The door status in zone 2 of the reefer. Only supported on multizone reefer solutions.\n* `reeferDoorStateZone3`: The door status in zone 3 of the reefer. Only supported on multizone reefer solutions.",
            "in": "query",
            "name": "decorations",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrailerStatsGetTrailerStatsHistoryResponseBody"
                }
              }
            },
            "description": "OK response."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrailerStatsGetTrailerStatsHistoryUnauthorizedErrorResponseBody"
                }
              }
            },
            "description": "Unauthorized response."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrailerStatsGetTrailerStatsHistoryNotFoundErrorResponseBody"
                }
              }
            },
            "description": "Not Found response."
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrailerStatsGetTrailerStatsHistoryMethodNotAllowedErrorResponseBody"
                }
              }
            },
            "description": "Method Not Allowed response."
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrailerStatsGetTrailerStatsHistoryContentTooLargeErrorResponseBody"
                }
              }
            },
            "description": "Content Too Large response."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrailerStatsGetTrailerStatsHistoryTooManyRequestsErrorResponseBody"
                }
              }
            },
            "description": "Too Many Requests response."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrailerStatsGetTrailerStatsHistoryInternalServerErrorResponseBody"
                }
              }
            },
            "description": "Internal Server Error response."
          },
          "501": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrailerStatsGetTrailerStatsHistoryNotImplementedErrorResponseBody"
                }
              }
            },
            "description": "Not Implemented response."
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrailerStatsGetTrailerStatsHistoryBadGatewayErrorResponseBody"
                }
              }
            },
            "description": "Bad Gateway response."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrailerStatsGetTrailerStatsHistoryServiceUnavailableErrorResponseBody"
                }
              }
            },
            "description": "Service Unavailable response."
          },
          "504": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrailerStatsGetTrailerStatsHistoryGatewayTimeoutErrorResponseBody"
                }
              }
            },
            "description": "Gateway Timeout response."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrailerStatsGetTrailerStatsHistoryBadRequestErrorResponseBody"
                }
              }
            },
            "description": "Bad Request response."
          }
        },
        "summary": "Get trailer stats history",
        "tags": [
          "Trailers"
        ]
      }
    }
  },
  "security": [
    {
      "AccessTokenHeader": []
    }
  ],
  "servers": [
    {
      "url": "https://api.samsara.com"
    },
    {
      "url": "https://api.eu.samsara.com"
    },
    {
      "url": "https://api.ca.samsara.com"
    }
  ],
  "x-original-swagger-version": "2.0"
}
````