---
title: "Get temperature"
method: POST
path: "/v1/sensors/temperature"
tags: ["Sensors"]
---

# Get temperature

`POST /v1/sensors/temperature`

## Request

- Base URL: `https://api.samsara.com`
- URL: `https://api.samsara.com/v1/sensors/temperature`
- Auth: HTTP bearer

> 🚧 This endpoint is still on our legacy API.

Get temperature for requested sensors. This method returns the current ambient temperature (and probe temperature if applicable) for the requested sensors. 

 **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.

To use this endpoint, select **Write Sensors** under the Equipment 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>

## Request body

- InlineObject8
  - `sensors` integer[], required: List of sensor IDs to query.

## Response `200`

List of sensor objects containing the current temperature reported by each sensor.

- V1TemperatureResponse: Contains the current temperatures of a sensor.
  - `groupId` integer: Deprecated.
  - `sensors` V1TemperatureResponseSensors[]
    - `ambientTemperature` integer: Currently reported ambient temperature in millidegrees celsius.
    - `ambientTemperatureTime` string: The timestamp of reported ambient temperature, specified in RFC 3339 time.
    - `id` integer: ID of the sensor.
    - `name` string: Name of the sensor.
    - `probeTemperature` integer: Currently reported probe temperature in millidegrees celsius. If no probe is connected, this parameter will not be reported.
    - `probeTemperatureTime` string: The timestamp of reported probe temperature, specified in RFC 3339 time.
    - `trailerId` integer: ID of the trailer associated with the sensor for the data point. If no trailer is connected, this parameter will not be reported.
    - `vehicleId` integer: ID of the vehicle associated with the sensor for the data point. If no vehicle is connected, this parameter will not be reported.

## Other responses

- `default`: Unexpected error.

---

[API](https://skmtc.dev/samsara/apis/samsara-api.md) - [All operations](https://skmtc.dev/samsara/apis/samsara-api/llms.txt) - [OpenAPI document](https://skmtc.dev/samsara/apis/samsara-api/revisions/a9e35d4999be?raw)
