Introduction Getting started SMS Promotional - Large campaigns Transactional - Basic Transactional (Alerts) - Virtual Number Route Transactional (Alerts) - Priority Routing Transactional (OTPs & Alerts) - Special route International route to Nigeria International route to Other Countries SMS DLR SMS DLR Webhooks Voice Voice OTP Voice Broadcasts Voice DLR Units Transfer Units to Sub-Account Transfer Units to Other Account Check Units Balance Sender IDs Register Sender IDs Check Sender ID status Categories Add Customer Remove Customer Virtual Number Inbox webhook Carrier Billing Run USSD Query Run Shortcode Query Query Status Tools Create Sub-Account Check DND Status Check Service Status 3rd-party integrations ZOHO
DND Checker The API is used when you want to programatically get the DND status of a phone number.
💡 USAGE There is no limit to how many times you can call this API. You can only verify a maximum of 1 phone number per transaction.
PHP code
  // Your variables

  $response = httpPost("",array("key"=>"$key","phone"=>"$phone"));

  function httpPost($url, $data){
      $curl = curl_init($url);
      curl_setopt($curl, CURLOPT_POST, true);
      curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($data));
      curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
      $response = curl_exec($curl);

      echo $response;
Parameters Example Description
Key * XXXXX-XXXX-XXXXX This can be found in the Developers page of your dashboard. The key authorizes the transaction.
Phone * XXXXXXXXXX This is the phone number whose DND status is to be confirmed.
Your transaction response will appear in JSON format as shown below.
Successful - DND
{'phone': '0701XXXXXXXX', 'status': 'DND', 'charged': '0.2'}
Successful - NON-DND
{'phone': '0701XXXXXXXX', 'status': 'NON-DND', 'charged': '0.2'}
{'status': 'ERROR - Reason for error'}