REST API · v1.0.4
API reference
REST API v1: JSON over HTTPS. Every method below is open on api.sendsms.to and is checked before every release.
#Base URL
Base URL
https://api.sendsms.to#Authentication
Send the key in the X-API-Key header. Keep it on your server only. The key’s permissions decide which methods are available; the account is identified by the key. Requests are accepted only from the IP addresses listed for the key; any other address gets 403 ip_not_allowed.
HTTP
X-API-Key: $SENDSMS_API_KEY#API reference
Messages
POST
/v1/messagesSend an SMSGET/v1/messages/{id}Message statusPOST/v1/messages/statusesMessage statusesPOST/v1/messages/batchBatch SMS sendingScenarios
POST
/v1/scenarios/{id}/eventsScenario eventGET/v1/scenarios/{id}/events/{eventId}Scenario event stateTemplates
POST
/v1/templatesCreate a templateGET/v1/templatesList templatesGET/v1/templates/variablesTemplate variablesGET/v1/templates/{id}Read a templatePUT/v1/templates/{id}Update a templateDELETE/v1/templates/{id}Archive a templatePOST/v1/templates/{id}/previewPreview a template