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
“token”: “193e123x2”, // Unique ID for indentify response (optional)
“callback”: “https://www.callbackurl.com/”, // Callback URL for response (optional)
“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
“token”: “193e123x2”, // Unique ID for indentify response (optional)
“callback”: “https://www.callbackurl.com/”, // Callback URL for response (optional)
“number”: “34666666666” // Number with country code
}

RESPONSE

(application/json)

{
“code”: “1”, <- Response code (1 = uses whatsapp, 0 = don’t uses whatsapp)
“token”: “193e123x2”, <- Unique ID for indetify response
“callback”: “https://www.callbackurl.com/”, <- Your calllback URL for response
}

RESPONSE IN CALLBACK URL

(application/json)

Example for first response when number uses WhatsApp
{
“code”: “1”, <- Response code, (1 = Uses WhatsApp, 0 = 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

0: Don’t uses whatsapp
1: Uses whatsapp
2: *
3: Username or API KEY wrong
4: Unknow action
5: Number format incorrect
6: Credit limit exceeded
7: Too many numbers in queue (6): Number queued if use callback url, or rejected if don’t use callback url

 

BULK QUERY

POST: https://w2.checkwa.com/bulk/

{
“user”: “YOUR-API-USER”, // Username
“apikey”: “YOUR-API-KEY”, // Api key
“token”: “193e123x2”, // Unique ID for indetify response
“callback”: “https://www.callbackurl.com/”, // Your calllback URL for response
“numbers”: [“972542654444″,”97239602767″,”972545271265″,”972549947692″,”97248246177″,”972506331691″,”972544993190″,”97236992921″,”972507770683″,”972525351047″,”972524789193″,”972544942835″,”972525958725″,”972586100500″,”972775215334″,”97236565885″,”972544478090″,”97288649076″,”972525730674″,”972528784062″,”972524222359″,”972542531882″,”972765993434″,”972527390663″,”972502734386″,”972547278495″,”972545491179″,”972544866264″,”97235254556″,”972502718787″,”97246740831″,”972545405805″,”97297454808″,”97236516777″,”972527522566″,”97249513323″,”97286752596″,”97297666429″,”972592741988″,”972527924631”]
}

 

CHECK CREDIT

POST: https://w2.checkwa.com/credit/

{
“user”: “YOUR-API-USER”, // Username
“apikey”: “YOUR-API-KEY” // Api key
}

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