question

josh-levine8977 avatar image
josh-levine8977 asked ·

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

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.
aaa
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

· Write an Answer
Phong Vu avatar image
Phong Vu answered ·
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
Share
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.