Available Operations
 
 

Provisioning API

The Vonage Business Communications Provisioning API enables you to retrieve information about accounts, users and extensions.

Your application must subscribe to the Provisioning API suite to use this API.

Available Operations:

Get account data by ID

GET https://api.vonage.com/t/vbc.prod/provisioning/api/accounts/:account_id
Host https://api.vonage.com
GET /t/vbc.prod/provisioning/api/accounts/:account_id

Authentication

Key Description Example Default
Authorization Your OAuth token.
Read more about OAuth tokens
Bearer <access_token> None

Path Parameters

account_id
string | Required

The Vonage Business Communications account ID

Responses

200 Success
page_size
number

Number of records per page

page
number

Current page number

total_pages
number

Total number of pages

total_items
number

Total number of records

_embedded
object

Account object

data
object
id
number

Unique identifier of the account

name
string

Name of the account

status
string

Status of the account

address
object
address_1
string

Street portion of the address

address_2
string

Additional address information

country
string

Country code

state
string

State/Province code

city
string

City name

postal_code
string

Postal code

Example Responses

200 404
{
  "page_size": 100,
  "page": 1,
  "total_pages": 10,
  "total_items": 100,
  "_links": {
    "first": {
      "href": "abc123"
    },
    "prev": {
      "href": "abc123"
    },
    "self": {
      "href": "abc123"
    },
    "next": {
      "href": "abc123"
    },
    "last": {
      "href": "abc123"
    }
  },
  "_embedded": {
    "data": {
      "id": 571700,
      "name": "Vonage",
      "status": "ACTIVE",
      "address": {
        "address_1": "123 Example Street",
        "address_2": "Apt. 456",
        "country": "US",
        "state": "NJ",
        "city": "Holmdel",
        "postal_code": "07733"
      }
    }
  }
}

This endpoint does not support application/json

Get account locations data by account ID

GET https://api.vonage.com/t/vbc.prod/provisioning/api/accounts/:account_id/locations
Host https://api.vonage.com
GET /t/vbc.prod/provisioning/api/accounts/:account_id/locations

Authentication

Key Description Example Default
Authorization Your OAuth token.
Read more about OAuth tokens
Bearer <access_token> None

Path Parameters

account_id
string | Required

The Vonage Business Communications account ID

Responses

200 Success
page_size
number
page
number
total_pages
number
total_items
number
_embedded
object

Collection of location objects

data
array of objects
id
number

Unique identifier of the location

name
string

Name of the location

address
object
address_1
string

Street portion of the address

address_2
string

Additional address information

country
string

Country code

state
string

State/Province code

city
string

City name

postal_code
string

Postal code

time_zone
string

Time zone

Example Responses

200
{
  "page_size": 100,
  "page": 1,
  "total_pages": 10,
  "total_items": 100,
  "_links": {
    "first": {
      "href": "abc123"
    },
    "prev": {
      "href": "abc123"
    },
    "self": {
      "href": "abc123"
    },
    "next": {
      "href": "abc123"
    },
    "last": {
      "href": "abc123"
    }
  },
  "_embedded": {
    "data": [
      {
        "id": 327910,
        "name": "Headquarters",
        "address": {
          "address_1": "123 Example Street",
          "address_2": "Apt. 456",
          "country": "US",
          "state": "NJ",
          "city": "Holmdel",
          "postal_code": "07733",
          "time_zone": "America/New York"
        }
      }
    ]
  }
}

Get location data by account ID and location ID

GET https://api.vonage.com/t/vbc.prod/provisioning/api/accounts/:account_id/locations/:location_id
Host https://api.vonage.com
GET /t/vbc.prod/provisioning/api/accounts/:account_id/locations/:location_id

Authentication

Key Description Example Default
Authorization Your OAuth token.
Read more about OAuth tokens
Bearer <access_token> None

Path Parameters

account_id
string | Required

The Vonage Business Communications account ID

location_id
number | Required

The Vonage Business Communications location ID

Responses

200 Success
page_size
number

Number of records per page

page
number

Current page number

total_pages
number

Total number of pages

total_items
number

Total number of records

_embedded
object

Location object

data
object
id
number

Unique identifier of the location

name
string

Name of the location

address
object
address_1
string

Street portion of the address

address_2
string

Additional address information

country
string

Country code

state
string

State/Province code

city
string

City name

postal_code
string

Postal code

time_zone
string

Time zone

Example Responses

200 404
{
  "page_size": 100,
  "page": 1,
  "total_pages": 10,
  "total_items": 100,
  "_links": {
    "first": {
      "href": "abc123"
    },
    "prev": {
      "href": "abc123"
    },
    "self": {
      "href": "abc123"
    },
    "next": {
      "href": "abc123"
    },
    "last": {
      "href": "abc123"
    }
  },
  "_embedded": {
    "data": {
      "id": 327910,
      "name": "Headquarters",
      "address": {
        "address_1": "123 Example Street",
        "address_2": "Apt. 456",
        "country": "US",
        "state": "NJ",
        "city": "Holmdel",
        "postal_code": "07733",
        "time_zone": "America/New York"
      }
    }
  }
}

This endpoint does not support application/json

Get account extensions data by account ID

GET https://api.vonage.com/t/vbc.prod/provisioning/api/accounts/:account_id/extensions
Host https://api.vonage.com
GET /t/vbc.prod/provisioning/api/accounts/:account_id/extensions

Authentication

Key Description Example Default
Authorization Your OAuth token.
Read more about OAuth tokens
Bearer <access_token> None

Path Parameters

account_id
string | Required

The Vonage Business Communications account ID

Query Parameter

page_size
number

Number of records per page

page
number

Current page number

location_id
number

Filter by location id

phone_number
string

Filter by phone number

login_name
string

Filter by login name

email
string

Filter by email address

Responses

200 Success
page_size
number

Number of records per page

page
number

Current page number

total_pages
number

Total number of pages

total_items
number

Total number of records

_embedded
object
data
object
extension_number
string

Extension number

user
object
id
number

Unique ID of the user

email
string

Email address of the user

login_name
string

Login name of the user

first_name
string

First name of the user

last_name
string

Last name of the user

location_id
number

Unique identifier of the assigned location

vtt_enabled
boolean

Voicemail transcription status of the location

dnd_enabled
boolean

Do Not Disturb status of the extension

caller_id
string

Caller ID of the extension

external_id
string

The unique identifier of the extension

block_caller_id
boolean

Block Caller ID status of the extension

dids
array of objects

Collection of phone numbers assigned to the extension

phone_number
string

Phone number

custom_tag
string

Custom tag associated with the phone number

extension_handsets
array of objects

Collection of handsets assigned to the extension

handset_name
string

Name of the handset

sip_id
string

SIP identifier of the handset

Example Responses

200 400
{
  "page_size": 10,
  "page": 1,
  "total_pages": 10,
  "total_items": 100,
  "_links": {
    "first": {
      "href": "abc123"
    },
    "prev": {
      "href": "abc123"
    },
    "self": {
      "href": "abc123"
    },
    "next": {
      "href": "abc123"
    },
    "last": {
      "href": "abc123"
    }
  },
  "_embedded": {
    "data": {
      "extension_number": "789",
      "user": {
        "id": 2111111,
        "email": "john.smith@example.com",
        "login_name": "jsmith",
        "first_name": "John",
        "last_name": "Smith"
      },
      "location_id": 145214,
      "vtt_enabled": true,
      "dnd_enabled": false,
      "caller_id": "John Smith",
      "external_id": "abc11111111111",
      "block_caller_id": false,
      "dids": [
        {
          "phone_number": "14155550100",
          "custom_tag": "My Tag"
        }
      ],
      "extension_handsets": [
        {
          "handset_name": "line1-VH6370927",
          "sip_id": "VH16370927"
        }
      ]
    }
  }
}
{
  "status": 1,
  "title": "abc123",
  "instance": "abc123",
  "invalid_parameters": [
    {
      "name": "abc123",
      "reason": "abc123"
    }
  ]
}

Get extension data by account ID and extension ID

GET https://api.vonage.com/t/vbc.prod/provisioning/api/accounts/:account_id/extensions/:external_id
Host https://api.vonage.com
GET /t/vbc.prod/provisioning/api/accounts/:account_id/extensions/:external_id

Authentication

Key Description Example Default
Authorization Your OAuth token.
Read more about OAuth tokens
Bearer <access_token> None

Path Parameters

account_id
string | Required

The Vonage Business Communications account ID

external_id
number | Required

The unique id of the extension

Responses

200 Success
_embedded
object
extension
object
extension_number
string

Extension number

user
object
id
number

Unique ID of the user

email
string

Email address of the user

login_name
string

Login name of the user

first_name
string

First name of the user

last_name
string

Last name of the user

location_id
number

Unique identifier of the assigned location

vtt_enabled
boolean

Voicemail transcription status of the location

dnd_enabled
boolean

Do Not Disturb status of the extension

caller_id
string

Caller ID of the extension

external_id
string

The unique identifier of the extension

service_type_name
string

Service type name of the extension

block_caller_id
boolean

Block Caller ID status of the extension

dids
array of objects

Collection of phone numbers assigned to the extension

phone_number
string

Phone number

custom_tag
string

Custom tag associated with the phone number

extension_handsets
array of objects

Collection of handsets assigned to the extension

handset_name
string

Name of the handset

sip_id
string

SIP identifier of the handset

Example Responses

200 404
{
  "_links": {
    "self": {
      "href": "abc123"
    }
  },
  "_embedded": {
    "extension": {
      "extension_number": "789",
      "user": {
        "id": 2111111,
        "email": "john.smith@example.com",
        "login_name": "jsmith",
        "first_name": "John",
        "last_name": "Smith"
      },
      "location_id": 145214,
      "vtt_enabled": true,
      "dnd_enabled": false,
      "caller_id": "John Smith",
      "external_id": "abc11111111111",
      "service_type_name": "UX",
      "block_caller_id": false,
      "dids": [
        {
          "phone_number": "14155550100",
          "custom_tag": "My Tag"
        }
      ],
      "extension_handsets": [
        {
          "handset_name": "line1-VH6370927",
          "sip_id": "VH16370927"
        }
      ]
    }
  }
}
{
  "msg": "abc123",
  "status": 1
}

Get account users data by account ID

GET https://api.vonage.com/t/vbc.prod/provisioning/api/accounts/:account_id/users
Host https://api.vonage.com
GET /t/vbc.prod/provisioning/api/accounts/:account_id/users

Authentication

Key Description Example Default
Authorization Your OAuth token.
Read more about OAuth tokens
Bearer <access_token> None

Path Parameters

account_id
string | Required

The Vonage Business Communications account ID

Query Parameter

page_size
number

Number of records per page

page
number

Current page number

first_name
string

Filter by first name

last_name
string

Filter by last name

login_name
string

Filter by login name

email
string

Filter by email address

Responses

200 Success
page_size
number

Number of records per page

page
number

Current page number

total_pages
number

Total number of pages

total_items
number

Total number of records

_embedded
object
data
array of objects
email
string

Email address of the user

login_name
string

Login name of the user

first_name
string

First name of the user

last_name
string

Last name of the user

id
number

Unique identifier of the user

contact_numbers
array of objects

Collection of contact objects

type
string

Contact type

value
string

Contact value

extensions
array of objects

Collection of extension objects

dids
array of objects

Collection of phone numbers assigned to the extension

phone_number
string

Phone number

custom_tag
string

Custom tag associated with the phone number

extension_number
string

Extension number

Example Responses

200 400
{
  "page_size": 10,
  "page": 1,
  "total_pages": 10,
  "total_items": 100,
  "_links": {
    "first": {
      "href": "abc123"
    },
    "prev": {
      "href": "abc123"
    },
    "self": {
      "href": "abc123"
    },
    "next": {
      "href": "abc123"
    },
    "last": {
      "href": "abc123"
    }
  },
  "_embedded": {
    "data": [
      {
        "email": "john.smith@example.com",
        "login_name": "jsmith",
        "first_name": "John",
        "last_name": "Smith",
        "id": 869048,
        "contact_numbers": [
          {
            "type": "Home",
            "value": "14155550100"
          }
        ],
        "extensions": [
          {
            "dids": [
              {
                "phone_number": "14155550100",
                "custom_tag": "My Tag"
              }
            ],
            "extension_number": "789"
          }
        ]
      }
    ]
  }
}
{
  "status": 1,
  "title": "abc123",
  "instance": "abc123",
  "invalid_parameters": [
    {
      "name": "abc123",
      "reason": "abc123"
    }
  ]
}

Get user data by account ID and user ID

GET https://api.vonage.com/t/vbc.prod/provisioning/api/accounts/:account_id/users/:user_id
Host https://api.vonage.com
GET /t/vbc.prod/provisioning/api/accounts/:account_id/users/:user_id

Authentication

Key Description Example Default
Authorization Your OAuth token.
Read more about OAuth tokens
Bearer <access_token> None

Path Parameters

account_id
string | Required

The Vonage Business Communications account ID

user_id
number | Required

The Vonage Business Communications user ID

Responses

200 Success
page_size
number

Number of records per page

page
number

Current page number

total_pages
number

Total number of pages

total_items
number

Total number of records

_embedded
object
data
object
email
string

Email address of the user

login_name
string

Login name of the user

first_name
string

First name of the user

last_name
string

Last name of the user

id
number

Unique identifier of the user

contact_numbers
array of objects

Collection of contact objects

type
string

Contact type

value
string

Contact value

extensions
array of objects

Collection of extension objects

dids
array of objects

Collection of phone numbers assigned to the extension

phone_number
string

Phone number

custom_tag
string

Custom tag associated with the phone number

extension_number
string

Extension number

Example Responses

200 404
{
  "page_size": 10,
  "page": 1,
  "total_pages": 10,
  "total_items": 100,
  "_links": {
    "first": {
      "href": "abc123"
    },
    "prev": {
      "href": "abc123"
    },
    "self": {
      "href": "abc123"
    },
    "next": {
      "href": "abc123"
    },
    "last": {
      "href": "abc123"
    }
  },
  "_embedded": {
    "data": {
      "email": "john.smith@example.com",
      "login_name": "jsmith",
      "first_name": "John",
      "last_name": "Smith",
      "id": 869048,
      "contact_numbers": [
        {
          "type": "Home",
          "value": "14155550100"
        }
      ],
      "extensions": [
        {
          "dids": [
            {
              "phone_number": "14155550100",
              "custom_tag": "My Tag"
            }
          ],
          "extension_number": "789"
        }
      ]
    }
  }
}
{
  "msg": "abc123",
  "status": 1
}