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/inventorycurl --fail -sS -H "Authorization: Bearer $TOKEN" \
https://portal.zerosettle.io/api/imessage/lines/inventoryA successful request returns HTTP 200. The integer available is the full count for your account, including when more than five numbers are available.
{"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 request returns 409 no_capacity, poll again before accepting the next subscription.