# Check portability

Checks a portability without changing anything.

```http
POST https://api.pozy.ai/v1/phone-numbers/port-in/check
```

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

## Request body

Content type: `application/json`

- `phoneNumbers`, array of string, required: At least 1 item. Up to 50 items
- `claimLinks`, boolean

## Example request

```bash
curl -X POST "https://api.pozy.ai/v1/phone-numbers/port-in/check" \
  -H "Authorization: Bearer $POZY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "phoneNumbers": [
    "+14155550123"
  ]
}'
```

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

## Response 200

- `results`, array of object
  - `phoneNumber`, string
  - `portable`, boolean
  - `fastPortable`, boolean
  - `messagingCapable`, boolean: Can be null
  - `lineType`, string: Can be null
  - `carrierName`, string: Can be null
  - `countryCode`, string: Can be null
  - `phoneNumberType`, string: Can be null
  - `notPortableReason`, string: Can be null
  - `claimId`, string
  - `claimUrl`, string

```json
{
  "results": [
    {
      "phoneNumber": "+14155550123",
      "portable": true,
      "fastPortable": true,
      "messagingCapable": true,
      "lineType": "string",
      "carrierName": "Acme",
      "countryCode": "US",
      "phoneNumberType": "+14155550123",
      "notPortableReason": "string",
      "claimId": "64d7462a13b28690b007b884",
      "claimUrl": "https://pozy.ai/media/example-1.jpg"
    }
  ]
}
```
