Sending SMS to multiple numbers at once using API (not as a group message)

  • 1
  • Question
  • Updated 5 months ago
Is there a way to send an SMS to multiple phone numbers separately using the API? I know that the SMS sending API endpoint accepts an array of phone numbers in the "to" argument, but when I do that with multiple phone numbers it sends as a group text including all the recipients. I was wondering if there's a way to separately send the same message to multiple recipients with one API call. I know the API accepts batch requests, but I'm unsure if this is supported for the SMS sending API endpoint.
Photo of Josh Levine

Josh Levine

  • 90 Points 75 badge 2x thumb

Posted 5 months ago

  • 1
Photo of Phong Vu

Phong Vu, Devangelist

  • 2,938 Points 2k badge 2x thumb
Hi Josh,

Good thinking about using the batch, but I don't it is supported for sending SMS messages. The document says that batch request is implemented via the methods GETDELETE and PUT with all their features. So most probably it is a no when sending SMS is a POST request.

We call multiple recipient is group messaging and that is why all recipient number will be included in the to field.

The only option is to make a loop and send out 1 by one.

+ Phong