Messages

Send a message to a list of driver ids.

🚧 This endpoint is still on our legacy API.

Send a message to a list of driver ids.

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

post/v1/fleet/messages

Request

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

Request body

driverIdsnumber[] required

IDs of the drivers for whom the messages are sent to.

textstring required

The text sent in the message. Max 2500 characters allowed.

Example request

{
  "driverIds": [
    111,
    222,
    333
  ],
  "text": "This is a message."
}

Response

Returns the created messages.

Example response

{
  "data": [
    {
      "driverId": 555,
      "text": "This is a message."
    }
  ]
}

Changes

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