curl --request POST \
--url https://dashboard.hologram.io/api/1/devices/messages \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"orgid": 98765,
"deviceids": [
4020513,
4020514
],
"data": "Hello from cloud!",
"protocol": "TCP",
"port": 80
}
'{
"data": [
{
"Devicesid": 1234,
"messageid": "9a9e55f0"
}
],
"success": true
}Send a cloud message (data) to one or more devices. Messages can be sent as plain text using the data parameter or as base64-encoded content using the base64data parameter.
The message will be delivered to the device using the specified protocol (TCP or UDP) and port. You must specify at least one device ID to send the message to.
curl --request POST \
--url https://dashboard.hologram.io/api/1/devices/messages \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"orgid": 98765,
"deviceids": [
4020513,
4020514
],
"data": "Hello from cloud!",
"protocol": "TCP",
"port": 80
}
'{
"data": [
{
"Devicesid": 1234,
"messageid": "9a9e55f0"
}
],
"success": true
}Documentation Index
Fetch the complete documentation index at: https://docs.hologram.io/llms.txt
Use this file to discover all available pages before exploring further.
HTTP Basic authentication using API keys. Set the username to apikey and the password to your API key.
You can find your API key on the Hologram Dashboard under Account Settings.
144
Device IDs of recipient devices
Port to use for the message
Protocol to use: 'TCP' or 'UDP'
TCP, UDP Organization ID
The data to send, encoded in base64. Max length of 10k bytes. Must send either data or base64data
Data to send. Max length of 10k bytes. Must send either data or base64data
Was this page helpful?