curl --location 'https://api.weya.live/backend/api/dnc/list?page=1&limit=10&search=2125551234' \
--header 'x-api-key: YOUR_API_KEY'
{
"status": true,
"code": 200,
"message": "DNC list fetched successfully",
"errorMessage": null,
"data": {
"dncList": [
{
"_id": "64e5f12345abcdef98765432",
"phoneNumber": "+12125551234",
"type": "Call",
"orgId": "64e5f12345abcdef12345678",
"batchId": "64e5f12345abcdef87654321",
"requestUUID": "550e8400-e29b-41d4-a716-446655440000",
"createdAt": "2025-05-15T10:30:00.000Z"
}
],
"pagination": {
"total": 42,
"page": 1,
"limit": 10,
"totalPages": 5,
"hasNextPage": true,
"hasPrevPage": false
}
}
}
DNC (Do Not Call)
Get DNC List
Retrieve a paginated list of the phone numbers on your organization’s Do Not Call (DNC) list.
GET
/
api
/
dnc
/
list
curl --location 'https://api.weya.live/backend/api/dnc/list?page=1&limit=10&search=2125551234' \
--header 'x-api-key: YOUR_API_KEY'
{
"status": true,
"code": 200,
"message": "DNC list fetched successfully",
"errorMessage": null,
"data": {
"dncList": [
{
"_id": "64e5f12345abcdef98765432",
"phoneNumber": "+12125551234",
"type": "Call",
"orgId": "64e5f12345abcdef12345678",
"batchId": "64e5f12345abcdef87654321",
"requestUUID": "550e8400-e29b-41d4-a716-446655440000",
"createdAt": "2025-05-15T10:30:00.000Z"
}
],
"pagination": {
"total": 42,
"page": 1,
"limit": 10,
"totalPages": 5,
"hasNextPage": true,
"hasPrevPage": false
}
}
}
Overview
List the phone numbers on your organization’s Do Not Call list, newest first. The list covers the whole organization, not only entries added by the user who owns the API key.Prerequisites
- An API key for your workspace
Request
Case-insensitive text matched against the phone number,
type and requestUUID. Partial matches are returned. The text is read as a regular expression, so leave out a leading + when searching for a number.curl --location 'https://api.weya.live/backend/api/dnc/list?page=1&limit=10&search=2125551234' \
--header 'x-api-key: YOUR_API_KEY'
Response
{
"status": true,
"code": 200,
"message": "DNC list fetched successfully",
"errorMessage": null,
"data": {
"dncList": [
{
"_id": "64e5f12345abcdef98765432",
"phoneNumber": "+12125551234",
"type": "Call",
"orgId": "64e5f12345abcdef12345678",
"batchId": "64e5f12345abcdef87654321",
"requestUUID": "550e8400-e29b-41d4-a716-446655440000",
"createdAt": "2025-05-15T10:30:00.000Z"
}
],
"pagination": {
"total": 42,
"page": 1,
"limit": 10,
"totalPages": 5,
"hasNextPage": true,
"hasPrevPage": false
}
}
}
DNC entry ID. Use it to remove the entry with Remove from DNC List.
Error Handling
- 401 Unauthorized – Missing or invalid API key.
- 500 Internal Server Error – Unexpected server error.
Was this page helpful?

