post
https://{subdomain}.td.commpeak.com/api/dnc
Add a phone number to your Do Not Call (DNC) list.
When to use. Block a single number from being dialed. To approve or unapprove many numbers at once, or to create several in one call, use POST /dnc/mass.
Request body.
phone(string, required): the phone number to add.approved(integer, required): approval status, 0 for unapproved or 1 for approved.country_iso(string): the two-letter country code (for exampleUS) used to normalize the number.permanent(integer): whether the entry is permanent, 0 for no or 1 for yes. Defaults to 0 when omitted.
Returns. { "dnc": [ <entry> ] } with the created entry, and HTTP 201. Returns an error if an entry with the same phone number already exists.
Example. { "phone": "12125551234", "country_iso": "US", "approved": 1, "permanent": 0 }
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…