Method enable.virtual_numbers
Description Connecting a virtual number
Available to Agent, Client

Request parameters

Title Type Required Description
access_token string yes Authentication session key
virtual_phone_number string no Virtual number. One of the parameters virtual_phone_number or number_capacity_ids is filled in
number_capacity_ids array of string no An array of number identifiers. One of the parameters virtual_phone_number or number_capacity_ids is filled in
number_capacity_component string no Number component (va, call_tracking) Required if number_capacity_ids is passed
user_id number no Unique user identifier of the agent client on behalf of which the request is made
Is required for the agent

JSON request structure```json

{ "jsonrpc": "2.0", "id": "number", "method": "enable.virtual_numbers", "params": { "access_token": "string", "user_id": "number", "virtual_phone_number": "string" } }

### JSON response structure```json
{
  "jsonrpc": "2.0",
  "id": "number",
  "result": {
    "success": true
  }
}

List of returned errors

Error text Error code Error mnemonics
Action is not allowed for your tariff plan. You need contact support service or change your tariff plan settings in your account -32602 tariff_restrictions
Virtual phone number {virtual_phone_number} not found. -32007 virtual_phone_number_not_found

See the section "List of errors for methods with the verb get"