List all PhoneNumbers

Parameters


Id optional

A filter on the list based on the specific Id value of phone numbers. Pass multiple Id values as a comma-separated list to return a list of only those PhoneNumbers objects.


LastDateAssigned optional

A filter on the list based on the LastDateAssigned field within a PhoneNumbers. Submit a time and date in ISO 8601 format to return phone numbers that were last assigned on the specified date.


LastDateReleased optional

A filter on the list based on the LastDateReleased field within a PhoneNumbers. Submit a time and date in ISO 8601 format to return phone numbers that were last released on the specified date.


Number optional

A filter on the list based on the actual Number value—the phone numbers themselves. Pass multiple Number values as a comma-separated list to return a list of only those PhoneNumbers objects.

Returns


Returns an array of phone number objects up to a limit dictated by @pagesize. Each entry in the array is a separate phone number object. If no phone number objects meet the criteria, the resulting array will be empty. This request should never return an error.

Example Request


curl 'https://api.impact.com/Advertisers/<AccountSID>/PhoneNumbers' \
  -X GET \
  -u '<accountSID>:<AuthToken>' \
  -H 'Accept: application/json'

Example Response


{
  "@page": "1",
    ...
  "PhoneNumbers": [
    {
      "Id": "01",
      "Country": "US",
      "Number": "5558675309",
      "InternationalNumber": "+15558675309",
      "DateCreated": "",
      "LastDateAssigned": "2010-06-18T14:28:03-07:00",
      "LastDateReleased": "2018-08-06T14:32:28-07:00",
      "Uri": "/Advertisers/<AccountSID>/PhoneNumbers/01"
    }
    ...
  ]
}