How redaction works
When a message is sent, Intercom scans the content against your enabled rules. Any matched text is replaced — the original data is overwritten in the database and cannot be restored.
For credit card numbers (PAN), the last 4 digits are preserved (e.g. ****9561). All other rules replace the full match with asterisks.
Built-in rules
The following rules are available out of the box:
Rule | What it detects | Redaction format |
Credit Card (PAN) | 15–16 digit card numbers that pass a Luhn algorithm check |
|
Social Security Number (SSN) | 9-digit numbers, with or without dashes |
|
Note: Built-in rules cannot be modified, but you can enable or disable them individually.
Custom rules
You can define up to 10 custom rules using regular expressions. This is useful for redacting internal identifiers, policy numbers, account codes, or any other sensitive data specific to your business.
Here's an example of adding a basic email redaction rule:
Each rule requires:
A name (up to 100 characters) to identify the rule in your settings
A regular expression pattern that matches the data you want to redact
Note: Custom rules replace the full match with asterisks — partial preservation (like the last 4 digits for PAN) is not available for custom rules.
Writing patterns safely
Patterns are validated before saving to ensure they won't cause performance issues. Avoid patterns with unbounded repetition on variable-length input (e.g. (a+)+), as these may be rejected. Each rule also runs with a timeout at runtime — if a pattern takes too long to evaluate against a message, that rule is skipped for that message.
User experience
When an end user enters any content which matches a rule, it will be redacted in the UI before being saved and is not saved in the Intercom database. They cannot see the text and it's not recoverable.
Teammates also see redacted text which cannot be recovered.
Enabling content redaction
Navigate to Settings > Workspace > Security > Data and find the Content redaction section. From there you can:
Toggle individual built-in rules on or off.
Add, edit, or remove custom rules.
Supported channels
Content redaction applies to messages received on the following channels:
Web Messenger
Mobile iOS SDK
Mobile Android SDK
Inbound email
Call transcripts
FAQs
Can I recover data that has been redacted?
No. Redaction is irreversible — the original data is never saved to the database and cannot be viewed or restored.
What happens if a number is redacted by mistake?
False positives can occur, particularly if your customers share long numeric identifiers that happen to match a redaction pattern. Redacted data cannot be recovered, so review your patterns carefully before enabling a rule. You can test a pattern against sample text using a tool like regex101.com before adding it.
What do customers see when their message is redacted?
The customer sees the redacted version of their message in the Messenger. The conversation in the Inbox will also display the redacted version.
Are messages redacted immediately?
Redaction happens as messages are received, before they are saved. There is no delay.
Can I apply multiple rules at once?
Yes. All enabled rules run together. If multiple rules match different parts of the same message, each match is redacted. If two rules match overlapping text, the longer match takes precedence.
Need more help? Get support from our Community Forum
Find answers and get help from Intercom Support and Community Experts




