Maybe you have seen a contact in WAQR with no phone number, a name like “WhatsApp contact ·1234”, or the same person split across two records. That is not your team doing something wrong. It is how WhatsApp identifies people today. This article explains it in plain terms for whoever works the inbox, and in detail for whoever connects WAQR to a CRM.
Phone number and LID: two ways to identify a person
For years, WhatsApp identified everyone by their phone number. In WAQR we call it the PN and store it in international E.164 format, for example +51987654321.
More and more, WhatsApp also uses an opaque identifier called a LID. It is a string of digits ending in @lid, and it does not reveal the phone number. WhatsApp uses it to protect privacy, especially in groups and in some first contacts.
What matters day to day:
- Sometimes a message arrives with only the LID and no number.
- In general you cannot work out the number from the LID. There is no public table linking the two.
- The same person can message you with their number one day and with their LID the next.
That is why a contact can show up without a number, and why the same person sometimes appears twice.
How WAQR models a contact
In WAQR, a contact is one person with several identities. An identity can be their number, their LID or both. Every contact has a stable id that starts with ct_.
Here is a simplified example of a contact’s identities in the API:
{
"id": "ct_…",
"displayName": "María Pérez",
"identities": [
{ "kind": "wa_pn", "value": "+51987654321", "jid": "51987654321@s.whatsapp.net" },
{ "kind": "wa_lid", "value": "123456789012345", "jid": "123456789012345@lid" }
]
}
When two identities merge on their own
WAQR automatically merges a number and a LID only when a single WhatsApp event carries both. That is evidence from the protocol itself: WhatsApp is saying they belong to the same person. This kind of merge cannot be undone, because the next message would bring the same evidence and merge them again.
Without that evidence, WAQR does not guess. Two records for the same person can coexist, one with the number and one with the LID, until WhatsApp sends an event with both or someone on your team merges them by hand.
One contact per organization
A contact is unique within your organization, even if they talk to several of your numbers. If María messages both Sales and Support, she is one contact with two conversations, one per number. Groups are not contacts; they are handled separately.
Where names come from
The “profile name” you see in WhatsApp is written by the contact themselves. It can be their real name, a nickname, an emoji or their business name. WAQR never makes up a name. If there is no reliable one, it shows something neutral.
When several sources exist, WAQR picks the displayed name in this order:
- The name your team edited in WAQR.
- The name from Google Contacts (an integration coming later).
- A name sent through the API.
- The WhatsApp profile name.
- Names that arrived in other events.
- The formatted phone number.
- “WhatsApp contact ·1234”, using the last digits of the LID, when nothing else is available.
In practice, if your team fixes a name, that fix always wins. A later change to the profile name will not overwrite it.
What WAQR deliberately does not do
It does not import the phone’s address book
WAQR does not copy the full address book from the linked phone. A contact is created only when someone messages you or you message them. Your list reflects people you actually talk to, not hundreds of personal numbers nobody agreed to have processed.
It does not correct numbers
Numbers are stored exactly as WhatsApp delivers them. WAQR does not “fix” them. A well-known case is the extra 9 in Brazilian mobile numbers: depending on how it arrives, it may or may not be there. Correcting it on our side could merge two different people or split one person in two, so we keep the original data.
What to do when you see a duplicate
If your team knows two records are the same person, they can merge them by hand from the panel. Before you do, make sure it really is the same person. A matching profile name is not enough, since each contact writes their own and names repeat.
A manual merge is reversible. If you got it wrong, undo it and each record gets its identities back. Both merging and undoing are recorded in the activity log, with who did it and when.
If you would rather do it from your own system, the API has two endpoints. Both need a key with the contacts:write scope:
POST /v1/contacts/{id}/mergeto merge contacts.POST /v1/contacts/{id}/unmergeto undo a manual merge.
Automatic number-to-LID merges cannot be undone, for the reason explained above.
How to integrate it with your CRM
If you sync WAQR contacts with a CRM or another system, two rules prevent most problems.
Key on the contact id, not the phone number
Store the WAQR contact id (ct_…) as the linking key. The phone number does not work as a key because:
- Some contacts have no number, only a LID.
- One person can have both a
wa_pnidentity and awa_lididentity. - The number may arrive in different formats depending on the case.
Treat identities as attributes of the contact, not as its identifier.
Listen for contact.merged
When two contacts are merged, manually or automatically, WAQR sends the contact.merged webhook. Use it to merge the matching records in your CRM and point them at the surviving contact. If a manual merge is undone, you get contact.unmerged so you can split them again. The contact.created and contact.updated events cover new contacts and changes.
As with every WAQR webhook, the body carries ids and metadata, not sensitive data. If you need the details, fetch them from the API with your key. Delivery is at-least-once, so deduplicate on webhook-id. It is all covered in the webhooks section.
In short
WhatsApp identifies people by phone number and, increasingly, by LID. WAQR joins the two only when there is evidence, never invents names and lets you merge and undo by hand. If you integrate a CRM, key on the ct_… id and listen for contact.merged. To start building, see the WAQR API.