Bulk SMS
Dispatch to many recipients — same text or personalized.
There are two methods for bulk dispatch: the same text to all recipients, or a different text per recipient.
Same text
/group/send sends the same message body to every recipient in the sentto array.
POSThttps://api.turkeysms.com.tr/group/send
cURL
curl -X POST https://api.turkeysms.com.tr/group/send \
-H "Content-Type: application/json" \
-d '{
"api_key": "YOUR_API_KEY",
"title": "TURKEYSMS",
"text": "Our store is open this weekend.",
"sentto": ["905xxxxxxxx1", "905xxxxxxxx2", "905xxxxxxxx3"]
}'Personalized
/group/sendMixed sends a different message to each recipient. The text and sentto arrays must have equal length and matching indexes.
POSThttps://api.turkeysms.com.tr/group/sendMixed
cURL
curl -X POST https://api.turkeysms.com.tr/group/sendMixed \
-H "Content-Type: application/json" \
-d '{
"api_key": "YOUR_API_KEY",
"title": "TURKEYSMS",
"text": ["Hello Ada, -10% today.", "Hello Mert, -15% today."],
"sentto": ["905xxxxxxxx1", "905xxxxxxxx2"]
}'When using
sendMixed, the text and sentto arrays must be the same length; index i represents the same recipient in both arrays.