waha icon indicating copy to clipboard operation
waha copied to clipboard

Return LID in send message response for reliable conversation mapping

Open bs1601 opened this issue 9 months ago • 4 comments

Is your feature request related to a problem? Please describe.

Yes.

Due to recent WhatsApp changes, incoming messages often contain only the LID and not the original phone number.

When I send a message to a phone number via WAHA, the API response does not return the LID of that recipient.

Later, when the user replies, the webhook includes only the LID. Since the phone number is no longer exposed, my system cannot map the reply to the existing contact in the CRM.

This causes:

Conversation splitting

Bots failing to document replies correctly

CRM systems losing message mapping

Additional API calls required to resolve LID mapping

Increased server load and latency

Describe the solution you'd like

When sending a message to a phone number, the API response should always include the corresponding LID for that recipient.

This would allow developers to immediately store the LID and map all future incoming messages correctly, without additional lookup requests.

Describe alternatives you've considered

Currently, the only workaround is to perform additional API calls after receiving a reply in order to resolve the LID mapping.

This increases request volume, latency, and unnecessary server load.

Returning the LID in the initial send response would solve this cleanly and efficiently.

patron:PRO

bs1601 avatar Feb 12 '26 10:02 bs1601

what engine?

patron:PRO

devlikepro avatar Feb 16 '26 09:02 devlikepro

related to lid/c.us as well

  • https://github.com/devlikeapro/waha/issues/993
  • https://github.com/devlikeapro/waha/issues/1684
  • https://github.com/devlikeapro/waha/issues/1817

patron:PRO

devlikepro avatar Feb 16 '26 09:02 devlikepro

Happy to see some movement around this issue

JuanchiRios avatar Feb 18 '26 02:02 JuanchiRios

+1