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.
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
This param determines how the message payload should be encoded. Examples: gsm0338, latin-1, utf_16_be. Tip: to see if an encoidng is supported run this python code (and also check with engineering team): import codecs codecs.lookup(encoding_name)
This parama is a 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.