What is a WhatsApp JID and LID?

A WhatsApp JID is the internal address of a chat, such as a number@c.us or a group@g.us. A LID is a private per-user ID. Formats, examples and pitfalls.

Short answer

A JID (Jabber ID) is the address WhatsApp uses internally for a chat: a person, a group or a channel, such as 91XXXXXXXXXX@c.us or 120363XXXXXXXXXXXX@g.us. A LID (linked ID), ending in @lid, is a separate per-user identifier that is not the phone number.

WhatsApp ID formats

Tools built on the WhatsApp Web protocol show these suffixes. The part before the @ is the identifier.

KindFormatNotes
Person (phone-based)91XXXXXXXXXX@c.usThe full international number. Some libraries write @s.whatsapp.net instead.
Group120363XXXXXXXXXXXX@g.usA stable group ID. It does not change when the group is renamed.
Person (linked ID)XXXXXXXXXXXXXXX@lidA per-user ID that is not the phone number.
ChannelXXXXXXXXXXXXXXX@newsletterA WhatsApp channel.

Why do LIDs exist?

WhatsApp increasingly identifies people by LID, especially in groups, so a member's phone number is not exposed to everyone. A tool can map a LID to a phone number only when the number is known to the account, for example a saved contact, and some lookups return nothing.

Example and pitfalls

A message in a group arrives from 2041XXXXXXXXXXX@lid. Your CRM matches customers by phone, so the match fails. The fix is to store both IDs for each person when they are known, match on the exact ID, and never treat a display name as an identity.

Frequently asked questions

Is a WhatsApp JID the same as a phone number?

For a person it usually contains the phone number in international format, followed by @c.us or @s.whatsapp.net. Group, channel and LID identifiers are not phone numbers.

Can I convert a LID to a phone number?

Sometimes. Tools such as WAHA can look up the phone number for a LID when it is known to the account, for example a saved contact. Otherwise the lookup returns nothing, and you should not guess.

Sources

  1. WAHA: Chats (chat ID formats)
  2. WAHA: Contacts (LID and phone number mapping)

Bring your WhatsApp work together.

Start a 14-day free trial with Starter features, link your number and invite your team. No card required.