---
title: "Get all messages."
method: GET
path: "/v1/fleet/messages"
tags: ["Messages"]
---

# Get all messages.

`GET /v1/fleet/messages`

## Request

- Base URL: `https://api.samsara.com`
- URL: `https://api.samsara.com/v1/fleet/messages`
- Auth: HTTP bearer

> 🚧 This endpoint is still on our legacy API.

Get all messages. 

 <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</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.

To use this endpoint, select **Read Messages** under the Driver Workflow 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>

## Query parameters

- `endMs` integer
- `durationMs` integer

## Response `200`

Returns the fetched messages from most recently sent to least recently sent.

- InlineResponse2005: A list of messages.
  - `data` V1MessageResponse[]
    - `driverId` integer, required: ID of the driver associated with this message row. For organizations using Messages v2, this field uses 0 as a sentinel when the message belongs to a non–single-driver channel (for example Announcements channel, multi-member groups, or Driver-to-Admin channels): the API returns one row for the message instead of one row per recipient driver. For 1:1 conversations, this is the driver’s ID. Integrations that only need 1:1 messages should filter responses where driverId != 0.
    - `isRead` boolean, required: True if the message was read by the recipient.
    - `sender` V1MessageSender, required
      - `name` string, required: Name of user that is sending the message.
      - `type` string, required: Type of user that is sending the message. It will be either dispatch or driver.
    - `sentAtMs` integer, required: The time in Unix epoch milliseconds that the message is sent to the recipient.
    - `text` string, required: The text sent in the message.

## 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)
