Why your API messages are blocked with HTTP 429 (repeat-send protection)
API messages to one number refused with HTTP 429? Repeat-send protection limits duplicates and floods. What triggers it, alerts, and fixes.
If your API calls start failing with HTTP 429 Too Many Requests, WebSMS repeat-send protection has stopped messages to one phone number because they were repeating too often. Blocked messages are not sent and not charged, and the block lifts on its own once the time window runs out.
The two limits
Both limits count messages from your account to one phone number. Sending to lots of different numbers is never affected.
| Rule | Triggers when | reason in the API response |
|---|---|---|
| Duplicate loop protection | The same message goes to the same number more than 3 times in 10 minutes | duplicate_loop_protection |
| Recipient rate limit | Any messages go to the same number more than 15 times in 60 minutes | recipient_rate_limit |
Each window starts with the first message and doesn't get longer when you keep trying, so a blocked number frees up again on time. The limits apply to the API endpoints sms/out, sms/otp and sms/appointment, which covers integrations, automations and chatbots built on the API.
Why the limits exist
Almost every time these limits trigger, something has gone wrong: an automation stuck in a loop, a chatbot replying to itself, or a CRM sending the same record twice. Without a limit, one fault can burn through your credit and flood someone's phone in minutes.
Shared shortcodes are also used by many WebSMS customers. If one handset gets a flood of messages, the carrier can complain or block the shortcode, and that affects every customer on it. These limits protect your balance, your recipients and everyone else on the shortcode.
What your API receives
Each blocked message gets an HTTP 429 response like this:
{
"error": "Too Many Requests",
"reason": "duplicate_loop_protection",
"message": "Duplicate loop protection: this exact message has already been sent to 64271234567 3 times in the last 10 minutes. Try again in 4 minutes 10 seconds, or change the message. Nothing was sent or charged. ...",
"retry_after": 250
}
retry_after is the number of seconds until that number can be messaged again. Don't retry in a tight loop. Each retry is blocked again until the window runs out.
Email alerts when messages are blocked
When repeat-send protection starts blocking your messages, we email you so a looping integration doesn't go unnoticed. You get at most one email an hour, not one for every blocked message. The email shows the number, the rule, when it resets and the start of the message.
These alerts use the same setting as reply notifications: Integrations → Shared Replies → Email Notifications. They go to the address chosen under Emails sent to, which can be your account email or an alternative email. If you turn Email Notifications off, you won't get these alerts.

How to fix a block
- Check your automation. Look for loops, retries that don't stop, or a bot replying to its own messages. In the email alert or the API response, the start of the message usually shows which flow is the problem.
- Remove duplicate records. If the same contact appears several times in a list or CRM, they get one message for each copy.
- Wait for the reset. After the time in
retry_after, messages to that number go through as normal.
Can the limit be removed?
We can lift the limit on request, but only if you're messaging yourself or your own staff, such as network outage or system monitoring alerts to your on-call team. We never lift it for messages to your customers.
Sending to customers? If you need to send this many messages to your customers, you need your own dedicated shortcode. A dedicated shortcode is used only by your business, so your traffic can't affect anyone else. See shortcode pricing.
To ask for an exemption for internal alerts, email servicedesk@websms.co.nz with your account email and the numbers you'll be messaging.
Related articles
More in API & Integrations
We’re a small New Zealand team and happy to help.