Overview
Control whether the DNC (Do Not Call) feature is active for your organization. When enabled, the system will respect DNC entries and prevent calling numbers in the list. When disabled, DNC checks are bypassed.
Prerequisites
- Bearer token for authenticated workspace access
- Organization membership (automatically determined from your user account)
Request
Bearer token for the authenticated workspace account.
Set to true to enable DNC functionality, or false to disable it.
curl --location '{{baseUrl}}/api/dnc/enable-disable' \
--header 'Authorization: Bearer {{authToken}}' \
--header 'Content-Type: application/json' \
--data '{
"enable": true
}'
Response
{
"message": "DNC setting updated successfully",
"status": true,
"code": 200,
"errorMessage": ""
}
Success message confirming the DNC setting was updated.
Indicates whether the operation was successful.
HTTP status code (200 for success).
Error Handling
- 400 Bad Request – Missing
enable field or enable is not a boolean value.
- 404 Not Found – No users found for this organization.
- 500 Internal Server Error – Server error while updating the DNC setting.
When DNC is enabled:
- The system checks the DNC list before making outbound calls
- Numbers in the DNC list will be skipped automatically
- This helps maintain compliance and respect customer preferences
When DNC is disabled:
- DNC checks are bypassed
- All numbers, including those in the DNC list, may be called
- Use with caution to ensure compliance with regulations
Bearer token authentication for workspace access
DNC setting updated successfully