# Confirm the caller-ID verification code

Confirms the caller-ID verification code.

```http
POST https://api.pozy.ai/v1/phone-numbers/{id}/whatsapp/caller-id-verification/verify
```

- Area: WhatsApp / WhatsApp Calling
- Auth: Authorization: Bearer pz_live_...

## Path parameters

- `id` (string, required)

## Request body

Content type: `application/json`

- `code`, string, required: 4 to 10 characters

## Example request

```bash
curl -X POST "https://api.pozy.ai/v1/phone-numbers/6bfebd43ddc270f6d2c56fc5/whatsapp/caller-id-verification/verify" \
  -H "Authorization: Bearer $POZY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "code": "string"
}'
```

```ts
const res = await fetch("https://api.pozy.ai/v1/phone-numbers/6bfebd43ddc270f6d2c56fc5/whatsapp/caller-id-verification/verify", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.POZY_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    code: "string"
  }),
});
const data = await res.json();
if (!res.ok) throw new Error(data?.error ?? `Request failed with status ${res.status}`);
console.log(data);
```

```python
import os
import requests

resp = requests.post(
    "https://api.pozy.ai/v1/phone-numbers/6bfebd43ddc270f6d2c56fc5/whatsapp/caller-id-verification/verify",
    headers={"Authorization": f"Bearer {os.environ['POZY_API_KEY']}"},
    json={
        "code": "string",
    },
    timeout=30,
)
resp.raise_for_status()
print(resp.json())
```

## Response 200

- `verified`, boolean

```json
{
  "verified": true
}
```
