Evo Voice

<back to all web services

SearchPhoneNumbers

Search for phone numbers

Requires Authentication
Requires any of the roles:SystemAdministrator, Manager, Customer
The following routes are available for this service:
GET/endpoints/phone-numbers/search
"use strict";
export class SearchPhoneNumbers {
    /** @param {{accountId?:string,areaCode?:string,countryCode?:string,postalCode?:string,distance?:number,isFaxNumber?:boolean,contains?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /**
     * @type {string}
     * @description The account you are searching for */
    accountId;
    /**
     * @type {string}
     * @description The area code */
    areaCode;
    /**
     * @type {string}
     * @description The country code you are searching for */
    countryCode;
    /**
     * @type {string}
     * @description The postal code you are searching for */
    postalCode;
    /**
     * @type {?number}
     * @description The distance from the specified postal code (default is 100) */
    distance;
    /**
     * @type {boolean}
     * @description Search for fax numbers */
    isFaxNumber;
    /**
     * @type {string}
     * @description Contains specific digits */
    contains;
}

JavaScript SearchPhoneNumbers DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

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: team.evovoice.io 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

[{"phoneNumber":"String"}]