Skip to main content
Version: v0.31.0

Look up the LID of a phone number

GET 

/api/sessions/:sessionId/contacts/:number/lid

Returns the <lid>@lid WhatsApp holds for a phone number, the reverse of GET /contacts/{contactId}/phone, without sending a message. A number WhatsApp holds no LID for answers lid: null, as does an unregistered one; use check/{number} to tell them apart. The gateway stores nothing from the lookup. Both engines may send a query to WhatsApp, so bulk lookups put the linked account at risk. Requires an OPERATOR key.

Request​

Responses​

The number and its LID, or null