Overview
The bulk SMS endpoint allows you to send the same message to multiple recipients in a single API call. Each message is tracked individually with its own message ID.Send Bulk Messages
Use the/messages/bulk endpoint to send SMS to multiple recipients.
Understanding Batch ID
Thebatch_id is a unique identifier for your bulk send operation. Use it to:
- Track all messages from a single bulk request
- Filter delivery reports by batch
- Monitor campaign performance
Track Bulk Delivery
You can track individual messages using their message IDs or query all messages from a batch.Handling Failures
Some messages may fail due to invalid phone numbers or other issues. The response includes details for each failed message.Best Practices
Optimal Batch Sizes
Optimal Batch Sizes
- Keep batches under 10,000 recipients per request
- For larger campaigns, split into multiple batches
- Process batches sequentially to avoid rate limits
Error Handling
Error Handling
- Check the
failedandrejectedcounts in the response - Log message IDs for successful sends
- Retry failed messages with corrected data
- Don’t retry messages with invalid phone numbers
Performance Tips
Performance Tips
- Send during off-peak hours for better delivery rates
- Use webhooks instead of polling for status updates
- Store batch_id for reporting and analytics
- Monitor delivery rates per batch to identify issues
Rate Limits
Rate Limits
- Default: 100 requests per minute
- Bulk endpoint: 50 requests per minute
- Contact support for higher limits on enterprise plans