curl --request POST \
--url https://dashboard.hologram.io/api/1/sms/outgoing \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: multipart/form-data' \
--form 'body=Hello from my IoT device!' \
--form 'destinationphonenumber=+15551234567' \
--form deviceid=4020513 \
--form 'phonenumber=+15559876543'{
"success": true,
"data": {
"msgcount": 1
}
}Send an SMS message from a device to an external phone number. This allows devices to send SMS messages to phone numbers outside of your Hologram fleet.
Note: This endpoint uses multipart/form-data encoding.
curl --request POST \
--url https://dashboard.hologram.io/api/1/sms/outgoing \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: multipart/form-data' \
--form 'body=Hello from my IoT device!' \
--form 'destinationphonenumber=+15551234567' \
--form deviceid=4020513 \
--form 'phonenumber=+15559876543'{
"success": true,
"data": {
"msgcount": 1
}
}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.
Plain text message body
"Hello from my IoT device!"
Phone number to send the SMS to
"+15551234567"
ID of the device sending the SMS. Required if phonenumber is not provided.
4020513
The device's assigned phone number, used as an alternative to deviceid to identify the sending device.
"+15559876543"
Was this page helpful?