📨 Bulk Send
Same message to everyone (multi mode)
Want to see these examples running end to end? Check out the firesms-examples repo on GitHub — fully working apps in Node.js, TypeScript, Python, and PHP.
cURL
curl -X POST https://firesms.vercel.app/api/v1/bulk-send \
-H "Content-Type: application/json" \
-d '{
"api_key": "YOUR_API_KEY",
"mode": "multi",
"messages": [
{ "to": "27821234567", "text": "Your appointment is tomorrow at 9am." },
{ "to": "27831234567", "text": "Your appointment is tomorrow at 9am." },
{ "to": "27841234567", "text": "Your appointment is tomorrow at 9am." }
]
}'Personalised messages (multi mode)
cURL
curl -X POST https://firesms.vercel.app/api/v1/bulk-send \
-H "Content-Type: application/json" \
-d '{
"api_key": "YOUR_API_KEY",
"mode": "multi",
"messages": [
{ "to": "27821234567", "text": "Hi John, your order #1042 has shipped!" },
{ "to": "27831234567", "text": "Hi Sarah, your order #1043 has shipped!" },
{ "to": "27841234567", "text": "Hi Thabo, your order #1044 has shipped!" }
]
}'Scheduled campaign (batch mode)
cURL
curl -X POST https://firesms.vercel.app/api/v1/bulk-send \
-H "Content-Type: application/json" \
-d '{
"api_key": "YOUR_API_KEY",
"mode": "batch",
"batchName": "April Promotion",
"from": "FireSMS",
"startTime": "2024-04-01 08:00:00",
"messages": [
{ "to": "27821234567", "text": "Hi John, April special: 30% off all orders!" },
{ "to": "27831234567", "text": "Hi Sarah, April special: 30% off all orders!" }
]
}'Last updated on