curl --request POST \
--url https://dashboard.hologram.io/api/1/sms/incoming \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"body": "Hello from Hologram!",
"deviceids": [
4020513
],
"fromnumber": "15551234567",
"encoding": "gsm0338",
"data_coding": 0
}
'{
"data": {
"msgcount": 1
},
"success": true
}Send an SMS message to one or more devices. The message can be sent as plain text using the body parameter or as base64-encoded content using the base64body parameter.
You can specify recipients using either:
deviceid: Single device IDdeviceids: Array of device IDs for bulk messagingThe fromnumber field allows you to specify the sender number, and encoding options let you control how the message is transmitted.
curl --request POST \
--url https://dashboard.hologram.io/api/1/sms/incoming \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"body": "Hello from Hologram!",
"deviceids": [
4020513
],
"fromnumber": "15551234567",
"encoding": "gsm0338",
"data_coding": 0
}
'{
"data": {
"msgcount": 1
},
"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.
base64 encoded bodies can be used instead of a plaintext body
Superadmin only. Controls how the message payload is encoded. Examples: gsm0338, latin-1, utf_16_be. Tip: to check if an encoding is supported run this Python code: import codecs codecs.lookup(encoding_name)
Superadmin only. Metadata param that tells the carrier's SMSC what encoding is used for the message payload. If not set, the defaults are: Verizon: 1, IA5 (CCITT T.50)/ASCII (ANSI X3.4) All other carriers: 0, MC Specific See https://smpp.org/SMPP_v5.pdf section 4.7.7 for more info.
Was this page helpful?