DNC (Do Not Call)
Enable/Disable DNC
Enable or disable the Do Not Call (DNC) functionality for your organization.
POST
Documentation Index
Fetch the complete documentation index at: https://docs.weya.ai/llms.txt
Use this file to discover all available pages before exploring further.
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.Response
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
enablefield orenableis 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
- DNC checks are bypassed
- All numbers, including those in the DNC list, may be called
- Use with caution to ensure compliance with regulations

