Use Short URL
POST
/sms-campaigns/send
SMS Campaigns
smsg.us/xxxxx
string to the message body additional url_to_shorten
parameter.Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://rest.clicksend.com/v3/sms-campaigns/send' \
--header 'Content-Type: application/json' \
--data-raw '{
"body": "This is my new campaign message. Visit this url: smsg.us/xxxxx",
"from": "+61353787448",
"list_id": 428,
"name": "My Campaign 1",
"schedule": 1444821615,
"url_to_shorten": "http://yourdomain.com/"
}'
Response Response Example
{
"data": {
"body": "This is my new campaign message. Visit this url: smsg.us/xxxxx",
"custom_string": null,
"date_added": "1444962630",
"from": "+61353787448",
"list_id": 428,
"name": "My Campaign 1",
"schedule": "1444821615",
"sms_campaign_id": 7,
"source": null,
"status": "Queued",
"subaccount_id": 1,
"url_to_shorten": "http://yourdomain.com/",
"user_id": 1
},
"http_code": 200,
"response_code": "SUCCESS",
"response_msg": "Your new campaign has been added."
}
Request
Body Params application/json