Question: How to resolve @lid JID to a real WAID in atendai/evolution-api:v2.2.3?
Environment
- API Version:
atendai/evolution-api:v2.2.3 - Deployment: Docker via Dokploy with Traefik as reverse proxy.
The Problem
Hello team, I have a question about handling business contacts (LIDs).
When I receive a message webhook from a contact with a @lid JID (for example, 86560837992629@lid), the webhook payload does not seem to contain the user's real phone number (their WAID, e.g., [email protected]).
The data.contacts array, which would normally contain this information, appears to be empty or missing for these LID events.
What I've Tried
I need to get the user's real phone number to link them to my database and send automated notifications. I have tried to query the API to fetch the contact's information, but the following standard endpoints all return a 404 Not Found error:
GET /contact/info/{instanceName}/{jid}POST /contact/fetch-contact/{instanceName}POST /message/find-one/{instanceName}POST /chat/find-message/{instanceName}
I have confirmed my reverse proxy (Traefik/Dokploy) is working correctly by routing traffic with Path: / to the container on port 8080. Other endpoints like /chat/getBase64FromMediaMessage are accessible and working fine. This strongly suggests the issue is that the contact/message lookup endpoints do not exist or are named differently in this specific API version.
My Specific Question
Could you please tell me what is the correct API endpoint and request structure (method, body, etc.) in version v2.2.3 of the atendai fork to reliably get the real phone number (WAID) when a webhook only provides a LID JID?
Is there a different endpoint I should be using, or is there a specific environment variable needed to enable this resolution in the webhook itself?
Thank you for your time and for this great project!
Hey @romariouba how do you resolve it ?