Duplicate contacts are a texting problem, not just a tidiness one. The same person saved twice gets two copies of every campaign, and a STOP on one record doesn't reach the other unless you match them by phone number. Normalize numbers first, match on the normalized value, then merge with the opt-out status winning.
Step one: normalize
"(212) 555-0199", "212-555-0199" and "+1 212 555 0199" are one number. Convert every number to E.164 (+12125550199) when it enters your system. Our guides to E.164 formatting and validating with libphonenumber cover the rules. Ready treats a 10-digit US number as +1, but store the full form yourself.
Step two: match
| Match type | Example | Action |
|---|---|---|
| Same number, same name | Two imports of one person | Merge |
| Same number, different names | A family line or a shared office phone | Keep both, flag for review |
| Same person, two numbers | Mobile and landline | Keep both, text the mobile |
| Same number, different accounts | Two customers of your platform | Never merge across tenants |
The last row matters for platforms. Matching crosses a line you must not cross: one customer's data doesn't merge with another's.
Step three: merge safely
- Opt-out wins. If either record opted out, the merged record is opted out.
- Keep the earliest consent. Preserve when and how each record opted in.
- Keep all history. Merge message threads in time order.
- Log the merge so you can undo it.
On Ready, a STOP blocks that number in the sub-account that received it. Before a send from another tool or after a migration, check GET /v1/opt-outs/:phone, and record opt-outs from email or tickets with POST /contacts/ban-list. See handling SMS opt-outs.
Shared numbers are real
Some numbers belong to more than one person: a household, a front desk, a business line. Don't auto-merge on a number alone when names differ. Texting the wrong person about someone else's appointment is its own risk.
Reassigned numbers
People change numbers and carriers recycle them. A contact from three years ago may now be someone else. Our post on reassigned numbers and the TCPA explains why old consent doesn't always carry over.
A dedupe pass before launch
- Normalize every number to E.164.
- Group by number and review groups with different names.
- Merge with opt-out winning.
- Run number validation on what's left.
- Add a unique constraint on tenant plus number to stop new duplicates.
Clean data costs an afternoon. Duplicate texts cost customers.