Describe the bug
We are receiving incoming webhook with lid.
However when we try to resolve that lid to phone number, it return null phone number.
When we fetch all contacts, we found two contacts with same name but different lid.
One of the contact is without phone number.
One of the contact is with phone number.
Message returns the lid for the contact without the phone number.
Message sending happens via phone number, that takes the lid with phone numer.
Because of duplicate in contact list it creates inconsistency of LID.
Note that phone doesn't have any duplicate.
Version
Get the WAHA version by calling GET /api/version
{
"version": "2026.7.1",
"engine": "NOWEB",
"tier": "PLUS",
"browser": null,
"platform": "linux/x64",
"worker": {
"id": "XXXXX"
}
}
Steps
To Reproduce Steps to reproduce the behavior:
- Webhook received for incoming message
{"id":"evt_01ky4xtg0qepsvccggy4hqb7nh","timestamp":1784724406295,"event":"message","session":"XXXXX","me":{"id":"972539XXXXX@c.us","pushName":"\u05d5\u05d5\u05e6\u05d0\u05e4 \u05de\u05e9\u05e8\u05d3 \u05de\u05d9\u05e8\u05d5\u05df \u05d3\u05d4\u05df \u05e8\u05d5\u05d0\u05d4 \u05d7\u05e9\u05d1\u05d5\u05df","lid":"XXXXXX1468@lid"},"payload":{"id":"false_XXXXX67680287@lid_3BF97F57CE8F811C4C29","timestamp":1784724406,"from":"XXXXX67680287@lid","fromMe":false,"source":"app","body":"cu\u05e6\u05e2","hasMedia":false,"media":null,"ack":2,"ackName":"DEVICE","location":null,"vCards":null,"replyTo":null,"_data":{"key":{"remoteJid":"XXXXX67680287@lid","fromMe":false,"id":"3BF97F57CE8F811C4C29","participant":null,"addressingMode":"lid"},"messageTimestamp":1784724406,"pushName":"Nadav","broadcast":false,"message":{"conversation":"cu\u05e6\u05e2","messageContextInfo":{"deviceListMetadata":{"senderKeyHash":"GC\/xtNCvtmoYOw==","senderTimestamp":"1782086757","recipientKeyHash":"mjS8zm2z+VtHUA==","recipientTimestamp":"1784095875"},"deviceListMetadataVersion":2,"messageSecret":"MMIfg6A1NSTAf7MDyyuNDs5gS0u7q7k+KaV\/bGXN\/PI="}},"status":3}},"engine":"NOWEB","environment":{"version":"2026.7.1","engine":"NOWEB","tier":"PLUS","browser":null,"platform":"linux\/x64","worker":{"id":"XXXXX"}}}
- Resolve lid to phone number
GET 60533/lids/134527267680287@lid?
{"lid":"XXXXX67680287@lid","pn":null}
pn received is null.
- Fetch all contacts
{
"id": "XXXXX831327@c.us",
"name": "נדב לאוב (אבות זכרונים החזר מס)",
"lid": "XXXXX89837445@lid",
"phoneNumber": "XXXXX831327@s.whatsapp.net",
"pushname": "Nadav"
}
{
"id": "XXXXX67680287@lid",
"pushname": "Nadav"
}
- See error
There are two contacts with Nadav, when message comes in it should come with the lid XXXXX89837445@lid, which has phone number. Instead it comes wit lid without phone number.

Describe the bug
We are receiving incoming webhook with lid.
However when we try to resolve that lid to phone number, it return null phone number.
When we fetch all contacts, we found two contacts with same name but different lid.
One of the contact is without phone number.
One of the contact is with phone number.
Message returns the lid for the contact without the phone number.
Message sending happens via phone number, that takes the lid with phone numer.
Because of duplicate in contact list it creates inconsistency of LID.
Note that phone doesn't have any duplicate.
Version
Get the WAHA version by calling
GET /api/version{ "version": "2026.7.1", "engine": "NOWEB", "tier": "PLUS", "browser": null, "platform": "linux/x64", "worker": { "id": "XXXXX" } }Steps
To Reproduce Steps to reproduce the behavior:
pn received is null.
There are two contacts with Nadav, when message comes in it should come with the lid XXXXX89837445@lid, which has phone number. Instead it comes wit lid without phone number.