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.Yes
auth_usernameStringAuthentication username.NoNone.
auth_passwordStringAuthentication password.NoNone.
classIntegerID of number class to get available numbers for. 0 for any.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.

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

http://enswitch.example.com/api/json/numbers/available/list/?ingroup=123

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

Change history

VersionChanges
3.13Function added.