Skip to main content

Messenger check (JSON API)

Check whether WhatsApp, Viber or Telegram is registered on a phone number — for example, to clean a database before a messenger campaign. The subscriber receives nothing.

The check is asynchronous. The response to the request carries only the message identifier msg_id and the status QUEUED. The result comes later — usually within a few hours; a request sent late in the day may be answered the next day. Get it with the message status request or in the webhook:

StatusMeaning
QUEUED, ACCEPTEDthe check is in progress
DELIVEREDthe messenger is registered on the number
UNDELIVERABLEthe messenger is not registered on the number
UNKNOWNthe check could not be completed; its price is returned to the balance
Minimum 1000 numbers

The provider checks numbers in batches, so one request must contain at least 1000 different numbers of the same messenger — each number is a separate element of data. A request with fewer numbers of any messenger is rejected as a whole: Check requires at least 1000 phones per channel in one request, nothing is charged.

The check is charged at your HLR price for the number's country, at the moment the request is accepted. The service is enabled by your manager.

URI: https://alphasms.net/api/json.php

All requests to API are sent in JSON format using the POST method.

Header parameters​

Requests must contain header Content-Type: application/json, otherwise, the request will be considered invalid even if it has valid JSON.

Request example​

{
"auth": "bb56a4369eb19***cfec6d1776bd25",
"data": [
{
"type": "check",
"id": 100500,
"phone": 447700900123,
"channel": "whatsapp",
"hook": "https://example.org/webhook/url.php"
}
]
}

Response examples​

HTTP Status Code: 200
Content Type: JSON application/json

{
"success": true,
"data": [
{
"success": true,
"data": {
"msg_id": 23468710,
"phone": 447700900123,
"channel": "whatsapp",
"status": "QUEUED",
"id": 100500
}
}
]
}