Using Twilio SMS API, can I specify multiple destination phones in one post?

后端 未结 3 460
我在风中等你
我在风中等你 2021-01-19 13:28

Twilio limits long code SMS to 1/sec. To improve my throughput, I split my batch into 5 phone numbers. I\'ve found each HTTP POST to the Twilio API takes about 0.5 seconds.

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-19 13:49

    Twilio Evangelist here. At the moment, we require that you submit each outgoing SMS message as its own API request.

    The current rate limit on a longcode is 1 message per second. If more messages per second are sent, Twilio queues them up and sends them out at a rate of 1 per second.

    A potential workaround is to make async requests across multiple phone numbers. This can be accomplished with the twilio node.js module or an evented framework such as EventMachine for Ruby or a similar toolset for your language of choice.

    Hope this helps!

提交回复
热议问题