With Twilio Programmable Messaging, you can integrate WhatsApp messaging into your web application. Although those integrations are generally straightforward, we often get asked about how best to utilize the Programmable Messaging API specifically for WhatsApp. We've also found some common patterns and best practices that'll get you sending WhatsApp messages sooner.
Below are the answers to these frequently asked questions and some of our best practices for your integration of the WhatsApp Business Platform with Twilio.
What is the MPS (Messages Per Second) limit for outbound WhatsApp messages?
The WhatsApp Business Platform with Twilio supports a maximum messaging throughput per WhatsApp sender of 50 MPS (messages per second) for outbound traffic containing text-only and 1.5 MPS for outbound traffic containing media files. The text-only throughput for a WhatsApp sender is set to 10 MPS by default, but this rate can be increased up to the maximum of 50 MPS by request and pending approval upon review of the business's messaging requirements. Media throughput cannot be increased further at this time.
Messages sent at rates exceeding the configured throughput for the sender will be sent to a message queue and dequeued for delivery at the throughput rate set. This message queue has a maximum limit of four hours. Messages that remain in the queue for more than four hours will fail. New messages that will cause the queue to back up beyond the four hour time limit will be rejected and fail.
If you need higher MPS beyond what we can provide you per sender, you can use Messaging Services. This allows you to distribute high message volumes across many senders within a messaging service. You may also refer to our article on Scaling WhatsApp for additional best practices.
Why am I getting a message "Twilio could not find a Channel with the specified From address" when trying to send a message?
There are two common reasons why you are seeing this error:
From
address in your Programmable Messaging API request is incorrect. To send messages using WhatsApp, the
From
address should be
whatsapp:<sandbox phone number>
. This can be found on the
sandbox page
.
My outbound message from the sandbox was not delivered. Why?
There are two reasons why a message sent from the Twilio Sandbox for WhatsApp would fail to be delivered:
Verified
status.