---
title: "List DNC entries for the organization"
method: GET
path: "/dnc"
tags: ["DNC"]
---

# List DNC entries for the organization

`GET /dnc`

Lists Do-Not-Call entries for the caller's organization with pagination, search,
and sort. Optionally scope to a single agent via `agentId`.

Each entry records a phone number that was flagged (via call outcome or manual
upload) as not-to-be-called for either the org or a specific agent.

## Query parameters

- `agentId` string
- `search` string
- `sortField` 'createdAt' | 'phoneNumber'
- `sortOrder` 'asc' | 'desc'
- `page` string
- `offset` string

## Response `200`

Paginated DNC entries.

- object
  - `status` boolean
  - `data` object
    - `entries` object[]
      - `id` string
      - `agentId` string
      - `orgId` string
      - `phoneNumber` string
      - `source` string
      - `detectedInCallId` string, nullable
      - `createdAt` string, date-time
      - `updatedAt` string, date-time
    - `pagination` object
      - `page` integer
      - `offset` integer
      - `total` integer
      - `totalPages` integer
      - `hasMore` boolean

## Other responses

- `400` — Bad request — validation failed or required field missing.
- `401` — Unauthorized access
- `404` — Resource not found. The referenced ID does not exist or does not belong to the caller's organization.
- `500` — Internal server error

---

[API](https://skmtc.net/smallest-inc/apis/agent-management-api.md) · [All operations](https://skmtc.net/smallest-inc/apis/agent-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/smallest-inc/agent-management-api/revisions/c2d0eb64b01a/schema)
