Client sign in

DNCR API documentation

Check UAE mobile numbers against the Do Not Call Registry before your team calls them.

Check a number

POST https://api.dotell.ae/v1/dncr/check with header Authorization: Bearer YOUR_API_KEY and a JSON body.

curl -X POST https://api.dotell.ae/v1/dncr/check \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"number":"0501234567"}'

Accepted number formats: 0501234567, 501234567, +971501234567, 00971501234567. Only UAE mobile numbers are supported.

Responses

DND registered on the Do Not Call Registry. Do not call it for marketing.

{
  "ok": true,
  "status": "DND",
  "dnd": true,
  "code": 1,
  "number": "+971501234567",
  "message": "This number is registered on the UAE
              Do Not Call Registry. ...",
  "request_id": "2f8c...",
  "usage": { "quota": 2000, "used": 15,
             "remaining": 1985, ... }
}

Non-DND not registered on the Do Not Call Registry.

{
  "ok": true,
  "status": "NON_DND",
  "dnd": false,
  "code": 0,
  "number": "+971501234568",
  "request_id": "9a1d...",
  "usage": { "quota": 2000, "used": 16,
             "remaining": 1984, ... }
}

Only completed lookups are counted. Every response includes your current usage.

Errors

HTTPerrorMeaningCounted
400invalid_numberNot a UAE mobile numberNo
401unauthorizedMissing or invalid API keyNo
402quota_exhaustedYour lookup allowance is used upNo
403package_expiredYour package period has endedNo
429rate_limitedToo many requests per second; retry shortlyNo
502lookup_unavailableThe registry lookup did not complete; retryNo

Check your balance

curl https://api.dotell.ae/v1/usage -H "Authorization: Bearer YOUR_API_KEY"

Code examples

Python

import requests
r = requests.post("https://api.dotell.ae/v1/dncr/check",
                  headers={"Authorization": "Bearer YOUR_API_KEY"},
                  json={"number": "0501234567"}, timeout=20)
data = r.json()
if data.get("ok") and data["dnd"]:
    print("DND: do not call for marketing")

Node.js

const r = await fetch("https://api.dotell.ae/v1/dncr/check", {
  method: "POST",
  headers: { "Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json" },
  body: JSON.stringify({ number: "0501234567" }),
});
const data = await r.json();

PHP

$ch = curl_init("https://api.dotell.ae/v1/dncr/check");
curl_setopt_array($ch, [CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true,
  CURLOPT_HTTPHEADER => ["Authorization: Bearer YOUR_API_KEY", "Content-Type: application/json"],
  CURLOPT_POSTFIELDS => json_encode(["number" => "0501234567"])]);
$data = json_decode(curl_exec($ch), true);

Test keys

Keys starting dk_test_ never use your allowance. They return fixed answers: numbers ending in an odd digit return DND, even digits return Non-DND, so you can build and test your integration safely.

Keep live keys on your server only. Never place them in websites, mobile apps or code repositories.