curl --location --request GET 'https://api.zixflow.com/api/apis/campaign/sms/send?apiKey=123424&senderId=HELLOW&route=transactional&number=9112345678974&message=Your OTP is XXXX&submissionStatus=true'
Copy
{ "status": true, "message": "SMS sent successfully"}
SMS Campaign
Send SMS
To make it simple, We have designed a method which allows you to send SMS in a single line of the HTTP GET request
GET
/
api
/
apis
/
campaign
/
sms
/
send
Copy
curl --location --request GET 'https://api.zixflow.com/api/apis/campaign/sms/send?apiKey=123424&senderId=HELLOW&route=transactional&number=9112345678974&message=Your OTP is XXXX&submissionStatus=true'
Copy
{ "status": true, "message": "SMS sent successfully"}
In order to get delivery reports directly into your system you need to take care of few simple things.
Please make sure that, the URL passed in the field reportUrl, must accept HTTP POST request with JSON request body.
If you are sending an SMS using a GET URL, it is necessary to encode the message using the URL Encoding method before sending it. However, if you are using a POST API, there is no need to encode the message.For example, if the message is “Hi User 1 & User 2, Welcome to zixflow,” it needs to be encoded as “Hi%20User%201%20%26%20User%202%2C%20Welcome%20to%20zixflow” using URL Encoding.You can use a tool like https://www.urlencoder.org/ for reference on how to properly encode your message.
Copy
curl --location --request GET 'https://api.zixflow.com/api/apis/campaign/sms/send?apiKey=123424&senderId=HELLOW&route=transactional&number=9112345678974&message=Your OTP is XXXX&submissionStatus=true'
Copy
{ "status": true, "message": "SMS sent successfully"}