# Submit KYC

Submits a KYC.

```http
POST https://api.pozy.ai/v1/phone-numbers/kyc
```

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

## Request body

Content type: `application/json`

- `profileId`, string, required
- `country`, string, required
- `submissionId`, string
- `quantity`, integer: Default `1`. 1 to 5
- `reuse`, boolean
- `reuseOptionId`, string
- `reuseFrom`, string
- `areaCode`, string: Matches `^\d{1,4}$`
- `phoneNumber`, string: Matches `^\+[1-9]\d{6,14}$`
- `preOrder`, boolean
- `endUserFirstName`, string
- `endUserLastName`, string
- `values`, map of string
- `documents`, array of object
  - one of: Option 1
    - `requirementId`, string, required
    - `filename`, string, required
    - `base64`, string, required
  - one of: Option 2
    - `requirementId`, string, required
    - `documentId`, string, required
    - `issuedAt`, string (date)
- `address`, object
  - `requirementId`, string
  - `country_code`, string
  - `business_name`, string
  - `first_name`, string
  - `last_name`, string
  - `street_address`, string
  - `extended_address`, string
  - `locality`, string
  - `administrative_area`, string
  - `postal_code`, string

## Example request

```bash
curl -X POST "https://api.pozy.ai/v1/phone-numbers/kyc" \
  -H "Authorization: Bearer $POZY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "profileId": "6a0b6573846efc28aaa9a3ff",
  "country": "US"
}'
```

```ts
const res = await fetch("https://api.pozy.ai/v1/phone-numbers/kyc", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.POZY_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    profileId: "6a0b6573846efc28aaa9a3ff",
    country: "US"
  }),
});
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/kyc",
    headers={"Authorization": f"Bearer {os.environ['POZY_API_KEY']}"},
    json={
        "profileId": "6a0b6573846efc28aaa9a3ff",
        "country": "US",
    },
    timeout=30,
)
resp.raise_for_status()
print(resp.json())
```

## Response 200

- `status`, string: One of `kyc_submitted`, `kyc_reused`, `kyc_already_submitted`
- `preOrder`, boolean
- `phoneNumber`, object
  - `id`, string
  - `status`, string
  - `country`, string
- `numbers`, array of object
  - `id`, string
  - `status`, string
  - `phoneNumber`, string
  - `country`, string

```json
{
  "status": "kyc_submitted",
  "preOrder": true,
  "phoneNumber": {
    "id": "6bfebd43ddc270f6d2c56fc5",
    "status": "active",
    "country": "US"
  },
  "numbers": [
    {
      "id": "6bfebd43ddc270f6d2c56fc5",
      "status": "active",
      "phoneNumber": "+14155550123",
      "country": "US"
    }
  ]
}
```
