Skip to main content
GET
/
api
/
{session}
/
lids
/
{lid}
Get phone number by lid
curl --request GET \
  --url https://{host}/api/{session}/lids/{lid} \
  --header 'apikey: <api-key>'
{
  "lid": "12345678901234567890",
  "phone": "5511999999999",
  "jid": "5511999999999@s.whatsapp.net"
}

Description

This endpoint returns the phone number associated with a specific LID (Local ID). LID is a local identifier used by WhatsApp to map contacts efficiently.

URL Parameters

session
string
required
Unique authenticated session ID
lid
string
required
Local ID (LID) of the contact to be queried
{
  "lid": "12345678901234567890",
  "phone": "5511999999999",
  "jid": "5511999999999@s.whatsapp.net"
}

Status Codes

  • 200 - Phone number returned successfully
  • 401 - Unauthorized session
  • 404 - Session or LID not found

Usage Example

curl -X GET https://api.wappfy.com.br/api/my-session/lids/12345678901234567890

Authorizations

apikey
string
header
required

Your Wappfy API key (get it at dash.wappfy.com.br)

Path Parameters

lid
string
required

Response

200 - application/json
lid
string

User's linked ID

Example:

"1111111@lid"

pn
string

User's phone number (chat id)

Example:

"3333333@c.us"

I