Docs

Get list of available virtual numbers

/accounts/{accountSID}/availableNumbers/virtual

Overview

Virtual (international) numbers are SIP identifiers consisting of numbers; they are treated by Apico API as conventional telephone numbers. Virtual numbers do not have regional identity.

To get a list of available virtual numbers, make the GET request to /accounts/{accountSID}/availableNumbers/virtual.

All other requests work the same way as with conventional phone numbers.

Request example

curl –X GET ‘https://api.apico.net/v2/accounts/{accountSID}/numbers/{numberSID}’ \
-u {accountSID}:{authToken}

Response example

{
    "number_sid": "{numberSID}",
    "account_sid": "{accountSID}",
    "number": "+883140777092718",
    "country_code": "virtual",
    "type": "sip",
    "controller": "http://myapp.apico.net/incom.php",
    "method": "GET",
    "created": "Wed, 28 May 2015 01:11:11 +0000",
    "updated": "Wed, 28 May 2015 01:12:11 +0000",
    "voice": true,
    "messaging": true
}