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

# Get door status

`POST /v1/sensors/door`

## Request

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

> 🚧 This endpoint is still on our legacy API.

Get door monitor status (closed / open) for 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

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

## Response `200`

List of sensor objects containing the current door status reported by each sensor.

- V1DoorResponse: Contains the current door status of a sensor.
  - `groupId` integer: Deprecated.
  - `sensors` V1DoorResponseSensors[]
    - `doorClosed` boolean: Flag indicating whether the current door is closed or open.
    - `doorStatusTime` string: The timestamp of reported door status, 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)
