---
title: "Get DNC"
method: GET
path: "/{sub_domain}/api/dnc/{id}"
tags: ["DNCs"]
---

# Get DNC

`GET /{sub_domain}/api/dnc/{id}`

## Request

- Base URL: `https://api.commpeak.com/dialer`
- URL: `https://api.commpeak.com/dialer/{sub_domain}/api/dnc/{id}`
- Auth: API key in header `Authorization`

Retrieve a single Do Not Call (DNC) entry by its ID.

**When to use.** Drill down to the full detail of one DNC entry, for example from a list row. To search by phone number instead, use `GET /dnc/phone/{phone}/{country_iso}`.

**Parameters.** `id` (path): the ID of the DNC entry to look up. Returns an error if no entry with that ID exists.

**Returns.** `{ "dnc": [ <entry> ] }`, a single-element array that matches the list endpoint's envelope.

## Path parameters

- `id` integer, required: DNC ID.
- `sub_domain` string, required: Dialer Name (subdomain)

## Response `200`

Successful Response

- DNCResponse
  - `dnc` DNCItem[], required
    - `id` integer, nullable: DNC ID.
    - `phone` string, nullable: DNC phone number.
    - `lead_id` integer, nullable: Lead ID that the DNC was created from.
    - `campaign_lead_id` integer, nullable: Campaign Lead ID that the DNC was created from, can be null.
    - `approved` integer, nullable: Whether the DNC is approved: 0 = unapproved, 1 = approved.
    - `approved_by_user_id` integer, nullable: ID of the user who approved the DNC.
    - `permanent` integer, nullable: Whether the DNC is permanent: 0 = no, 1 = yes.
    - `first_name` string, nullable: Lead's first name.
    - `last_name` string, nullable: Lead's last name.
    - `username` string, nullable: Username of the user who approved the DNC.
    - `phone_normalized` string, nullable: Lead's phone number normalized.

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/commpeak/apis/commpeak-dialer-api.md) - [All operations](https://skmtc.dev/commpeak/apis/commpeak-dialer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/commpeak/apis/commpeak-dialer-api/revisions/18c5edc07544?raw)
