Resolver LID
Algunos chats llegan con un identificador interno (LID) en vez del número. Esta consulta devuelve el número real si WhatsApp ya lo compartió. Si todavía no, responde status false con HTTP 200: puedes seguir respondiendo a …@lid.
Resolver LID
POST
GET
https://api.kontacto.pro/resolve-lid
Parámetros · cuerpo JSON si es POST
| Parámetro | Tipo | Requerido | Descripción |
|---|---|---|---|
| api_key | string | Sí | Tu API key. |
| sender | string | Sí | Número de tu dispositivo (conectado), ej. 51999888777. |
| lid | string | Sí | El LID (solo dígitos o con @lid). |
Ejemplos
Solicitud JSON
{
"api_key": "TU_API_KEY",
"sender": "51xxxxxxxxx",
"lid": "22858017280019"
}
cURL
curl -X POST https://api.kontacto.pro/resolve-lid \
-H "Content-Type: application/json" \
-d '{
"api_key": "TU_API_KEY",
"sender": "51xxxxxxxxx",
"lid": "22858017280019"
}'
Por GET
https://api.kontacto.pro/resolve-lid?api_key=TU_API_KEY&sender=51xxxxxxxxx&lid=22858017280019
Respuesta
JSON
{
"status": true,
"lid": "22858017280019",
"number": "51xxxxxxxxx"
}