cURL
Send SMS
Send SMS
curl -X POST "BASE_URL/api/send-sms" \
-H "Content-Type: application/json" \
-u "USERNAME:PASSWORD" \
-d '{"phone": "+49123456789", "message": "Hello from GSM Modem API"}'
cURL – Send and receive SMS with the GSM Modem API.
Replace BASE_URL with your GSM Modem device URL (e.g. http://192.168.1.100:8080).
curl -X POST "BASE_URL/api/send-sms" \
-H "Content-Type: application/json" \
-u "USERNAME:PASSWORD" \
-d '{"phone": "+49123456789", "message": "Hello from GSM Modem API"}'