# Confirm the authorizer's code

Confirms the authorizer's code.

```http
POST https://api.pozy.ai/v1/branded-calling/identities/{id}/verify-email/confirm
```

- Area: Phone & voice / Branded Calling
- Auth: Authorization: Bearer pz_live_...

## Path parameters

- `id` (string, required)

## Request body

Content type: `application/json`

- `code`, string, required: Matches `^[0-9]{6}$`

## Example request

```bash
curl -X POST "https://api.pozy.ai/v1/branded-calling/identities/6bfebd43ddc270f6d2c56fc5/verify-email/confirm" \
  -H "Authorization: Bearer $POZY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "code": "string"
}'
```

```ts
const res = await fetch("https://api.pozy.ai/v1/branded-calling/identities/6bfebd43ddc270f6d2c56fc5/verify-email/confirm", {
  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/branded-calling/identities/6bfebd43ddc270f6d2c56fc5/verify-email/confirm",
    headers={"Authorization": f"Bearer {os.environ['POZY_API_KEY']}"},
    json={
        "code": "string",
    },
    timeout=30,
)
resp.raise_for_status()
print(resp.json())
```

## Response 200

- `id`, string
- `enterpriseId`, string
- `displayName`, string: Up to 35 characters
- `callReasons`, array of string: Each item: up to 64 characters
- `callReasonsPreApproved`, boolean
- `logoUrl`, string: Can be null
- `authorizer`, object
  - `name`, string
  - `email`, string (email)
- `references`, object
  - `business`, array of object, required: At least 2 items. Up to 2 items
    - `fullName`, string, required: Up to 255 characters
    - `jobTitle`, string: Up to 255 characters
    - `organization`, string: Up to 255 characters
    - `relationshipToRegistrant`, string: Up to 255 characters
    - `phoneNumber`, string, required
    - `email`, string (email), required
    - `timezone`, string, required
  - `financial`, object, required
    - `fullName`, string, required: Up to 255 characters
    - `jobTitle`, string: Up to 255 characters
    - `organization`, string: Up to 255 characters
    - `relationshipToRegistrant`, string: Up to 255 characters
    - `phoneNumber`, string, required
    - `email`, string (email), required
    - `timezone`, string, required
- `status`, string: One of `requested`, `changes_requested`, `rejected`, `pending_email_verification`, `in_review`, `verified`, `suspended`, `expired`, `permanently_rejected`
- `rejectionReasons`, array of object
  - `code`, string
  - `title`, string
  - `detail`, string
  - `message`, string: Can be null
- `reviewNote`, string: Can be null
- `reviewRequest`, object: Can be null
  - `id`, string
  - `intro`, string
  - `points`, array of object
    - `id`, string
    - `title`, string
    - `detail`, string
    - `answer`, string: One of `text`, `link`, `file`, `link_or_file`
- `emailVerifiedAt`, string (date-time): Can be null
- `submittedAt`, string (date-time): Can be null
- `verifiedAt`, string (date-time): Can be null
- `expiringAt`, string (date-time): Can be null
- `numbers`, array of object
  - `phoneNumberId`, string
  - `phoneNumber`, string
  - `status`, string: One of `submitted`, `in_review`, `verified`, `unsuccessful`, `suspended`, `expired`, `permanently_rejected`
  - `rejectionReason`, object: Can be null
    - `code`, string
    - `title`, string
    - `detail`, string
    - `message`, string: Can be null
  - `verifiedAt`, string (date-time): Can be null
  - `addedAt`, string (date-time): Can be null
- `createdAt`, string (date-time): Can be null
- `updatedAt`, string (date-time): Can be null

```json
{
  "id": "6bfebd43ddc270f6d2c56fc5",
  "enterpriseId": "66496a86752378ad82057ff6",
  "displayName": "Acme",
  "callReasons": [
    "string"
  ],
  "callReasonsPreApproved": true,
  "logoUrl": "https://pozy.ai/media/example-1.jpg",
  "authorizer": {
    "name": "Acme",
    "email": "alex@example.com"
  },
  "references": {
    "business": [
      {
        "fullName": "Acme",
        "jobTitle": "string",
        "organization": "string",
        "relationshipToRegistrant": "string",
        "phoneNumber": "+14155550123",
        "email": "alex@example.com",
        "timezone": "America/New_York"
      }
    ],
    "financial": {
      "fullName": "Acme",
      "jobTitle": "string",
      "organization": "string",
      "relationshipToRegistrant": "string",
      "phoneNumber": "+14155550123",
      "email": "alex@example.com",
      "timezone": "America/New_York"
    }
  },
  "status": "requested",
  "rejectionReasons": [
    {
      "code": "string",
      "title": "Launch day",
      "detail": "string",
      "message": "Hello from Pozy"
    }
  ],
  "reviewNote": "string",
  "reviewRequest": {
    "id": "6bfebd43ddc270f6d2c56fc5",
    "intro": "string",
    "points": [
      {
        "id": "6bfebd43ddc270f6d2c56fc5",
        "title": "Launch day",
        "detail": "string",
        "answer": "text"
      }
    ]
  },
  "emailVerifiedAt": "2026-10-02T09:00:00.000Z",
  "submittedAt": "2026-10-02T09:00:00.000Z",
  "verifiedAt": "2026-10-02T09:00:00.000Z",
  "expiringAt": "2026-10-02T09:00:00.000Z",
  "numbers": [
    {
      "phoneNumberId": "698fba0989716df44adb771f",
      "phoneNumber": "+14155550123",
      "status": "submitted",
      "rejectionReason": {
        "code": "string",
        "title": "Launch day",
        "detail": "string",
        "message": "Hello from Pozy"
      },
      "verifiedAt": "2026-10-02T09:00:00.000Z",
      "addedAt": "2026-10-02T09:00:00.000Z"
    }
  ],
  "createdAt": "2026-10-02T09:00:00.000Z",
  "updatedAt": "2026-10-02T09:00:00.000Z"
}
```
