Messages

Get all messages.

🚧 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>

get/v1/fleet/messages

Request

  • Base URL
    https://api.samsara.com
  • Auth
    HTTP bearer

Query parameters

endMsinteger

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

durationMsinteger

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.

Example response

{
  "data": [
    {
      "driverId": 555,
      "isRead": true,
      "sender": {
        "name": "John Doe",
        "type": "dispatch"
      },
      "sentAtMs": 1462881998034,
      "text": "This is a message."
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.