Overview
Fetch all phone numbers that have been added to your organization’s Do Not Call list. Results are paginated and can be filtered by search term. The list is automatically scoped to your organization based on your authentication token.
Prerequisites
- Bearer token for authenticated workspace access
- Organization membership (automatically determined from your user account)
Request
Bearer token for the authenticated workspace account.
Page number for pagination. Minimum value is 1.
Number of DNC entries to return per page. Default is 10.
Optional search term to filter results. Searches across phone number, type, and requestUUID fields (case-insensitive).
curl --location '{{baseUrl}}/api/dnc/list?page=1&limit=10&search=123' \
--header 'Authorization: Bearer {{authToken}}'
Response
{
"message": "DNC list fetched successfully",
"status": true,
"code": 200,
"errorMessage": "",
"data": {
"dncList": [
{
"_id": "64e5f12345abcdef98765432",
"phoneNumber": "12125551234",
"type": "customer_request",
"orgId": "64e5f12345abcdef12345678",
"batchId": "64e5f12345abcdef87654321",
"requestUUID": "550e8400-e29b-41d4-a716-446655440000",
"callRecording": "https://example.com/recording.mp3",
"transcription": "Customer requested to be removed from calling list",
"createdAt": "2025-05-15T10:30:00.000Z"
}
],
"pagination": {
"total": 42,
"page": 1,
"limit": 10,
"totalPages": 5
}
}
}
Array of DNC entries matching the query parameters.
Unique identifier for the DNC record.
Phone number in the DNC list (with country code).
Optional classification type for the DNC entry.
Organization ID that owns this DNC entry.
Batch ID associated with the call that triggered the DNC entry.
UUID of the specific call record from the batch.
URL to the call recording (if available).
Call transcription text (if available).
ISO 8601 timestamp when the DNC entry was created.
Pagination metadata for the current query.
Total number of DNC entries matching the search criteria.
Number of entries per page.
Total number of pages available.
Error Handling
- 500 Internal Server Error – Server error while fetching the DNC list.
Use the search parameter to quickly find specific phone numbers or filter by type. The search is case-insensitive and matches partial strings.
Bearer token authentication for workspace access
DNC list fetched successfully