v1
latestOpenAPI 3.0.32026-07-24156161.2 MBDNC
Create DNC
The Create DNC endpoint enables you to create a Do Not Call (DNC) entry. You should add the following fields to the body:
Request Body
-
phone (string, required): The phone number to be added to the DNC list.
-
country_iso (string, required): The country ISO code for the phone number.
-
approved (integer, required): Indicates if the entry is approved.
-
permanent (integer, required): Indicates if the entry is permanent.
post/dnc
Request body
Example request
{
"approved": "1",
"country_iso": "US",
"permanent": "1",
"phone": "123123123"
}Response
Successful operation
Example response
{
"dnc": [
{
"approved": "1",
"approved_by_user_id": "1",
"campaign_lead_id": null,
"first_name": null,
"id": "13",
"last_name": null,
"lead_id": null,
"lead_phone": null,
"lead_phone2": null,
"permanent": "1",
"phone": "******51235",
"phone_normalized": null,
"phone_normalized2": null,
"username": "system"
}
]
}