Switchmast

Twilio error 30004: message blocked

Updated

Short answer

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

How to check and fix it

  1. 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.
  2. Check for an opt-out. If the person opted out earlier, ask them to text START or UNSTOP to your sender, then retry. Until they do, sends to them fail with 21610.
  3. Check the line type. A Twilio Lookup with line type intelligence tells you whether the number is a landline before you text it.
  4. Review the content. If filtering is likely, bring the message in line with Twilio's Messaging Policy and drop prohibited or high-risk content.
  5. 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.
  6. Escalate. If it keeps happening, collect recent Message SIDs with 30004 and open a ticket with Twilio Support.

How to prevent it

CodeNameDifference
30003Unreachable destination handsetThe carrier couldn't reach the phone; often temporary.
30007Message filteredSpam filtering by Twilio or the carrier.
21610Attempt to send to an unsubscribed recipientThe person replied STOP to your sender.
30006Landline or unreachable carrierThe 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

One failed Twilio message in Switchmast with its error code explained
A failed message in Switchmast, on sample data.

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.