# Phone number inventory

> One page of the ZeroSettle iMessage API reference. The whole reference: https://portal.zerosettle.io/docs.md

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
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
{"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://portal.zerosettle.io/docs/your-imessage-number#add-a-line) request returns
`409 no_capacity`, poll again before accepting the next subscription.
