---
page_type: error
code: 30007
message: "30007: Message filtered"
level: ERROR
product: Programmable SMS
---

## Description

Your message was filtered (blocked) by Twilio or by the carrier. This may be done by Twilio for violating Twilio's [Messaging Policy](https://www.twilio.com/en-us/legal/messaging-policy) or [Acceptable Use Policy](https://www.twilio.com/en-us/legal/aup), or by a wireless carrier for violating carrier rules or regulations.

Examples of messaging that would be blocked by Twilio are spam, phishing, and fraud. Twilio's filtering system is in place to protect mobile subscribers from spam or other forms of malicious or unwanted messages.

Wireless carriers have filtering systems in place as well. These carrier filters are used to block abusive traffic, as well as to enforce rules or regulations about what types of messaging are allowed to that country or mobile network.

Learn more about how message filtering works and how to avoid it: [How Does Message Filtering Work?](https://support.twilio.com/hc/en-us/articles/223181848-How-Does-Carrier-Filtering-Work-)

For a detailed explanation of carrier filtering in the United States and Canada, please see [SMS Carrier Filtering in the United States and Canada](https://support.twilio.com/hc/en-us/articles/360022449893-SMS-Carrier-Filtering-in-the-United-States-and-Canada).

### Possible Causes

- Your message was identified as spam or unwanted messaging by Twilio's message filtering system
- Your message was flagged as objectionable and blocked by a wireless carrier

### Possible Solutions

- Ensure your messaging use case complies with Twilio's [Messaging Policy](https://www.twilio.com/en-us/legal/messaging-policy) and [Acceptable Use Policy](https://www.twilio.com/en-us/legal/aup)
- Review the information in [How Does Message Filtering Work?](https://support.twilio.com/hc/en-us/articles/223181848-How-Does-Carrier-Filtering-Work-) to understand what causes filtering.
- See [How do I prevent my Twilio messages from being filtered (blocked)?](https://support.twilio.com/hc/en-us/articles/1260803966670-How-do-I-prevent-my-Twilio-messages-from-being-filtered-blocked-) for specific tips on avoiding message filtering.
- If you believe your messages are compliant with Twilio and carrier policies, please collect 3 or more examples of Message SIDs that have the "undelivered" status with error 30007, and then [contact our Support team](https://www.twilio.com/console/support/tickets/create). We can help review your messaging and determine if an error was made, and put you in touch with our Compliance team if needed.