Do-not-call list
Numbers never to call or text
List numbers on the do-not-call list
get
/v1/dncPermission
dnc:readQuery parameters
limitinteger | Up to 2001–200 · default 50 |
offsetinteger | default 0 |
searchstring | max 100 chars |
Responses
200OK400Invalid request (validation_error, bad_request)401Missing or invalid API key402Your plan does not include this (plan_required, plan_limit, subscription_inactive)403The key lacks the permission (insufficient_scope)404Not found409Not 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/dncPermission
dnc:writeHeaders
Idempotency-Keystring | Retry safely: the first response is replayed for 24 hoursmax 200 chars |
Request body
phonerequiredstring | 3–30 chars |
reasonstring | null |
Responses
201OK400Invalid request (validation_error, bad_request)401Missing or invalid API key402Your plan does not include this (plan_required, plan_limit, subscription_inactive)403The key lacks the permission (insufficient_scope)404Not found409Not 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/checkPermission
dnc:readQuery parameters
phonerequiredstring | 3–30 chars |
Responses
200OK400Invalid request (validation_error, bad_request)401Missing or invalid API key402Your plan does not include this (plan_required, plan_limit, subscription_inactive)403The key lacks the permission (insufficient_scope)404Not found409Not 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:writePath parameters
phonerequiredstring |
Responses
204Done400Invalid request (validation_error, bad_request)401Missing or invalid API key402Your plan does not include this (plan_required, plan_limit, subscription_inactive)403The key lacks the permission (insufficient_scope)404Not found409Not 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"