Phones

List current user's IP phones

get

Retrieve a collection of IP Phones for current user.

Authorizations
Responses
200
OK
application/json
get
GET /api/user/phones HTTP/1.1
Host: hostname:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "items": [
    {
      "id": "NzAwNTUxOTA5NzczMTQ4MTYw",
      "mac": "text",
      "filename": "text",
      "vendor": "text",
      "model": "text",
      "fwver": "text",
      "password": "text",
      "language": "ENGLISH",
      "transfer": "BLIND",
      "timezone": "text",
      "ringtone": "text",
      "queue_ringtone": "text",
      "external_ringtone": "text",
      "date_format": "text",
      "time_format": "text",
      "powerled": "text",
      "backlight": "text",
      "screensaver": "text",
      "rps": true,
      "https": true,
      "codecs": [
        "text"
      ],
      "enable_lldp": false,
      "enable_vlan_wan_port": false,
      "wan_port_id": 1,
      "wan_port_priority": 1,
      "enable_vlan_pc_port": false,
      "pc_port_id": 1,
      "pc_port_priority": 1,
      "interface": "WEB_DOMAIN",
      "preferred_transport": "UDP",
      "serial_number": "text",
      "door_password1": "text",
      "door_password2": "text",
      "url": "text"
    }
  ]
}

Assign phone to current user

post

Assign a phone to current user.

Authorizations
Body
macall ofRequired

MAC address of this IP phone.

stringOptional

MAC address.

filenamestringRequired

Template XML file name for phone provisioning.

vendorstringRequired

The phone vendor of IP phone.

modelstringRequired

The name of IP phone model.

passwordstringRequired

Password for accessing the Web interface of phone. The username remains default because most phone manufacturers do not allow modification of the user name. This is supported for some phone model, such as "Snom 300".

languagestring · enumRequired

Language for strings displayed on Phone Display LCD. Supported languages include ENGLISH, CHINESE, DUTCH, FRENCH, GERMAN, GREEK, ITALIAN, JAPANESE, POLISH, RUSSIAN, SPANISH, SWEDISH, UKRAINIAN, and BULGARIAN.

Possible values:
transferstring · enumRequired

The transfer method for auto provision.
Can be either:

  • BLIND: After the IP phone is configured with the BLF of a certain key, during a call on the IP phone, press the key, and the phone will directly initiate a Blind transfer to the configured number.
  • ATTENDED: After the IP phone is configured with the BLF of a key, during a call on the IP phone, press the key, and the phone will directly initiate an Attended transfer to the configured number.
  • NEW_CALL: After the IP phone is configured with the BLF of a certain key, during a call on the IP phone, press the key, and the phone will initiate a new call to the configured number.
Default: BLINDPossible values:
timezonestringRequired

The timezone of phone.

ringtonestringOptional

The ringtone of phone.

queue_ringtonestringOptional

The queue ringtone of phone for queue calls or ring group calls.

external_ringtonestringOptional

The ringtone of phone for external calls.

date_formatstringOptional

The date format of phone.

time_formatstringOptional

The time format of phone.

powerledstringOptional

The power led of phone.

backlightstringOptional

The backlight of phone.

screensaverstringOptional

The screensaver of phone.

rpsbooleanOptional

Send to RPS or not.

httpsbooleanOptional

Whether to use https

codecsstring[]Required

Settings for the priority of the codecs in this phone. This indicates the first preferred codec.

enable_lldpbooleanOptional

Enable or disable Link Layer Discovery Protocol.

Default: false
enable_vlan_wan_portbooleanOptional

Enable or disable VLAN for WAN Port.

Default: false
wan_port_idinteger · min: 1 · max: 4094Optional

VLAN ID for WAN PORT.

wan_port_priorityinteger · max: 7Optional

VLAN priority for WAN Port.

enable_vlan_pc_portbooleanOptional

Enable or disable VLAN for PC Port.

Default: false
pc_port_idinteger · min: 1 · max: 4094Optional

VLAN ID for PC PORT.

pc_port_priorityinteger · max: 7Optional

VLAN priority for PC Port.

interfacestring · enumRequired

The interface type for QR code or auto provisioning.
Can be neither:

  • WEB_DOMAIN:
  • PUBLIC_IPV4:
  • PUBLIC_IPV6:
  • PRIVATE_IPV4:
  • PRIVATE_IPV6:
  • SBC_DOMAIN:
Possible values:
preferred_transportstring · enumRequired

The transport protocol:
Can be either:

  • UDP:
  • TCP:
  • TLS:
Possible values:
serial_numberstringOptional

The serial number of phone.

door_password1string · min: 4 · max: 8Optional

The primary door password of phone. Only numeric sequences are allowed.

door_password2string · min: 4 · max: 8Optional

The secondary door password of phone. Only numeric sequences are allowed.

Responses
201
Success
application/json
post
POST /api/user/phones HTTP/1.1
Host: hostname:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 625

{
  "mac": "text",
  "filename": "text",
  "vendor": "text",
  "model": "text",
  "password": "text",
  "language": "ENGLISH",
  "transfer": "BLIND",
  "timezone": "text",
  "ringtone": "text",
  "queue_ringtone": "text",
  "external_ringtone": "text",
  "date_format": "text",
  "time_format": "text",
  "powerled": "text",
  "backlight": "text",
  "screensaver": "text",
  "rps": true,
  "https": true,
  "codecs": [
    "text"
  ],
  "enable_lldp": false,
  "enable_vlan_wan_port": false,
  "wan_port_id": 1,
  "wan_port_priority": 1,
  "enable_vlan_pc_port": false,
  "pc_port_id": 1,
  "pc_port_priority": 1,
  "interface": "WEB_DOMAIN",
  "preferred_transport": "UDP",
  "serial_number": "text",
  "door_password1": "text",
  "door_password2": "text"
}
{
  "id": "NzAwNTUxOTA5NzczMTQ4MTYw"
}

Retrieve current user phone details

get

Retrieve phone details of current user.

Authorizations
Path parameters
idall ofRequired

The unique ID of phone.

stringOptional

The unique ID of the resource.

Example: NzAwNTUxOTA5NzczMTQ4MTYw
Responses
200
OK
application/json
get
GET /api/user/phones/{id} HTTP/1.1
Host: hostname:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "id": "NzAwNTUxOTA5NzczMTQ4MTYw",
  "mac": "text",
  "filename": "text",
  "vendor": "text",
  "model": "text",
  "password": "text",
  "language": "ENGLISH",
  "transfer": "BLIND",
  "timezone": "text",
  "ringtone": "text",
  "queue_ringtone": "text",
  "external_ringtone": "text",
  "date_format": "text",
  "time_format": "text",
  "powerled": "text",
  "backlight": "text",
  "screensaver": "text",
  "rps": true,
  "https": true,
  "codecs": [
    "text"
  ],
  "enable_lldp": false,
  "enable_vlan_wan_port": false,
  "wan_port_id": 1,
  "wan_port_priority": 1,
  "enable_vlan_pc_port": false,
  "pc_port_id": 1,
  "pc_port_priority": 1,
  "interface": "WEB_DOMAIN",
  "preferred_transport": "UDP",
  "serial_number": "text",
  "door_password1": "text",
  "door_password2": "text",
  "url": "text"
}

Update a phone of current user

post

Update phone of current user by it's unique ID.

Authorizations
Path parameters
idall ofRequired

The unique ID of phone.

stringOptional

The unique ID of the resource.

Example: NzAwNTUxOTA5NzczMTQ4MTYw
Body
passwordstringOptional

Password for accessing the Web interface of phone. The username remains default because most phone manufacturers do not allow modification of the user name. This is supported for some phone model, such as "Snom 300".

languagestring · enumOptional

Language for strings displayed on Phone Display LCD. Supported languages include ENGLISH, CHINESE, DUTCH, FRENCH, GERMAN, GREEK, ITALIAN, JAPANESE, POLISH, RUSSIAN, SPANISH, SWEDISH, UKRAINIAN, and BULGARIAN.

Possible values:
transferstring · enumOptional

The transfer method for auto provision.
Can be either:

  • BLIND: After the IP phone is configured with the BLF of a certain key, during a call on the IP phone, press the key, and the phone will directly initiate a Blind transfer to the configured number.
  • ATTENDED: After the IP phone is configured with the BLF of a key, during a call on the IP phone, press the key, and the phone will directly initiate an Attended transfer to the configured number.
  • NEW_CALL: After the IP phone is configured with the BLF of a certain key, during a call on the IP phone, press the key, and the phone will initiate a new call to the configured number.
Default: BLINDPossible values:
timezonestringOptional

The timezone of phone.

ringtonestringOptional

The ringtone of phone.

queue_ringtonestringOptional

The queue ringtone of phone for queue calls or ring group calls.

external_ringtonestringOptional

The ringtone of phone for external calls.

date_formatstringOptional

The date format of phone.

time_formatstringOptional

The time format of phone.

powerledstringOptional

The power led of phone.

backlightstringOptional

The backlight of phone.

screensaverstringOptional

The screensaver of phone.

rpsbooleanOptional

Send to RPS or not.

httpsbooleanOptional

Whether to use https

codecsstring[]Optional

Settings for the priority of the codecs in this phone. This indicates the first preferred codec.

enable_lldpbooleanOptional

Enable or disable Link Layer Discovery Protocol.

Default: false
enable_vlan_wan_portbooleanOptional

Enable or disable VLAN for WAN Port.

Default: false
wan_port_idinteger · min: 1 · max: 4094Optional

VLAN ID for WAN PORT.

wan_port_priorityinteger · max: 7Optional

VLAN priority for WAN Port.

enable_vlan_pc_portbooleanOptional

Enable or disable VLAN for PC Port.

Default: false
pc_port_idinteger · min: 1 · max: 4094Optional

VLAN ID for PC PORT.

pc_port_priorityinteger · max: 7Optional

VLAN priority for PC Port.

interfacestring · enumOptional

The interface type for QR code or auto provisioning.
Can be neither:

  • WEB_DOMAIN:
  • PUBLIC_IPV4:
  • PUBLIC_IPV6:
  • PRIVATE_IPV4:
  • PRIVATE_IPV6:
  • SBC_DOMAIN:
Possible values:
preferred_transportstring · enumOptional

The transport protocol:
Can be either:

  • UDP:
  • TCP:
  • TLS:
Possible values:
serial_numberstringOptional

The serial number of phone.

door_password1string · min: 4 · max: 8Optional

The primary door password of phone. Only numeric sequences are allowed.

door_password2string · min: 4 · max: 8Optional

The secondary door password of phone. Only numeric sequences are allowed.

Responses
200
OK
post
POST /api/user/phones/{id} HTTP/1.1
Host: hostname:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 563

{
  "password": "text",
  "language": "ENGLISH",
  "transfer": "BLIND",
  "timezone": "text",
  "ringtone": "text",
  "queue_ringtone": "text",
  "external_ringtone": "text",
  "date_format": "text",
  "time_format": "text",
  "powerled": "text",
  "backlight": "text",
  "screensaver": "text",
  "rps": true,
  "https": true,
  "codecs": [
    "text"
  ],
  "enable_lldp": false,
  "enable_vlan_wan_port": false,
  "wan_port_id": 1,
  "wan_port_priority": 1,
  "enable_vlan_pc_port": false,
  "pc_port_id": 1,
  "pc_port_priority": 1,
  "interface": "WEB_DOMAIN",
  "preferred_transport": "UDP",
  "serial_number": "text",
  "door_password1": "text",
  "door_password2": "text"
}

No content