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

# Get humidity

`POST /v1/sensors/humidity`

## Request

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

> 🚧 This endpoint is still on our legacy API.

Get humidity for requested sensors. This method returns the current relative humidity 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

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

## Response `200`

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

- V1HumidityResponse: Contains the current humidity of a sensor.
  - `groupId` integer: Deprecated.
  - `sensors` V1HumidityResponseSensors[]
    - `humidity` integer: Currently reported relative humidity in percent, from 0-100.
    - `humidityTime` string: The timestamp of reported relative humidity, specified in RFC 3339 time.
    - `id` integer: ID of the sensor.
    - `name` string: Name of the sensor.
    - `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)
