Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Examples for sending SMS to devices using curl and Python requests.
curl --location --request POST 'https://dashboard.hologram.io/api/1/sms/incoming' \ --header 'Content-Type: application/json' \ --header 'Authorization: Basic <your apikey>' \ --data-raw '{"deviceid":"<your device id>","fromnumber":"<your from number>","body":"<your sms message>"}'
import requests from requests.auth import HTTPBasicAuth usr = 'apikey' pwd = '<your apikey>' dev = '<your device id>' num = '<your from number>' sms = '<your sms message>' response = requests.post( 'https://dashboard.hologram.io/api/1/sms/incoming', data={ 'deviceid': dev, 'fromnumber': num, 'body': sms, }, auth=HTTPBasicAuth(usr, pwd) ) print(response.json())
Was this page helpful?