> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zerosettle.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Phone number inventory

Check how many additional phone numbers your account can reserve right now.
The account owner or a team member can poll this endpoint with their API key.

```
GET /api/imessage/lines/inventory
```

```bash theme={null}
curl --fail -sS -H "Authorization: Bearer $TOKEN" \
  https://portal.zerosettle.io/api/imessage/lines/inventory
```

A successful request returns HTTP 200. The integer `available` is the full
count for your account, including when more than five numbers are available.

```json theme={null}
{"available": 7}
```

## Pause and resume new subscriptions

If each signup needs one number, pause new subscriptions when `available`
reaches zero. Keep polling while paused and resume after a successful poll
returns at least one. If each signup needs several numbers, use that quantity
as the threshold.

If purchases are paused on your account, the inventory endpoint returns
`409 add_number_unavailable`. A failed poll leaves the current count unknown.

Another buyer can reserve a number between your poll and your purchase.
If the [add a line](https://docs.zerosettle.io/imessage/your-imessage-number.md#add-a-line) request returns
`409 no_capacity`, poll again before accepting the next subscription.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.