# Retrieve a caller ID

`GET https://api.morevoice.ai/v1/caller_ids/{id}`

Returns the `CallerId` object. Answers `404` with the code `resource_missing` when nothing has this ID in this organisation and mode.

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

Operation ID: `caller_ids_retrieve`.

## Parameters

### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | yes | A caller id verification ID (`cid_…`). |

### 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 `CallerId`.

| Field | Type | Description |
| --- | --- | --- |
| `id` | `string` | The caller ID's ID. |
| `object` | `"caller_id"` | — |
| `livemode` | `boolean` | `true` in live mode, `false` in test mode. |
| `phone_number` | `string` | The number, in E.164. |
| `friendly_name` | `string \| null` | Your name for the number, or null. |
| `status` | `"pending" \| "verified" \| "failed"` | `pending`: our call is on its way, or waits for the code (10 minutes at most). `verified`: the number can be the `caller_id` of your calls and campaigns. `failed`: see `failure_reason`; start a new verification to try again. |
| `failure_reason` | `"wrong_code" \| "no_answer" \| "no_input" \| "expired" \| "call_failed" \| "superseded" \| null` | Why it failed: `wrong_code`, `no_answer` (the call was not answered), `no_input` (answered, nothing typed), `expired` (10 minutes passed), `call_failed` (we could not place the call), `superseded` (a newer verification of the number started). null unless `failed`. |
| `method` | `"call" \| "attestation"` | `call`: verified by our call. `attestation`: an administrator attested ownership in the dashboard (usable on your own SIP connections only, not on MoreVoice Telephony). |
| `verification_code` | `string \| null` | Only in the answer to POST /v1/caller_ids: the 6-digit code to show the person who will answer our call, who types it on the phone's keypad. null everywhere else (we keep only a hash of it). |
| `expires_at` | `string \| null` | While `pending`: when the code stops working. null otherwise. |
| `verified_at` | `string \| null` | When the number was verified, or null. |
| `created` | `string` | When the verification started. |

Example:

```json
{
  "created": "2026-11-23T10:01:58.000Z",
  "expires_at": null,
  "failure_reason": null,
  "friendly_name": "Head office",
  "id": "cid_5Xr8Tq2Lm4Nb7Vc1Zd9Ks3",
  "livemode": true,
  "method": "call",
  "object": "caller_id",
  "phone_number": "+97235550100",
  "status": "verified",
  "verification_code": null,
  "verified_at": "2026-11-23T10:02:41.000Z"
}
```

### 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 callerId = await mv.callerIds.retrieve("cid_7Hk2Lm9Qp");
console.log(callerId);
```

**Python**

```python
from morevoice import MoreVoice

client = MoreVoice()  # MOREVOICE_API_KEY from the environment

caller_id = client.caller_ids.retrieve("cid_7Hk2Lm9Qp")
print(caller_id)
```

**cURL**

```sh
curl https://api.morevoice.ai/v1/caller_ids/cid_7Hk2Lm9Qp \
  -H "Authorization: Bearer $MOREVOICE_API_KEY"
```
