logo.png numbers/available/list JSON API function

JSON API » numbers » numbers/available/list

Gets a selection of numbers available to purchase.

Input parameters

Authentication is optional.

NameTypeDescriptionRequiredDefault value
ingroupIntegerID of inbound group to get available numbers for. See the number groups and classes table.Yes
auth_usernameStringAuthentication username.NoNone.
auth_passwordStringAuthentication password.NoNone.
classIntegerID of number class to get available numbers for. 0 for any. See the number groups and classes table.No0
countIntegerHow many numbers to return.No10
customerIntegerPrefer numbers previously owned by this customer. Only used if authentication is supplied.NoCustomer of authentication user.
preferredStringPrefer this number if available. Empty string for none.NoEmpty string.

Number groups and classes

Select the ingroup for the number type, then use its Normal, Special, or Gold class ID. Class 0 means any class. Empty cells mean no class is listed.

Responses

CodeDescription
200Success.
400Invalid input parameters specified. Check the key and message fields for more details.

Data returned

An array of numbers.

Example: With required parameters

https://www.015pbx.net/api/json/numbers/available/list/?ingroup=123

{ "responses":[ { "code":"200", "key":"", "message":"OK" } ], "data":[ "2125551234", "2125551235", ... ] ] }