Skip to main content
GET
/
v1
/
fleet
/
messages
Get all messages.
curl --request GET \
  --url https://api.samsara.com/v1/fleet/messages \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "driverId": 555,
      "isRead": true,
      "sender": {
        "name": "John Doe",
        "type": "dispatch"
      },
      "sentAtMs": 1462881998034,
      "text": "This is a message."
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://samsara-showcase.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

endMs
integer<int64>

Time in unix milliseconds that represents the end of time range of messages to return. Used in combination with durationMs. Defaults to now.

durationMs
integer<int64>

Time in milliseconds that represents the duration before endMs to query. Defaults to 24 hours.

Response

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

A list of messages.

data
object[]