curl --location --request DELETE 'https://api.weya.live/backend/api/dnc/delete/64e5f12345abcdef98765432' \
--header 'x-api-key: YOUR_API_KEY'
{
"status": true,
"code": 200,
"message": "DNC record deleted successfully",
"errorMessage": null,
"data": []
}
DNC (Do Not Call)
Remove from DNC List
Remove a phone number from your organization’s Do Not Call (DNC) list.
DELETE
/
api
/
dnc
/
delete
/
{id}
curl --location --request DELETE 'https://api.weya.live/backend/api/dnc/delete/64e5f12345abcdef98765432' \
--header 'x-api-key: YOUR_API_KEY'
{
"status": true,
"code": 200,
"message": "DNC record deleted successfully",
"errorMessage": null,
"data": []
}
Overview
Permanently remove a phone number from your organization’s Do Not Call list. Once removed, the number can be called again in future campaigns. You can only delete DNC entries that belong to your organization.Prerequisites
- An API key for your workspace
- Valid DNC record ID that belongs to your organization
Request
ID of the DNC entry to delete: the
_id from Get DNC List.curl --location --request DELETE 'https://api.weya.live/backend/api/dnc/delete/64e5f12345abcdef98765432' \
--header 'x-api-key: YOUR_API_KEY'
Response
{
"status": true,
"code": 200,
"message": "DNC record deleted successfully",
"errorMessage": null,
"data": []
}
Error Handling
Errors returnstatus: false, with the reason in errorMessage.
- 400 Bad Request –
idisn’t a valid ID. - 401 Unauthorized – Missing or invalid API key.
- 404 Not Found –
DNC record not found or you are not authorized to delete it: no entry with this ID exists in your organization. - 500 Internal Server Error – Unexpected server error.
This action is permanent. Once a DNC record is deleted, the phone number can be called again in future campaigns. Make sure you have the correct DNC record ID before deleting.
Was this page helpful?

