Actions164
- API Key Actions
- Automation Rule Actions
- Call Actions
- Catalog Actions
- Channel Actions
- Chat Actions
- Contact Actions
- Group Actions
- Add Participants
- Approve Membership Requests
- Create
- Delete Picture
- Demote Participants
- Get
- Get Invite Code
- Get Join Info
- Get Membership Requests
- Get Picture
- Get Settings
- Join
- Leave
- List
- Promote Participants
- Reject Membership Requests
- Remove Participants
- Revoke Invite Code
- Set Member Label
- Set Picture
- Update Description
- Update Settings
- Update Subject
- Label Actions
- Media Actions
- Message Actions
- Observability Actions
- Presence Actions
- Profile Actions
- Session Actions
- Status Actions
- System Actions
- Template Actions
- Webhook Actions
Contact → Get LID
AI-generatedSummary
Retrieve the LID (privacy ID) for a WhatsApp contact given their phone number and a specific session.
Inputs
- Session Name or ID (required) — Select or specify the ID of the session to use for retrieving the contact's LID.
- Phone Number (required) — Enter the phone number in international format or a phone-based WhatsApp contact ID. The input will be sanitized by removing spaces, plus signs, hyphens, parentheses, and any '@c.us' or '@s.whatsapp.net' suffix. Privacy IDs, groups, and channels cannot be used.
Output shape
a single record containing the contact's LID returned as JSON
The operation requires OpenWA version 0.27.1 or later and an API key with OPERATOR privileges; chat-restricted keys are not allowed. The output JSON includes the LID corresponding to the given phone number for the specified session.
Examples
Example 1: Retrieve the LID for a contact in a given session
Set 'Session Name or ID' to a valid session ID and provide the contact's phone number in international format without extra characters or suffixes to get the LID of that contact.