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

# Get cargo status

`POST /v1/sensors/cargo`

## Request

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

> 🚧 This endpoint is still on our legacy API.

Get cargo monitor status (empty / full) 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

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

## Response `200`

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

- V1CargoResponse: Contains the current cargo status of a sensor.
  - `groupId` integer: Deprecated.
  - `sensors` V1CargoResponseSensors[]
    - `cargoEmpty` boolean: Flag indicating whether the current cargo is empty or loaded.
    - `cargoStatusTime` string: The timestamp of reported cargo status, specified in RFC 3339 time.
    - `id` integer: ID of the sensor.
    - `name` string: Name of the sensor.
    - `redEyeDistance` integer: The distance between red eye detector and the closest object in cm.
    - `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)
