| Requires any of the roles: | SystemAdministrator, Manager, Customer |
| GET | /endpoints/phone-numbers/search |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| AccountId | query | string | No | The account you are searching for |
| AreaCode | query | string | No | The area code |
| CountryCode | query | string | No | The country code you are searching for |
| PostalCode | query | string | No | The postal code you are searching for |
| Region | query | string | No | The state/province/region code (e.g. CA, NY) |
| Distance | query | int? | No | The distance from the specified postal code (default is 100) |
| IsFaxNumber | query | bool | No | Search for fax numbers |
| Contains | query | string | No | Contains specific digits |
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /endpoints/phone-numbers/search HTTP/1.1 Host: evovoice.io Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<ArrayOfPhoneNumberInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Voice.Api.Endpoints">
<PhoneNumberInfo>
<PhoneNumber>String</PhoneNumber>
</PhoneNumberInfo>
</ArrayOfPhoneNumberInfo>