List numbers
Operation
numberList
Get a detailed list of the phone numbers that you currently own on Phaxio.
Parameters
Name | Type | Description |
---|---|---|
area_code |
integer | An area code you'd like to filter by. |
number |
string | A phone number you'd like to retrieve |
api_key | string | Your api key |
api_secret | string | Your api secret |
Response
A JSON object with success
, message
, and data
attributes.
The data attribute holds an array of Phone Number Objects.
Sample Call
curl https://api.phaxio.com/v1/numberList \
-F 'area_code=847' \
-F 'api_key=API_KEY' \
-F 'api_secret=API_SECRET'
Sample Response
{
"success":true,
"message":"Retrieved user phone numbers successfully",
"data":[{
"number":"8475551234",
"city":"Northbrook",
"state":"Illinois",
"cost":200,
"last_billed_at":"2013-11-12 11:31:06",
"provisioned_at":"2013-11-12 11:31:06"
},
{
"number":"8476661235",
"city":"Northbrook",
"state":"Illinois",
"cost":200,
"last_billed_at":"2013-11-12 11:31:06",
"provisioned_at":"2013-11-12 11:31:06"
}]
}