Private Server Documentation
DO QUERY
POST: https://w2.checkwa.com/check/
With country code and number in different parameters
{
“user”: “YOUR-API-USER”, // Username
“apikey”: “YOUR-API-KEY”, // Api key
“action”: “check”, // Action
“token”: “193e123x2”, // Unique ID for indentify response
“callback”: “https://www.callbackurl.com/”, // Callback URL for response
“num”: “666666666”, // Number without country code
“cod”: “34”, // Country code
}
With country code and number in same parameter
{
“user”: “YOUR-API-USER”, // Username
“apikey”: “YOUR-API-KEY”, // Api key
“action”: “check”, // Action
“token”: “193e123x2”, // Unique ID for indentify response
“callback”: “https://www.callbackurl.com/”, // Callback URL for response
“number”: “34666666666” // Number with country code
}
RESPONSE
(application/json)
{
“code”: “1”, <- Response code
“server”: “462”, <- Server to use
“server_status”: “1”, <- Server status (0 = Inactive, 1 = Active)
“server_ping”: “2020-05-23 23:21:33”, <- Last time server are active
“token”: “193e123x2”, <- Unique ID for indetify response
“callback”: “https://www.callbackurl.com/”, <- Your calllback URL for response
“queue”: “8” <- Numbers in your queue
}
RESPONSE IN CALLBACK URL
(application/json)
Example for first response when number uses WhatsApp
{
“code”: “1”, <- Response code, (1 = Uses WhatsApp, 2 = Don’t uses WhatsApp)
“num”: “34666666666”, <- Number (with country code)
“has_picture”: “1”, <- Wait second response with image (0 = Hidden image, 1 = User have image visible)
“token”: “193e123x2”,
}
Example for second response when number uses WhatsApp and have visible image
{
“code”: “1”,
“num”: “34666666666”,
“has_picture”: “1”,
“picture”: “data:image/png;base64,iVBORw0KGg…=”, <- Image in base64
“token”: “193e123x2”
}
Example for response when number don’t uses WhatsApp
{
“code”: “2”,
“num”: “34666666667”,
“has_picture” “0”,
“token” “193e123x2”
}
RESPONSE CODES IN YOUR CALL
1: OK. Number queued
2: *
3: Username or Password wrong
4: Unknow action
5: Number format incorrect
6: Credit limit exceeded
7: Disabled account
9: Invalid server
REQUERIMENTS FOR CALLBACK URL
Headers
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS
Access-Control-Allow-Headers: x-test-header, Origin, X-Requested-With, Content-Type, Accept
Your server must have a valid SSL certificate.
(These parameters are mandatory, otherwise we will not be able to send the results)
Example file endpoint: https://w2.checkwa.com/return.zip