...
Name | Type | Description |
---|---|---|
|
| Default: False |
|
| Extension id, multiple possible. |
|
| Default: [] |
Resource registration
Name | Type | Description |
---|---|---|
|
| |
|
| |
|
| |
|
| |
|
|
...
POST /extension/{extension_id}/agent/
...
Name | Type | Description |
---|---|---|
|
| Items per page. |
|
| Datetime sorting order. |
|
| |
|
| Result page. |
...
GET /extension/{extension_id}/cdr/stats/
Get calls statistics
Path parameters
Name | Type | Description |
---|---|---|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
GET /extension/{extension_id}/cdr/stats/
Get calls statistics
Path parameters
Name | Type | Description |
---|---|---|
|
| Required. |
Query parameters
Name | Type | Description |
---|---|---|
|
| Required. |
|
| Required. |
...
Required. |
Query parameters
Name | Type | Description |
---|---|---|
|
| Required. |
|
| Required. |
...
PUT /extension/{extension_id}/chat/{chat_id}/messages/
Change chat messages
Path parameters
Name | Type | Description |
---|---|---|
|
| Required. |
|
| Required. |
JSON parameters
Name | Type | Description |
---|---|---|
|
|
Resource fields
Name | Type | Description |
---|---|---|
|
| |
|
| Resource id. |
GET /extension/{extension_id}/chat/{chat_id}/messages/
Get chat messages list
Path parameters
Name | Type | Description |
---|---|---|
|
| Required. |
|
| Required. |
Query parameters
Name | Type | Description |
---|---|---|
|
| Start datetime. |
|
| |
|
| Default: 1 |
|
| |
|
| End datetime. |
|
| |
|
| Datetime sorting order. One of 'desc', 'asc'. Default: desc |
Resource fields
Name | Type | Description |
---|---|---|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| Resource id. |
|
|
DELETE /extension/{extension_id}/chat/{chat_id}/messages/
Change Delete all chat messages
Path parameters
Name | Type | Description |
---|---|---|
|
| Required. |
|
| Required. |
JSON parameters
Name | Type | Description |
---|---|---|
|
|
Resource fields
Name | Type | Description |
---|---|---|
|
| |
|
| Resource id. |
...
PUT /extension/{extension_id}/
...
conference/
Update conference configuration
Path parameters
Name | Type | Description |
---|---|---|
|
| Required. |
|
| Required. |
...
JSON parameters
Name | Type | Description | |
---|---|---|---|
|
| Start datetime. | |
|
|
| |
|
| Default: 1 | |
|
| ||
|
| End datetime. | |
|
| ||
|
| Datetime sorting order. One of 'desc', 'asc'. Default: desc |
|
|
| ||
|
| ||
|
| ||
|
|
Resource fields
Name | Type | Description |
---|---|---|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| Resource id. |
|
|
DELETE /extension/{extension_id}/chat/{chat_id}/messages/
Delete all chat messages
Path parameters
Name | Type | Description |
---|---|---|
|
| Required. |
|
| Required. |
...
| ||
|
| |
|
| Default: False |
|
| |
|
| Default: False |
|
| Default: False |
GET /extension/{extension_id}/conference/
Update Get conference configuration
Path parameters
Name | Type | Description |
---|---|---|
|
| Required. |
...
Resource fields
Name | Type | Description |
---|---|---|
|
| |
|
| |
|
| |
|
| |
|
| Default: False |
|
| |
|
| Default: False |
|
|
Resource fields
Name | Type | Description |
---|---|---|
|
| |
|
| |
|
| |
|
| |
|
| Default: False |
|
| |
|
| Default: False |
|
| Default: False |
...
Default: False |
...
GET /extension/{extension_id}/current_calls/
Get active calls for extension type phone
Path parameters
Name | Type | Description |
---|---|---|
|
| Required. |
Resource fields
Name | Type | Description |
---|---|---|
|
|
...
PUT /extension/{extension_id}/
...
current_calls/{call_api_id
}
Update call
Path parameters
Name | Type | Description |
---|---|---|
|
| Required. |
|
| Required. |
...
JSON parameters
Name | Type | Description | ||
---|---|---|---|---|
|
| |||
|
| |||
|
| |||
|
| |||
|
| Default: False | ||
|
| |||
|
| Default: False | ||
|
| Default: False |
| Required. One of 'eavesdrop', 'whisper', 'conference', 'transfer', 'attended_transfer', 'hold', 'offhold', 'park', 'pickup'. |
|
| |||
|
| |||
|
|
GET /extension/{extension_id}/current_calls/{call_api_id
}
Get active calls call for extension type phone by call_api_id
Path parameters
Name | Type | Description |
---|---|---|
|
| Required. |
Resource fields
Name | Type | Description |
---|---|---|
|
|
...
|
| Required. |
Resource fields
Name | Type | Description |
---|---|---|
|
| |
|
| |
|
| |
|
| Default: True |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
...
DELETE /extension/{extension_id}/current_calls/{call_api_id
}
Update Delete call
Path parameters
Name | Type | Description |
---|---|---|
|
| Required. |
|
| Required. |
JSON parameters
...
Name
...
Type
...
Description
...
POST /extension/{extension_id}/event/
Add extension event
Path parameters
Name | Type | Description |
---|---|---|
|
| Required. |
JSON parameters
Name | Type | Description |
---|---|---|
|
| Required. Request url. |
|
| Required. Call event type. One of 'eavesdropdial-in', 'whisperdial-out', 'conferencehangup', 'transferanswer', 'attended_transfermessage-in', 'holdmessage-out', 'offholdmessage-out-status', 'parkvoicemail'. |
|
| Required. Http request method. One of 'GET', 'pickupPOST'. |
Resource fields
Name | Type | Description |
---|---|---|
|
| |
|
| |
|
| |
|
| Resource id. |
GET /extension/{extension_id}/
...
event/
Get extension event list
Path parameters
Name | Type | Description |
---|---|---|
|
| Required. |
|
| Required. |
Resource fields
Name | Type | Description |
---|---|---|
|
| |
|
| |
|
| |
|
| Default: True |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
|
|
DELETE /extension/{extension_id}/
...
event/
Delete all extension events
Path parameters
Name | Type | Description |
---|---|---|
|
| Required. |
|
| Required. |
...
PUT /extension/{extension_id}/event/{id
}
Add Update extension event
Path parameters
Name | Type | Description |
---|---|---|
|
| Required. |
|
| Required. Resource id. |
JSON parameters
Name | Type | Description |
---|---|---|
|
| Required. Request url. |
|
| Required. Call event type. One of 'dial-in', 'dial-out', 'hangup', 'answer', 'message-in', 'message-out', 'message-out-status', 'voicemail'. |
|
| Required. Http request method. One of 'GET', 'POST'. |
Resource fields
Name | Type | Description |
---|---|---|
|
| |
|
| |
|
| |
|
| Resource id. |
GET /extension/{extension_id}/event/{id
}
Get extension event list
Path parameters
Name | Type | Description |
---|---|---|
|
| Required. |
|
| Required. Resource id. |
Resource fields
Name | Type | Description |
---|---|---|
|
| |
|
| |
|
| |
|
| Resource id. |
DELETE /extension/{extension_id}/event/{id
}
Delete all extension eventsevent
Path parameters
Name | Type | Description |
---|---|---|
|
| Required. |
|
| Required. Resource id. |
...
GET /extension/{extension_id}/
...
extension/
...
Update Get extension event
Path parameters
Name | Type | Description |
---|---|---|
|
| Required. |
|
| Required. Resource id. |
...
Resource fields
Name | Type | Description |
---|---|---|
|
| Request url. |
|
| Call event type. One of 'dial-in', 'dial-out', 'hangup', 'answer', 'message-in', 'message-out', 'message-out-status', 'voicemail'. |
|
| Http request method. One of 'GET', 'POST'. |
Resource fields
Name | Type | Description |
---|---|---|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| Resource id. |
...
|
|
...
PUT /extension/{extension_id}/
...
fax/
...
Update fax config
Path parameters
Name | Type | Description |
---|---|---|
|
| Required. |
|
| Required. Resource id. |
Resource fields
JSON parameters
Name | Type | Description |
---|---|---|
|
| |
|
| |
|
| |
|
| Resource id. |
DELETE /extension/{extension_id}/event/{id
}
Delete extension event
Path parameters
Name | Type | Description |
---|---|---|
|
| Required. |
|
| Required. Resource id. |
|
|
Resource fields
Name | Type | Description |
---|---|---|
|
| Default: tiff |
|
| |
|
| |
|
|
GET /extension/{extension_id}/
...
fax/
Get extensionfax config
Path parameters
Name | Type | Description |
---|---|---|
|
| Required. |
Resource fields
Name | Type | Description |
---|---|---|
|
| Default: tiff |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| Resource id. |
|
|
PUT /extension/{extension_id}/fax/
Update fax config
Path parameters
Name | Type | Description |
---|---|---|
|
| Required. |
...
|
|
...
GET /extension/{extension_id}/fax/in/
Get incoming fax messages list
Path parameters
Name | Type | Description |
---|---|---|
|
| Required. |
Query parameters
Name | Type | Description |
---|---|---|
|
| Start datetime. |
|
| Fax uuid. |
|
| Destination number. |
|
| Caller id number. |
|
| End datetime. |
|
| Datetime sorting order. One of 'desc', 'asc'. Default: desc |
Resource fields
Name | Type | Description |
---|---|---|
|
| Fax uuid. |
|
| |
|
| |
|
|
Resource fields
Name | Type | Description |
---|---|---|
|
| Default: tiff |
|
| |
|
| |
|
|
Destination number. | ||
|
| Caller id. |
|
| Record datetime. |
|
| Fax file size. |
|
| Extension id. |
|
| Client id. |
|
| Extension group id. |
...
GET /extension/{extension_id}/fax/in/{fax_uuid
}
Get incoming fax configmessage
Path parameters
Name | Type | Description |
---|---|---|
|
| Required. |
Resource fields
Name | Type | Description |
---|---|---|
|
| Default: tiff |
|
| |
|
| |
|
|
...
Required. |
...
POST /extension/{extension_id}/fax/
...
out/
Get incoming Send fax messages listmessage
Path parameters
Name | Type | Description |
---|---|---|
|
| Required. |
...
Form parameters
Name | Type | Description |
---|---|---|
|
| Start datetimeRequired. Destination number. |
|
| Fax uuid. |
|
| Destination number. |
|
| Caller id number. |
|
| Required. |
Resource fields
Name | Type | Description |
---|---|---|
|
| |
|
| Destination number. |
|
| Resource id. |
|
|
GET /extension/{extension_id}/fax/out/
Get fax messages list
Path parameters
Name | Type | Description |
---|---|---|
|
| Required. |
Query parameters
Name | Type | Description |
---|---|---|
|
| End Start datetime. |
|
| Datetime sorting order. One of 'desc', 'asc'. Default: desc |
|
| End datetime. |
Resource fields
Name | Type | Description | |
---|---|---|---|
|
| Fax uuid. | |
|
| Destination number. | |
|
| Caller |
|
|
| Resource id. | |
|
| Record datetime. | |
|
| Fax file size. | |
|
| Extension id. | |
|
| Client id. | |
|
| Extension group id. |
...
PUT /extension/{extension_id}/fax/
...
out/{
...
message_
...
id
}
Get incoming Change fax message
Path parameters
Name | Type | Description |
---|---|---|
|
| Required. |
|
| Required. |
...
...
|
...
Path parameters
Name | Type | Description |
---|---|---|
|
| Required. |
...
Query parameters
Name | Type | Description |
---|---|---|
|
| Required. Destination number. |
|
| Required. |
One of 'cancel', 'retry'. |
Resource fields
Name | Type | Description |
---|---|---|
|
| |
|
| Destination number. |
|
| Resource id. |
|
|
GET /extension/{extension_id}/fax/out/{message_id
}
Get fax messages listmessage
Path parameters
Name | Type | Description |
---|---|---|
|
| Required. |
Query parameters
Name | Type | Description | ||
---|---|---|---|---|
|
| Start datetime. | ||
|
| Datetime sorting order. One of 'desc', 'asc'. Default: desc | ||
|
| End datetime |
| Required. |
Resource fields
Name | Type | Description |
---|---|---|
|
| |
|
| |
|
| Resource id. |
|
|
...
POST /extension/{extension_id}/
...
incom_rule/
Add extension incoming call rule
Path parameters
Name | Type | Description |
---|---|---|
|
| Required. |
|
| Required. |
...
JSON parameters
Name | Type | Description | |
---|---|---|---|
|
| Allow public called destinations to transfer calls. Default: False | |
Name | Type | Description | |
|
| RequiredExtension call status. One of 'cancelno_answer', 'busy', 'retryany'. |
Resource fields
Default: any | ||
|
| |
|
| |
|
| Resource id. |
|
|
GET /extension/{extension_id}/fax/out/{message_id
}
Get fax message
Path parameters
Name | Type | Description |
---|---|---|
|
| Required. |
|
| Required. |
Resource fields
Name | Type | Description |
---|---|---|
|
| |
|
| |
|
| Resource id. |
|
|
POST /extension/{extension_id}/incom_rule/
Add extension incoming call rule
Path parameters
Name | Type | Description |
---|---|---|
|
| Required. |
JSON parameters
Name | Type | Description | |
---|---|---|---|
|
| Allow public called destinations to transfer calls. Default: False | |
|
| Extension call status. One of 'no_answer', 'busyCall status. One of 'no_answer', 'busy', 'any'. Default: any | |
|
| Transfer destination for transfer rule. multiple destinations divided by space. | |
|
| Enable call screening for transfer call. Default: False | |
|
| Rule is active. Default: True | |
|
| Time interval id. | |
|
| Caller id matching method. One of 'matches', 'not_matches', 'anonymous', 'any'. Default: any | |
|
| Rule control code. | |
|
| Caller id. | |
|
| While transfer play ring back tones instead of early media. Default: True | |
|
| Extension status. One of 'registered', 'unreachable', 'any'. Default: any | |
|
| Call status. One of 'no_answer', 'busy', 'any' | Ring to transfer destination this count of seconds. Default: any60 |
|
| Transfer destination Sound id for transfer playfile rule. multiple destinations divided by space. | |
|
| Enable call screening for transfer call. Default: False | |
|
| Rule is active. Default: True | |
|
| Time interval id. | |
|
| Caller id matching method. One of 'matches', 'not_matches', 'anonymous', 'any'. Default: any | |
|
| Rule control code. | |
|
| Caller id. | |
|
| While transfer play ring back tones instead of early media. Default: True | |
|
| Extension status. One of 'registered', 'unreachable | |
|
| List of elements for cascade rule. | |
|
| Required. Rule type. One of 'busy', 'transfer', 'hangup', 'playfile', 'voicemail', 'cascade', 'simple_transfer', 'simple_cascade'. | |
|
| If rule is final, next rules will be not executed if call failed. Default: True | |
|
| Rule name. |
Resource fields
Name | Type | Description | |
---|---|---|---|
|
| Default: False | |
|
| One of 'no_answer', 'busy', 'any'. Default: any | |
|
| Ring to transfer destination this count of seconds | One of 'no_answer', 'busy', 'any'. Default: 60any |
|
| ||
|
| Default: False | |
|
| Default: True | |
|
| Sound id for playfile rule. | |
|
| List of elements for cascade rule. | |
|
| Required. Rule type. One of 'busy', 'transfer', 'hangup', 'playfile', 'voicemail', 'cascade', 'simple_transfer', 'simple_cascade'. | |
|
| If rule is final, next rules will be not executed if call failed. |
|
|
| ||
|
| ||
|
| Resource id. | |
|
| One of 'registered', 'unreachable', 'any'. Default: any | |
|
| ||
|
| Default: False | |
|
| ||
|
| ||
|
| ||
|
| Default: True | |
|
| Rule name. |
...
GET /extension/{extension_id}/incom_rule/
Get extension incoming call rules list
Path parameters
Name | Type | Description | |
---|---|---|---|
|
| Required. | |
|
|
| Required. |
Resource fields
Name | Type | Description |
---|---|---|
|
| Default: False |
|
| One of 'no_answer', 'busy', 'any'. Default: any |
|
| One of 'no_answer', 'busy', 'any'. Default: any |
|
| |
|
| Default: False |
|
| Default: True |
|
| |
|
| |
|
| |
|
| |
|
| Resource id. |
|
| One of 'registered', 'unreachable', 'any'. Default: any |
|
| |
|
| Default: False |
|
| |
|
| |
|
| |
|
| Default: True |
|
|
Resource cascade_number
Name | Type | Description |
---|---|---|
|
| Required. |
|
| Required. |
...
PUT /extension/{extension_id}/incom_rule/order/
Get extension incoming call rules listUpdate current rules order
Path parameters
Name | Type | Description |
---|---|---|
|
| Required. |
JSON parameters
Name | Type | Description |
---|---|---|
|
| Required. All rules ids in needed order. |
Resource fields
Name | Type | Description |
---|---|---|
|
| Default: False[] |
GET /extension
...
string
...
One of 'no_answer', 'busy', 'any'. Default: any
...
call_status
...
string
...
One of 'no_answer', 'busy', 'any'. Default: any
...
playfile_sound
...
integer
...
enable_call_screening
...
boolean
...
Default: False
...
enabled
...
boolean
...
Default: True
...
interval
...
integer
...
caller_id_action
...
string
...
control_code
...
string
...
caller_id
...
string
...
id
...
integer
...
Resource id.
...
extension_status
...
string
...
One of 'registered', 'unreachable', 'any'. Default: any
...
transfer_timeout
...
integer
...
ignore_early_media
...
boolean
...
Default: False
...
transfer_dst
...
string
...
cascade_numbers
...
array [cascade_number]
...
type
...
string
...
final
...
boolean
...
Default: True
...
name
...
string
Resource cascade_number
Name | Type | Description |
---|---|---|
|
| Required. |
|
| Required. |
PUT /extension/{extension_id}/incom_rule/order/
Update current rules order
Path parameters
Name | Type | Description |
---|---|---|
|
| Required. |
JSON parameters
Name | Type | Description |
---|---|---|
|
| Required. All rules ids in needed order. |
Resource fields
Name | Type | Description |
---|---|---|
|
| Default: [] |
GET /extension/{extension_id}/incom_rule/order/
Get current rules order
Path parameters
Name | Type | Description |
---|---|---|
|
| Required. |
Resource fields
Name | Type | Description |
---|---|---|
|
| Default: [] |
PUT /extension/{extension_id}/incom_rule/{rule_id
}
Update extension incoming call rule by id
Path parameters
Name | Type | Description |
---|---|---|
|
| Required. |
|
| Required. |
JSON parameters
Name | Type | Description |
---|---|---|
|
| Allow public called destinations to transfer calls. |
|
| Extension call status. One of 'no_answer', 'busy', 'any'. |
|
| Call status. One of 'no_answer', 'busy', 'any'. |
|
| Transfer destination for transfer rule. multiple destinations divided by space. |
|
| Enable call screening for transfer call. |
|
| Rule is active. |
|
| Time interval id. |
|
| Caller id matching method. One of 'matches', 'not_matches', 'anonymous', 'any'. |
|
| Rule control code. |
|
| Caller id. |
|
| While transfer play ring back tones instead of early media. |
|
| Extension status. One of 'registered', 'unreachable', 'any'. |
|
| Ring to transfer destination this count of seconds. |
|
| Sound id for playfile rule. |
|
| List of elements for cascade rule. |
|
| Rule type. One of 'busy', 'transfer', 'hangup', 'playfile', 'voicemail', 'cascade', 'simple_transfer', 'simple_cascade'. |
|
| If rule is final, next rules will be not executed if call failed. |
|
| Rule name. |
Resource cascade_number
Name | Type | Description |
---|---|---|
|
| Required. |
|
| Required. |
Resource fields
Name | Type | Description |
---|---|---|
|
| Default: False |
|
| One of 'no_answer', 'busy', 'any'. Default: any |
|
| One of 'no_answer', 'busy', 'any'. Default: any |
|
| |
|
| Default: False |
|
| Default: True |
|
| |
|
| |
|
| |
|
| |
|
| Resource id. |
|
| One of 'registered', 'unreachable', 'any'. Default: any |
|
| |
|
| Default: False |
|
| |
|
| |
|
| |
|
| Default: True |
|
|
Resource cascade_number
Name | Type | Description |
---|---|---|
|
| Required. |
|
| Required. |
GET /extension/{extension_id}/incom_rule/{rule_id
}
Get extension incoming call rule by id
Path parameters
Name | Type | Description |
---|---|---|
|
| Required. |
|
| Required. |
Resource fields
Name | Type | Description |
---|---|---|
|
| Default: False |
|
| One of 'no_answer', 'busy', 'any'. Default: any |
|
| One of 'no_answer', 'busy', 'any'. Default: any |
|
| |
|
| Default: False |
|
| Default: True |
|
| |
|
| |
|
| |
|
| |
|
| Resource id. |
|
| One of 'registered', 'unreachable', 'any'. Default: any |
|
| |
|
| Default: False |
|
| |
|
| |
|
| |
|
| Default: True |
|
|
Resource cascade_number
Name | Type | Description |
---|---|---|
|
| Required. |
|
| Required. |
DELETE /extension/{extension_id}/incom_rule/{rule_id
}
Delete extension incoming call rule by id
Path parameters
Name | Type | Description |
---|---|---|
|
| Required. |
|
| Required. |
POST /extension/{extension_id}/interval/
Add interval
Path parameters
Name | Type | Description |
---|---|---|
|
| Required. |
JSON parameters
Name | Type | Description |
---|---|---|
|
| Required. Interval timezone. |
|
| Required. Datetime conditions. |
|
| Required. Interval name. |
Resource condition
Name | Type | Description |
---|---|---|
|
| Start datetime formatted as yyyy-mm-dd hh:mm:ss. if start_datetime and end_datetime passed, other condition parameters will be ignored. |
|
| Start day of week sun = 1, mon = 2, etc. Min: 1. Max: 7. |
|
| Min: 1. |
|
| Start datetime formatted as yyyy-mm-dd. |
|
| Month. Min: 1. Max: 12. |
|
| End day of week sun = 1, mon = 2, etc. Min: 1. Max: 7. |
|
| Min: 1. |
|
| End month day. Min: 1. Max: 31. |
|
| Start month day. Min: 1. Max: 31. |
|
| End time of day. |
|
| Start time of day. |
|
| End datetime formatted as yyyy-mm-dd hh:mm:ss. if start_datetime and end_datetime passed, other condition parameters will be ignored. |
Resource fields
Name | Type | Description |
---|---|---|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| Resource id. |
Resource interval_condition
Name | Type | Description |
---|---|---|
|
| |
|
| Start day of week sun = 1, mon = 2, etc. |
|
| Min: 1. |
|
| Start datetime formatted as yyyy-mm-dd. |
|
| |
|
| End day of week sun = 1, mon = 2, etc. |
|
| Min: 1. |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
GET /extension/{extension_id}/interval/
Get interval list
Path parameters
Name | Type | Description |
---|---|---|
|
| Required. |
Resource fields
Name | Type | Description |
---|---|---|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| Resource id. |
Resource interval_condition
Name | Type | Description |
---|---|---|
|
| |
|
| Start day of week sun = 1, mon = 2, etc. |
|
| Min: 1. |
|
| Start datetime formatted as yyyy-mm-dd. |
|
| |
|
| End day of week sun = 1, mon = 2, etc. |
|
| Min: 1. |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
PUT /extension/{extension_id}/interval/{interval_id
}
Update interval
Path parameters
Name | Type | Description |
---|---|---|
|
| Required. |
|
| Required. |
JSON parameters
Name | Type | Description |
---|---|---|
|
| Required. Interval timezone. |
|
| Required. Datetime conditions. |
|
| Required. Interval name. |
Resource condition
...
Name
...
Type
...
Description
...
start_datetime
...
string
...
Start datetime formatted as yyyy-mm-dd hh:mm:ss. if start_datetime and end_datetime passed, other condition parameters will be ignored.
...
start_dow
...
integer
...
Start day of week sun = 1, mon = 2, etc. Min: 1. Max: 7.
...
sched_skip_days
...
integer
...
Min: 1.
...
sched_start_date
...
string
...
Start datetime formatted as yyyy-mm-dd.
...
month
...
integer
...
Month. Min: 1. Max: 12.
...
end_dow
...
integer
...
End day of week sun = 1, mon = 2, etc. Min: 1. Max: 7.
...
sched_active_days
...
integer
...
Min: 1.
...
end_mday
...
integer
...
End month day. Min: 1. Max: 31.
...
start_mday
...
integer
...
Start month day. Min: 1. Max: 31.
...
end_time
...
string
...
End time of day.
...
start_time
...
string
...
Start time of day.
...
end_datetime
...
string
...
/{extension_id}/incom_rule/order/
Get current rules order
Path parameters
Name | Type | Description |
---|---|---|
|
| Required. |
Resource fields
Name | Type | Description |
---|---|---|
|
| Default: [] |
...
PUT /extension/{extension_id}/incom_rule/{rule_id
}
Update extension incoming call rule by id
Path parameters
Name | Type | Description |
---|---|---|
|
| Required. |
|
| Required. |
JSON parameters
Name | Type | Description |
---|---|---|
|
| Allow public called destinations to transfer calls. |
|
| Extension call status. One of 'no_answer', 'busy', 'any'. |
|
| Call status. One of 'no_answer', 'busy', 'any'. |
|
| Transfer destination for transfer rule. multiple destinations divided by space. |
|
| Enable call screening for transfer call. |
|
| Rule is active. |
|
| Time interval id. |
|
| Caller id matching method. One of 'matches', 'not_matches', 'anonymous', 'any'. |
|
| Rule control code. |
|
| Caller id. |
|
| While transfer play ring back tones instead of early media. |
|
| Extension status. One of 'registered', 'unreachable', 'any'. |
|
| Ring to transfer destination this count of seconds. |
|
| Sound id for playfile rule. |
|
| List of elements for cascade rule. |
|
| Rule type. One of 'busy', 'transfer', 'hangup', 'playfile', 'voicemail', 'cascade', 'simple_transfer', 'simple_cascade'. |
|
| If rule is final, next rules will be not executed if call failed. |
|
| Rule name. |
Resource fields
Name | Type | Description |
---|---|---|
|
| Default: False |
|
| One of 'no_answer', 'busy', 'any'. Default: any |
|
| One of 'no_answer', 'busy', 'any'. Default: any |
|
| |
|
| Default: False |
|
| Default: True |
|
| |
|
| |
|
| |
|
| |
|
| Resource id. |
|
| One of 'registered', 'unreachable', 'any'. Default: any |
|
| |
|
| Default: False |
|
| |
|
| |
|
| |
|
| Default: True |
|
|
GET /extension/{extension_id}/incom_rule/{rule_id
}
Get extension incoming call rule by id
Path parameters
Name | Type | Description |
---|---|---|
|
| Required. |
|
| Required. |
Resource fields
Name | Type | Description |
---|---|---|
|
| Default: False |
|
| One of 'no_answer', 'busy', 'any'. Default: any |
|
| One of 'no_answer', 'busy', 'any'. Default: any |
|
| |
|
| Default: False |
|
| Default: True |
|
| |
|
| |
|
| |
|
| |
|
| Resource id. |
|
| One of 'registered', 'unreachable', 'any'. Default: any |
|
| |
|
| Default: False |
|
| |
|
| |
|
| |
|
| Default: True |
|
|
DELETE /extension/{extension_id}/incom_rule/{rule_id
}
Delete extension incoming call rule by id
Path parameters
Name | Type | Description |
---|---|---|
|
| Required. |
|
| Required. |
...
POST /extension/{extension_id}/interval/
Add interval
Path parameters
Name | Type | Description |
---|---|---|
|
| Required. |
JSON parameters
Name | Type | Description |
---|---|---|
|
| Required. Interval timezone. |
|
| Required. Datetime conditions. |
|
| Required. Interval name. |
Resource fields
Name | Type | Description |
---|---|---|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| Resource id. |
...
GET /extension/{extension_id}/interval/
Get interval list
Path parameters
Name | Type | Description |
---|---|---|
|
| |
|
| Start day of week sun = 1, mon = 2, etc. |
|
| Min: 1. |
|
| Start datetime formatted as yyyy-mm-dd. |
|
| |
|
| End day of week sun = 1, mon = 2, etc. |
|
| Min: 1. |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
...
Required. |
Resource fields
Name | Type | Description |
---|---|---|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| Resource id. |
...
PUT /extension/{extension_id}/interval/{interval_id
}
Get Update interval
Path parameters
Name | Type | Description |
---|---|---|
|
| Required. |
|
| Required. |
JSON parameters
Name | Type | Description |
---|---|---|
|
| Required. Interval timezone. |
|
| Required. Datetime conditions. |
|
| Required. Interval name. |
Resource fields
Name | Type | Description |
---|---|---|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| Resource id. |
Resource interval_condition
...
Name
...
Type
...
Description
...
start_datetime
...
string
...
start_dow
...
integer
...
Start day of week sun = 1, mon = 2, etc.
...
sched_skip_days
...
integer
...
Min: 1.
...
sched_start_date
...
string
...
Start datetime formatted as yyyy-mm-dd.
...
month
...
integer
...
end_dow
...
integer
...
End day of week sun = 1, mon = 2, etc.
...
sched_active_days
...
integer
...
Min: 1.
...
end_mday
...
integer
...
start_mday
...
integer
...
end_time
...
string
...
type
...
string
...
start_time
...
string
...
end_datetime
...
GET /extension/{extension_id}/interval/{interval_id
}
Get interval
Path parameters
Name | Type | Description |
---|---|---|
|
| Required. |
|
| Required. |
Resource fields
Name | Type | Description |
---|---|---|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| Resource id. |
DELETE /extension/{extension_id}/interval/{interval_id
}
...
Name | Type | Description | |||
---|---|---|---|---|---|
|
| Variable name for transfer_from_variable. | |||
|
| Call status. One of 'no_answer', 'busy', 'any'. Default: any | |||
|
| Playing method to play digits. One of 'pronounced', 'iterated', 'None'. | |||
|
| If true - classic ivr navigation from the keyboard will be enabled after recognition (if none of the matches were received earlier). | |||
|
| Caller id. | |||
|
| Number of times to wait for final words recognitions. | |||
|
| Variable value for variable-based condition. | |||
|
| Variable name for play_digits_variable. | |||
|
| Call interactive method. One of 'GET', 'POST', 'None'. Default: GET | |||
|
| Timeout in milliseconds before stop listen voice and start recognize. | |||
|
| Maximum digits amount for record_digits. | |||
|
| If true - transfer to dst from variable will be simple, default false. Default: False | |||
|
| Maximum digits to terminate listen voice and start recognize. | |||
|
| Variable name for variable-based condition. | |||
|
| Caller id matching method. One of 'matches', 'not_matches', 'anonymous', 'any'. Default: any | |||
|
| Context option to jump. | |||
|
| Silence duration in milliseconds. | |||
|
| Variable name for set_variable. | |||
|
| Caller_id_number. | |||
|
| One of 'normal', 'busy'. Default: normal | |||
|
| If rule is final, next rules will be not executed if call failed. Default: True | |||
|
| Sound to play. | |||
|
| Sound type. One of 'background', 'foreground', 'None'. | |||
|
| ||||
|
| Call interactive url. | |||
|
| Insert new rule in position. | |||
|
| Caller_id_name. | |||
|
| List of elements for voice helper rule. | |||
|
| Digits to play. | |||
|
| Rule name. | |||
|
| Variable name for record_digits. | |||
|
| Check if sound in variable- if so - file from variable will be played instead other sound. | |||
|
| Rule time interval. | |||
|
| Record digits timeout in milliseconds. | |||
|
| Transfer destination. | |||
|
| Context to jump. | |||
|
| Required. Rule action. One of 'transfer', 'hangup', 'play_sound', 'play_silence', 'jump_to_context', 'play_digits', 'call_interactive', 'transfer_from_variable', 'set_variable', 'voicemail', 'simple_transfer', 'set_caller_id_name', 'set_caller_id_number', 'record_digits', 'play_digits_from_variable', 'quality_rate', 'voice_helper', 'start_record'. | |||
|
| Variable value for set_variable. |
|
| Call interactive timout. |
|
| Id of sound to play record_digits. |
Resource voice_helper_rules
Name | Type | Description |
---|---|---|
|
| Required. |
|
| Required |
|
| Call interactive timout. |
|
| Id of sound to play record_digits. |
Resource fields
Name | Type | Description |
---|---|---|
|
| |
|
| Default: any |
|
| |
|
| Default: True |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| Resource id. |
|
| |
|
| Default: False |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| Default: normal |
|
| Default: True |
|
| |
|
| |
|
| Default: 5 |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| Default: False |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
Name | Type | Description |
|
|
Resource voice_helper_rules
|
| Required. |
|
| Required. |
GET /extension/{extension_id}/ivr/context/{context_id}/options/{option_digits}/rules/
...
Name | Type | Description |
---|---|---|
|
| |
|
| Default: any |
|
| |
|
| Default: True |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| Resource id. |
|
| |
|
| Default: False |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| Default: normal |
|
| Default: True |
|
| |
|
| |
|
| Default: 5 |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| Default: False |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
Resource voice_helper_rules
Name | Type | Description | |||
---|---|---|---|---|---|
|
| Required. |
|
| Required. |
...
PUT /extension/{extension_id}/ivr/context/{context_id}/options/{option_digits}/rules/order/
...
Name | Type | Description |
---|---|---|
|
| Variable name for transfer_from_variable. |
|
| Call status. One of 'no_answer', 'busy', 'any'. |
|
| Playing method to play digits. One of 'pronounced', 'iterated', 'None'. |
|
| If true - classic ivr navigation from the keyboard will be enabled after recognition (if none of the matches were received earlier). |
|
| Caller id. |
|
| Number of times to wait for final words recognitions. |
|
| Variable value for variable-based condition. |
|
| Variable name for play_digits_variable. |
|
| Call interactive method. One of 'GET', 'POST', 'None'. |
|
| Timeout in milliseconds before stop listen voice and start recognize. |
|
| Maximum digits amount for record_digits. |
|
| If true - transfer to dst from variable will be simple, default false. Default: False |
|
| Maximum digits to terminate listen voice and start recognize. |
|
| Variable name for variable-based condition. |
|
| Caller id matching method. One of 'matches', 'not_matches', 'anonymous', 'any'. |
|
| Context option to jump. |
|
| Silence duration in milliseconds. |
|
| Variable name for set_variable. |
|
| Caller_id_number. |
|
| One of 'normal', 'busy'. |
|
| If rule is final, next rules will be not executed if call failed. |
|
| Sound to play. |
|
| Sound type. One of 'background', 'foreground', 'None'. |
|
| |
|
| Call interactive url. |
|
| Caller_id_name. |
|
| List of elements for voice helper rule. |
|
| Ring to transfer destination this count of seconds. |
|
| Digits to play. |
|
| Rule name. |
|
| Variable name for record_digits. |
|
| Check if sound in variable- if so - file from variable will be played instead other sound. |
|
| Rule time interval. |
|
| Record digits timeout in milliseconds. |
|
| Transfer destination. |
|
| Context to jump. |
|
| Rule action. One of 'transfer', 'hangup', 'play_sound', 'play_silence', 'jump_to_context', 'play_digits', 'call_interactive', 'transfer_from_variable', 'set_variable', 'voicemail', 'simple_transfer', 'set_caller_id_name', 'set_caller_id_number', 'record_digits', 'play_digits_from_variable', 'quality_rate', 'voice_helper', 'start_record'. |
|
| Variable value for set_variable. |
|
| Call interactive timout. |
|
| Id of sound to play record_digits. |
Resource voice_helper_rules
Name | Type | Description |
---|---|---|
|
| Required. |
|
| Required. |
Resource fields
Name | Type | Description |
---|---|---|
|
| |
|
| Default: any |
|
| |
|
| Default: True |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| Resource id. |
|
| |
|
| Default: False |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| Default: normal |
|
| Default: True |
|
| |
|
| |
|
| Default: 5 |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| Default: False |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
Name | Type | Description |
|
| Required. |
|
|
Resource voice_helper_rules
|
| Required. |
GET /extension/{extension_id}/ivr/context/{context_id}/options/{option_digits}/rules/{rule_id
}
...
Name | Type | Description |
---|---|---|
|
| |
|
| Default: any |
|
| |
|
| Default: True |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| Resource id. |
|
| |
|
| Default: False |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| Default: normal |
|
| Default: True |
|
| |
|
| |
|
| Default: 5 |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| Default: False |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
...
Name | Type | Description |
---|---|---|
|
| Required. |
|
| Required. |
DELETE /extension/{extension_id}/ivr/context/{context_id}/options/{option_digits}/rules/{rule_id
}
...
Name | Type | Description |
---|---|---|
|
| |
|
| |
|
| |
|
| Default: False |
|
| |
|
| |
|
| Default: default |
|
| |
|
| Default: True |
|
| |
|
|
Resource context_model
Name | Type | Description | |
---|---|---|---|
|
| ||
|
| ||
|
| ||
|
|
|
|
|
| ||
|
| Resource id. | |
|
| ||
|
| Context name. |
...
POST /extension/{extension_id}/mail_notification/
...
Name | Type | Description |
---|---|---|
|
| Default: False |
|
| |
|
| Default: [] |
Resource registration
Name | Type | Description |
---|---|---|
|
| |
|
| |
|
| |
|
| |
|
|
DELETE /extension/{extension_id}/registration/
...