Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The GET /addresses endpoint gets a list of all addresses within the VCC account.


Info

Only PSTN addresses are returned by this endpoint. API addresses are excluded.

...

Type

Required

Example

integerFalse25

The required number of items per page. Minimum of 1. Maximum of 5000. Default is 25.

page

Type

Required

Example

integerFalse1

The required page. Minimum of 1, maximum of 1000000000. Default is 1.

Requests

Request all addresses

Code Block
languagepowershell
themeMidnight
curl -L -X GET "https://***.api.newvoicemedia.com/useradmin/addresses" \
-H "Accept: application/vnd.newvoicemedia.v4+json" \
-H "Authorization: Bearer <ACCESS_TOKEN>"

Request second page of addresses

Code Block
languagepowershell
themeMidnight
curl -L -X GET "https://***.api.newvoicemedia.com/useradmin/addresses?page=2" \
-H "Accept: application/vnd.newvoicemedia.v4+json" \
-H "Authorization: Bearer <ACCESS_TOKEN>"

Responses

Responses contain a list of all addresses within the VCC account.

Successful response

Successful requests return a 200 Success code and a collection of addresses.

Example response

Code Block
languagejs
themeMidnight
{
  "meta": {
    "page": 1,
    "count": 2,
    "pageCount": 1,
    "totalCount": 2
  },
  "addresses": [
    {
      "addressId": "441234567890"
    },
    {
      "addressId": "441234567899"
    }
  ]
}

where:

  • addresses. A collection of addresses.
    • addressId. The unique ID of the address.

Insert excerpt
_ExcerptRunInPostman
_ExcerptRunInPostman
nopaneltrue