Client (/client/, /client_info/)
- esnata (Unlicensed)
You can test API methods on the interactive API browser page and without writing code
Some of the resources described on the page may not be available by default due to the type of application (see Creating and authorizing applications).
This resource is intended for obtaining information about the client.
Description of data structures
Name | Type | Description |
---|
Name | Type | Description |
---|---|---|
ambassadors | string | Contact persons |
contact_phones | string | Contact phone numbers |
create_date | string | Creation date |
dial_rule_id | long | ID of the outgoing call rule |
did_as_transfer_caller_id | string | The external PBX number that the call originally came to, which is displayed when the number is further forwarded |
disk_space_notify_email | string | The e-mail address to which the message will be sent when the disk space threshold is reached (disk_space_notify_threshold) |
disk_space_notify_threshold | long | The notification threshold (in %) when the disk space size threshold is reached, at which sending a message to the e-mail address specified in disk_space_notify_email will be triggered |
domain | string | Domain |
domain_prefix | string | The domain prefix. Used for full internal number dialing. For example, with the prefix "12345", the internal number is 000*000@domain.zone can be called by the number "12345*000*000" |
string | Email address | |
extension_len | string | Length of internal numbers |
extra_params | string | Additional parameters |
fact_address | string | Actual address |
geo_list | string | Sets the list of countries from which IP addresses the use of the SIP account is allowed. Countries are listed in the ISO 3166 Codes A2 format, for example: "RU US BY". If the list is not specified, the value defined by the service provider is used. If the list is set to "*", then all countries are allowed and the service provider parameter is ignored |
hold_music | long | ID of the sound file to play while holding a call |
id | long | Client ID |
jur_address | string | Legal address |
language | string | Language |
name | string | Client name |
prefix | string | Client prefix |
presence | string | yes/no: monitoring the availability of internal PBX numbers without calling them (green - free, you can transfer the call; red - busy) |
record_format | string | Conversation recording format, default mp3 |
record_stereo | boolean | true/false: determines whether conversations are recorded in stereo format, by default false |
reg_status_log | boolean | true/false: determines whether internal number registration statistics are maintained. This parameter is set by the service provider. |
short_local_caller_id | string | Short internal caller ID (displaying the internal number without the PBX prefix) |
sip_network_permission_id | long | ID of the trusted SIP network. Phones can be authorized by IP addresses; if this parameter is set, this is a list of IP addresses from which calls can be made in this organization |
timezone | string | Client's time zone |
type | string | Client type: J - legal entity, F - individual |
Example
We get information about the current authorized client. To do this, let's send the following request:
{
 "domain": "sip.ringme.ru",
 "create_date": "2020-03-16 09:29:57",
 "hold_music": null,
 "presence": "no",
 "sip_network_permission_id": null,
 "prefix": "0001",
 "record_stereo": false,
 "ambassadors": null,
 "id": 12,
 "domain_prefix": "00001",
 "contact_phones": null,
 "name": "ringme_test",
 "timezone": "Europe/Moscow",
 "dial_rule_id": 19,
 "type": "J",
 "email": "admin@domain.com",
 "reg_status_log": false,
 "fact_address": null,
 "extra_params": null,
 "extension_len": 3,
 "geo_list": null,
 "did_as_transfer_caller_id": "default",
 "jur_address": null,
 "language": null,
 "record_format": "mp3",
 "short_local_caller_id": "yes",
 "disk_space_notify_email": null,
 "disk_space_notify_threshold": null
}
Resources of the "Client" section
GET /client/{client_id}/client/,
or GET /client/client_info/{client_id}/
Get client data
URL Parameters
Name | Type |
---|
Name | Type |
---|---|
client_id | string |
Response fields
Name | Type |
---|
Name | Type |
---|---|
ambassadors | string |
contact_phones | string |
create_date | string |
dial_rule_id | long |
did_as_transfer_caller_id | string |
disk_space_notify_email | string |
disk_space_notify_threshold | long |
domain | string |
domain_prefix | string |
string | |
extension_len | string |
extra_params | string |
fact_address | string |
geo_list | string |
hold_music | long |
id | long |
jur_address | string |
language | string |
name | string |
prefix | string |
presence | string |
record_format | string |
record_stereo | boolean |
reg_status_log | boolean |
short_local_caller_id | string |
sip_network_permission_id | long |
timezone | string |
type | string |
PUT /client/{client_id}/client/,
or PUT /client/client_info/{client_id}/
Update client settings (not all parameters for updating are available to the client)
URL Parameters
Name | Type |
---|
Name | Type |
---|---|
client_id | string |
JSON parameters
Name | Type |
---|
Name | Type |
---|---|
dial_rule_id | long |
disk_space_notify_email | string |
disk_space_notify_threshold | long |
geo_list | string |
hold_music | long |
sip_network_permission_id | long |
timezone | string |
Response fields
Name | Type |
---|
Name | Type |
---|---|
ambassadors | string |
contact_phones | string |
create_date | string |
dial_rule_id | long |
did_as_transfer_caller_id | string |
disk_space_notify_email | string |
disk_space_notify_threshold | long |
domain | string |
domain_prefix | string |
string | |
extension_len | string |
extra_params | string |
fact_address | string |
geo_list | string |
hold_music | long |
id | long |
jur_address | string |
language | string |
name | string |
prefix | string |
presence | string |
record_format | string |
record_stereo | boolean |
reg_status_log | boolean |
short_local_caller_id | string |
sip_network_permission_id | long |
timezone | string |
type | string |