Skip to main content
POST
/
v1
/
fleet
/
messages
Send a message to a list of driver ids.
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.

Authorizations

Authorization
string
header
required

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

Body

application/json

Text to send to a list of driverIds.

driverIds
number<int64>[]
required

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

Example:
[111, 222, 333]
text
string
required

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

Example:

"This is a message."

Response

Returns the created messages.

A list of created messages.

data
object[]