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 API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
To use this endpoint, select Write Messages under the Driver Workflow category when creating or editing an API token. Learn More.
curl --request POST \
--url https://api.samsara.com/v1/fleet/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"driverIds": [
111,
222,
333
],
"text": "This is a message."
}
'{
"data": [
{
"driverId": 555,
"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.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Text to send to a list of driverIds.
Returns the created messages.
A list of created messages.
Show child attributes
curl --request POST \
--url https://api.samsara.com/v1/fleet/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"driverIds": [
111,
222,
333
],
"text": "This is a message."
}
'{
"data": [
{
"driverId": 555,
"text": "This is a message."
}
]
}