Twilio error 30004: message blocked
Updated
30004 (Message blocked) means the destination number is blocked from receiving your message. The recipient may have opted out or blocked you, the number may not take SMS (a landline), the phone may be off, or a carrier or Twilio filter stopped it. Send one fresh test, check the number, fix content, then contact Support.
What Twilio says it means
Twilio's error reference names 30004 Message blocked, a carrier error. It means the destination number is blocked from receiving the message. You see ErrorCode 30004 when the message moves to failed or undelivered in the Programmable Messaging logs or your status callback.
Likely causes
- The destination number is blocked from receiving messages, for example because the person blocked your sender.
- The recipient's phone is off or out of coverage.
- The number can't receive SMS, such as a landline.
- For India: Do Not Disturb (DND) and domestic Distributed Ledger Technology (DLT) rules block delivery.
- Carrier or compliance filtering blocked the content or the sender, or Twilio applied its own filtering. This can make repeated messages fail with 30004.
How to check and fix it
- Reproduce it. Send a fresh test through the API. Check the phone is on and has signal, try a short single-segment body, and send from a different Twilio sender rather than an Alphanumeric Sender ID.
- Check for an opt-out. If the person opted out earlier, ask them to text
STARTorUNSTOPto your sender, then retry. Until they do, sends to them fail with 21610. - Check the line type. A Twilio Lookup with line type intelligence tells you whether the number is a landline before you text it.
- Review the content. If filtering is likely, bring the message in line with Twilio's Messaging Policy and drop prohibited or high-risk content.
- India: follow Twilio's India SMS guidelines. International routes may bypass DND; domestic routes need DLT registration and respect DND. Pick the right route and finish the registrations it needs.
- Escalate. If it keeps happening, collect recent Message SIDs with 30004 and open a ticket with Twilio Support.
How to prevent it
- Text only people who opted in, and honour STOP straight away.
- Clean your list: remove landlines and numbers that fail repeatedly.
- Register your sender (A2P 10DLC or toll-free verification in the US) and keep content close to your registered use case.
- Don't retry blocked numbers in a loop: repeated failures look like spam to carriers.
Related codes
| Code | Name | Difference |
|---|---|---|
| 30003 | Unreachable destination handset | The carrier couldn't reach the phone; often temporary. |
| 30007 | Message filtered | Spam filtering by Twilio or the carrier. |
| 21610 | Attempt to send to an unsubscribed recipient | The person replied STOP to your sender. |
| 30006 | Landline or unreachable carrier | The number is a landline or its carrier can't take the message. |
The full list is on the Twilio error codes hub.
How Switchmast helps

Tap a failed message in Switchmast and you see 30004 explained in plain English, with the Message SID to give Twilio Support. Its opt-outs list collects STOP replies and 21610 failures, and "Resend failed" skips opted-out and blocked numbers, so you don't keep texting people who can't receive you.
Questions
What does Twilio error 30004 mean?
Message blocked: the destination number is blocked from receiving the message. The message ends as failed or undelivered with ErrorCode 30004 in the logs and status callbacks.
Does 30004 mean the person blocked my number?
It can, but not only that. Twilio also lists a phone that's off or out of coverage, a number that can't take SMS (a landline), India's DND and DLT rules, and carrier, compliance or Twilio filtering.
How is 30004 different from 21610?
21610 is Twilio refusing to send because the recipient replied STOP to your sender. 30004 is a block reported when the message failed further along. If the recipient opted out, they need to reply START or UNSTOP before you can text them again.
Should I keep retrying a 30004?
No. Retry once with a fresh test to rule out a phone that was off. If the same number keeps failing, stop sending to it until you know why, and contact Twilio Support with recent Message SIDs.
Sources
All read 27 November 2026.
- Twilio docs: Error 30004, Message blocked (read 27 Nov 2026)
- Twilio docs: Error 30006, Landline or unreachable carrier (read 27 Nov 2026)