internal_dnc tool manages your organization’s private Do Not Call list. Use it to add numbers when contacts request no further calls, or remove numbers when appropriate.
Parameters
Phone numbers in 10-digit North American format (e.g.,
"8663625478").Action to perform:
add- Add numbers to Internal DNC listremove- Remove numbers from Internal DNC liststatus- Check if numbers are on the list
API key. Only required if not provided via the
x-dncscrub-api-key HTTP header.Project ID to scope the Internal DNC list. Useful for multi-client or multi-campaign setups.
Response
Whether the API call succeeded.
Array of results for each phone number.
Machine-readable error code (when failed).
Human-readable error description (when failed).
Error Codes
| Code | Description |
|---|---|
MISSING_API_KEY | No API key provided in header or parameter |
INVALID_API_KEY | The API key is invalid or unauthorized |
API_ERROR | DNCScrub API returned an error |
MISSING_INPUT | Required parameters are missing |
INVALID_PHONE | One or more phone numbers are invalid |
Examples
- Add Request
- Add Response
- Remove Request
- Status Request
Usage Notes
- Adding a number that already exists has no effect (idempotent)
- Removing a number that doesn’t exist has no effect
- Use
projIdto maintain separate Internal DNC lists per project or client - Phone numbers must be exactly 10 digits without formatting