Realtime WhatsApp Avatar Detection
Este conteúdo não está disponível em sua língua ainda.
Check whether the input global number is a WhatsApp account and get the WhatsApp avatar URL.
Code example:
curl --location --request POST 'https://api.ekycpro.com/v1/realtime/whatsappavatar' \--header 'Content-Type: application/x-www-form-urlencoded' \--header 'X-API-Key: AbcdEfgh' \--data-urlencode 'number=628138800001&country=ID'
Response for the input number have already registered whatsapp
{ "status": "OK", "message": { "number": "+628138800001", "whatsapp": "yes", "avatar_url": "https://pps.whatsapp.net/v/xxxxx/xxxxx" }, "pricingStrategy": "PAY", "transactionId": "tphxc6te38gpcoyk8hkvwc"}
Response for the input number not register whatsapp
{ "status": "OK", "message": { "number": "+628138800001", "whatsapp": "no", "avatar_url": "" }, "pricingStrategy": "PAY", "transactionId": "tphxc6te38gpcoyk8hkvwc"}
HTTP request
POST https://api.ekycpro.com/v1/realtime/whatsappavatar
Request parameters
parameter | description |
---|---|
number | string , phone number |
country | string , Country abbreviation. Brazil: BR, Mexico: MX, Nigeria: NG, India: IN. |
callback | optional , string , callback url. Strongly recommended to use callback url |
Response format
fields | description |
---|---|
status | status code |
message | number : phone number whatsapp : conclusion |
Status code
status | description |
---|---|
OK | charge , message contains the result |
FAIL | free , invalid query |
INVALID_INPUT | free , invalid input |
RETRY_LATER | free , server error, please try again later |