Skip to content

Add a number to Do-Not-Call

Do-Not-Call
POSThttps://api.dcdial.com/api/type=add_dnc
Changes dataToken

Adds a phone number to your Do-Not-Call list, so campaigns stop dialing it. Pass campaign_id to block it for one campaign only.

Parameters

Send as application/x-www-form-urlencoded.

  • typestringrequired

    Selects the operation. Always add_dnc for this endpoint.

  • tokenstringrequired

    Your API token from Log in. See Authentication.

  • phone_numberstringrequired

    Phone number to block.

    Example 5550100123
  • campaign_idintegeroptional

    Block the number for this campaign only. Leave it out to block the number for all campaigns.

    Example 1024

Notes

If the number is already on the list, the response is success: 0 with the error DNC already exist.

Terminal window
curl https://api.dcdial.com/api/ \
-d type=add_dnc \
-d token="$DCDIAL_TOKEN" \
-d phone_number=5550100123
Response · 200 OK
{
"response": {
"success": 1,
"error": ""
}
}

Try it

Environment