DialerDay Docs

Do-not-call list

Numbers never to call or text

List numbers on the do-not-call list

get/v1/dnc
Permission dnc:read

Query parameters

limit
integer
Up to 2001–200 · default 50
offset
integer
default 0
search
string
max 100 chars

Responses

  • 200OK
  • 400Invalid request (validation_error, bad_request)
  • 401Missing or invalid API key
  • 402Your plan does not include this (plan_required, plan_limit, subscription_inactive)
  • 403The key lacks the permission (insufficient_scope)
  • 404Not found
  • 409Not possible right now (e.g. the number is on the do-not-call list, quiet hours, opted out)
  • 429Rate limited: see the Retry-After header
curl https://api.dialerday.com/v1/dnc \
  -H "Authorization: Bearer $DIALERDAY_API_KEY"

Add a number to the do-not-call list

post/v1/dnc
Permission dnc:write

Headers

Idempotency-Key
string
Retry safely: the first response is replayed for 24 hoursmax 200 chars

Request body

phonerequired
string
3–30 chars
reason
string | null

Responses

  • 201OK
  • 400Invalid request (validation_error, bad_request)
  • 401Missing or invalid API key
  • 402Your plan does not include this (plan_required, plan_limit, subscription_inactive)
  • 403The key lacks the permission (insufficient_scope)
  • 404Not found
  • 409Not possible right now (e.g. the number is on the do-not-call list, quiet hours, opted out)
  • 429Rate limited: see the Retry-After header
curl -X POST https://api.dialerday.com/v1/dnc \
  -H "Authorization: Bearer $DIALERDAY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "phone": "+15551234567"
}'
Response · 201
{
  "ok": true
}

Check whether a number may be called and texted

get/v1/dnc/check
Permission dnc:read

Query parameters

phonerequired
string
3–30 chars

Responses

  • 200OK
  • 400Invalid request (validation_error, bad_request)
  • 401Missing or invalid API key
  • 402Your plan does not include this (plan_required, plan_limit, subscription_inactive)
  • 403The key lacks the permission (insufficient_scope)
  • 404Not found
  • 409Not possible right now (e.g. the number is on the do-not-call list, quiet hours, opted out)
  • 429Rate limited: see the Retry-After header
curl https://api.dialerday.com/v1/dnc/check \
  -H "Authorization: Bearer $DIALERDAY_API_KEY"
Response · 200
{
  "phone": "+15551234567",
  "on_dnc": false,
  "dnd": {
    "call": false,
    "sms": true
  }
}

Take a number off the do-not-call list

delete/v1/dnc/{phone}
Permission dnc:write

Path parameters

phonerequired
string

Responses

  • 204Done
  • 400Invalid request (validation_error, bad_request)
  • 401Missing or invalid API key
  • 402Your plan does not include this (plan_required, plan_limit, subscription_inactive)
  • 403The key lacks the permission (insufficient_scope)
  • 404Not found
  • 409Not possible right now (e.g. the number is on the do-not-call list, quiet hours, opted out)
  • 429Rate limited: see the Retry-After header
curl -X DELETE https://api.dialerday.com/v1/dnc/{phone} \
  -H "Authorization: Bearer $DIALERDAY_API_KEY"