WhatsApp Detection
Check the input global number, whether it is whatsapp account.
Code example:
Non-callback request (callback is empty), response for the input number have already registered whatsapp
Non-callback request (callback is empty), response for the input number not register whatsapp
Non-callback request (callback is empty), response for the input number is checking
Return by callback address (callback address)
HTTP request
POST https://api.ekycpro.com/v1/whatsapp
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 |
Request method
Directly Get Result
When the whatsapp value is checking, it needs to be detected again for a period of time (>20s).
Callback Get Result
When the field callback is not empty, it is returned to the callback URL once the result is queried. Please do not call back the same number multiple times. Return method is GET https://YOUR_CALLBACKURL/?number=%2B628138800001&whatsapp=yes
Status code
status | description |
---|---|
OK | the whatsapp value is checking, unavailable for free else charge, message contains the result |
FAIL | free , invalid query |
INVALID_INPUT | free , invalid input |
RETRY_LATER | free , server error, please try again later |