· 5 years ago · Jul 20, 2020, 08:08 PM
1curl -L -X POST "https://api.sms.to/sms/send" \
2-H "Content-Type: application/json" \
3-H "Authorization: Bearer <YOUR_API_KEY_OR_ACCESS_TOKEN>" \
4-d "{
5 \"message\": \"This is test\",
6 \"to\": \"+9779856034616\",
7 \"sender_id\": \"SMSto\",
8 \"callback_url\": \"https://example.com/callback/handler\"
9}"
10
11OR
12// Using API Key via Query Param
13curl -L -X GET "https://api.sms.to/sms/send?api_key={api_key}&to=9779856034616&message=test&sender_id=smsto"\
14
15 RESPONSE:
16
17{
18 "message": "Message is queued for sending! Please check report for update",
19 "success": true,
20 "message_Id": "e7745289-7236-497f-acf2-f9cfd6a86f16"
21}