# Retrieve a do-not-call entry

`GET https://api.morevoice.ai/v1/dnc/{phone}`

Returns the entry of one number on your do-not-call list: when it was added, how (`source`: the dashboard, an import, the API, or an opt-out during a call) and your note. `404` means the number is not on the list. To check a number against the national registry too, use `POST /v1/dnc/check`.

Authenticate with a secret API key: `Authorization: Bearer $MOREVOICE_API_KEY`.

Operation ID: `dnc_retrieve`.

## Parameters

### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `phone` | `string` | yes | The number (URL-encode the `+` as `%2B`). |

### Headers

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `MoreVoice-Version` | `string` | no | The API version to use for this request. Defaults to the version the API key is pinned to. |

## Responses

### 200 OK

OK Returns `DncEntry`.

| Field | Type | Description |
| --- | --- | --- |
| `object` | `"dnc_entry"` | — |
| `livemode` | `boolean` | `true` in live mode, `false` in test mode. |
| `phone` | `string` | The number, E.164. |
| `source` | `string` | How it was added: `manual`, `import`, `api`, `opt_out_tool` (asked the AI), `opt_out_phrase` or `opt_out_dtmf`. |
| `reason` | `string` | A free-text note. |
| `campaign_id` | `string \| null` | `cmp_…` ID. |
| `call_id` | `string \| null` | `call_…` ID. |
| `created` | `string` | An ISO-8601 timestamp in UTC. |

Example:

```json
{
  "call_id": null,
  "campaign_id": null,
  "created": "2026-11-03T09:14:22.000Z",
  "livemode": true,
  "object": "dnc_entry",
  "phone": "+972501234567",
  "reason": "Asked not to be called",
  "source": "api"
}
```

### 400 Bad Request

The request is invalid: a parameter is missing, malformed or unknown, or the version header is unknown. Returns `ErrorEnvelope`.

### 401 Unauthorized

No valid API key was sent. Returns `ErrorEnvelope`.

### 403 Forbidden

The key may not do this (a missing scope, a plan limit, or a compliance block). Returns `ErrorEnvelope`.

### 404 Not Found

No object with this ID (in the path or the body) exists in this organisation and mode. Returns `ErrorEnvelope`.

### 429 Too Many Requests

Too many requests, or no call capacity right now. Retry after the Retry-After delay. Returns `ErrorEnvelope`.

### 500 Internal Server Error

Something went wrong on MoreVoice's side. Retry with the same Idempotency-Key. Returns `ErrorEnvelope`.

## Code samples

**TypeScript**

```ts
import MoreVoice from "@morevoice/sdk";

const mv = new MoreVoice(); // MOREVOICE_API_KEY from the environment

const dncEntry = await mv.dnc.retrieve("+972501234567");
console.log(dncEntry);
```

**Python**

```python
from morevoice import MoreVoice

client = MoreVoice()  # MOREVOICE_API_KEY from the environment

dnc_entry = client.dnc.retrieve("+972501234567")
print(dnc_entry)
```

**cURL**

```sh
curl https://api.morevoice.ai/v1/dnc/%2B972501234567 \
  -H "Authorization: Bearer $MOREVOICE_API_KEY"
```
