Update call queue member_state

POST /member_state/update
Update call queue member_state
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

Request body
application/json
  • id

    integer

    required

    The ID of the call queue.

    format : int64

  • status

    boolean

    required

    is_logined.
  • extension_id

    integer

    required

    The ID of the extension.

    format : int64

Sample Request

                      curl -v -X POST http://127.0.0.1:8990/api/call_queues/member_state/update \
                        -H "Content-Type: application/json" \
                        -H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
                          -d '{
    "id": 1234,
    "extension_id": 1234
}'
                      
                    

Responses

200
Successful operation
404
User not found
400
Invalid call queue ID supplied

Sample Response

                      
                      
                    

Retrieve call queue

GET /show
Retrieve call queue
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

  • id

    integer

    required

    The call queue's ID.

    format : int64

Sample Request

                      curl -v -X GET http://127.0.0.1:8990/api/call_queues/show \
                        -H "Content-Type: application/json" \
                        -H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
                      
                    

Responses

200
Successful operation
application/json
  • enable_black_list_prompt

    boolean

    enable play blacklist prompt.
  • notify_when_callback_ismade

    boolean

    notify_when_callback_ismade.
  • intro_prompt_fileid

    string

    intro_prompt file download id.
  • ring_time

    integer

    Duration that each extension will ring, in seconds.
  • intro_prompt_metadata_id

    integer

    intro_prompt_metadata_id.

    format : int64

  • moh_fileid

    string

    Music ON Hold file download ID.
  • notify_when_callback_fails

    boolean

    notify_when_callback_fails.
  • max_wait_time

    integer

    The maximum time limit for waiting in the queue, in seconds. After this time interval, the call will be handled as pre-configured.
  • extension_number

    string

    Call queue's extension number.
  • id

    integer

    The ID of the call queue.

    format : int64

  • language

    string

    language.
  • black_list_metadata_id

    integer

    black_list_metadata_id.

    format : int64

  • enable_intro_prompt

    boolean

    enable play intro prompt.
  • announce_caller_position_interval

    integer

    Time interval for repeating announcement of the waiting position, in seconds. This parameter will be available only if it's enabled to announce position to caller.
  • outbound_caller_id

    string

    Call queue's outbound caller id.
  • enable_play_full_intro

    boolean

    enable play full intro prompt.
  • polling_strategy

    string

    RING_SIMULTANEOUSLY: Ring Simultaneously. PRIORITIZED_HUNT: Prioritized Hunt. CYCLIC_HUNT: Cyclic Hunt. LEAST_WORKED_HUNT: To ring extension who has least answering hours. PAGING/INTERCOM: Paging or Intercom. RING_SIMULTANEOUSLY: To ring all the extensions simultaneously.

    enum : ['RING_SIMULTANEOUSLY', 'PRIORITIZED_HUNT', 'CYCLIC_HUNT', 'LEAST_WORKED_HUNT', 'PAGING/INTERCOM']

  • notify_when_slatime_breached

    boolean

    Notify Queue manager via email when SLA time has been Breached.
  • max_callers

    integer

    The maximum number of callers allowed in queue.
  • queue_manager_members

    array

    Show child attributes
  • intro_prompt_filename

    string

    intro_prompt_filename.
  • sla_time

    integer

    format : uint32

  • black_list_fileid

    string

    blacklist file download ID.
  • name

    string

    Call queue's name.
  • blacklist

    array

    Show child attributes
  • notify_when_queuecall_islost

    boolean

    Notify Queue Manager when a Queue call is lost.
  • black_list_filename

    string

    blacklist filename
  • enable_announce_caller_position

    boolean

    Queue will announce the actual position of the caller who's currently waiting in the queue.
  • moh_filename

    string

    moh_filename
  • moh_metadata_id

    integer

    Music ON Hold file metadata ID.

    format : int64

  • members

    array

    Show child attributes
  • forward

    object

    Show child attributes

Sample Response

                      
{
    "polling_strategy": "RING_SIMULTANEOUSLY",
    "intro_prompt_fileid": "123",
    "ring_time": 123,
    "intro_prompt_metadata_id": 123,
    "moh_fileid": "123",
    "notify_when_callback_fails": true,
    "max_wait_time": 123,
    "extension_number": "1234",
    "id": 1234,
    "language": "ch",
    "black_list_metadata_id": 123,
    "black_list_fileid": "123",
    "announce_caller_position_interval": 123,
    "outbound_caller_id": "1234",
    "enable_play_full_intro": false,
    "notify_when_callback_ismade": "tue",
    "notify_when_slatime_breached": true,
    "max_callers": 123,
    "intro_prompt_filename": "filename",
    "sla_time": 123,
    "enable_black_list_prompt": false,
    "name": "1234",
    "enable_intro_prompt": false,
    "notify_when_queuecall_islost": true,
    "black_list_filename": "123",
    "enable_announce_caller_position": true,
    "moh_filename": "123",
    "moh_metadata_id": 123
}
                      
                    

Retrieve a collection of call queues member state

GET /member_state/list
Retrieve a collection of call queues member state
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

  • id

    integer

    required

    The call queue's ID.

    format : int64

Sample Request

                      curl -v -X GET http://127.0.0.1:8990/api/call_queues/member_state/list \
                        -H "Content-Type: application/json" \
                        -H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
                      
                    

Responses

200
Successful operation
application/json
  • wait_members

    array

    Show child attributes
  • count

    integer

Sample Response

                      
{
    "count": 100
}
                      
                    

Destroy call queue

POST /destroy
Destroy call queue
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

Request body
application/json
  • id

    integer

    required

    The ID of the call queue.

    format : int64

Sample Request

                      curl -v -X POST http://127.0.0.1:8990/api/call_queues/destroy \
                        -H "Content-Type: application/json" \
                        -H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
                          -d '{
    "id": 1234
}'
                      
                    

Responses

200
Successful operation
404
User not found
400
Invalid call queue ID supplied

Sample Response

                      
                      
                    

call queue anwser specified call

POST /specifiedcall/anwser
call queue anwser specified call
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

Request body
application/json
  • manager_id

    integer

    required

    The ID of the extension.

    format : int64

  • id

    integer

    required

    The ID of the call queue.

    format : int64

  • session_id

    integer

    required

    The ID of the session.

    format : int64

Sample Request

                      curl -v -X POST http://127.0.0.1:8990/api/call_queues/specifiedcall/anwser \
                        -H "Content-Type: application/json" \
                        -H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
                          -d '{
    "id": 1234,
    "session_id": 1234,
    "manager_id": 1234
}'
                      
                    

Responses

200
Successful operation
404
User not found
400
Invalid call queue ID supplied

Sample Response

                      
                      
                    

call queue delete all blacklist

POST /blacklist/destroy_all
call queue delete all blacklist
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

Request body
application/json
  • id

    integer

    required

    The ID of the call queue.

    format : int64

Sample Request

                      curl -v -X POST http://127.0.0.1:8990/api/call_queues/blacklist/destroy_all \
                        -H "Content-Type: application/json" \
                        -H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
                          -d '{
    "id": 1234
}'
                      
                    

Responses

200
Successful operation
404
User not found
400
Invalid call queue ID supplied

Sample Response

                      
                      
                    

Retrieve a collection of call wait queues

GET /wait/list
Retrieve a collection of call wait queues
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

  • id

    integer

    required

    The call queue's ID.

    format : int64

Sample Request

                      curl -v -X GET http://127.0.0.1:8990/api/call_queues/wait/list \
                        -H "Content-Type: application/json" \
                        -H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
                      
                    

Responses

200
Successful operation
application/json
  • wait_members

    array

    Show child attributes
  • count

    integer

Sample Response

                      
{
    "count": 100
}
                      
                    

call queue add blacklist

POST /blacklist/create
call queue add blacklist
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

Request body
application/json
  • id

    integer

    required

    The ID of the call queue.

    format : int64

  • description

    string

    required

  • number

    string

    required

    Call queue's extension number.

Sample Request

                      curl -v -X POST http://127.0.0.1:8990/api/call_queues/blacklist/create \
                        -H "Content-Type: application/json" \
                        -H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
                          -d '{
    "id": 1234,
    "number": "1234",
    "description": "c  description"
}'
                      
                    

Responses

200
Successful operation
application/json
  • id

    integer

    The ID of the blacklist.

    format : int64

404
User not found
400
Invalid call queue ID supplied

Sample Response

                      
{}
                      
                    

Retrieve a collection of call queues

GET /list
Retrieve a collection of call queues
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

  • pagination

    integer

    required

    The pagination of paging.

    format : int32

  • pagesize

    integer

    required

    The size of paging.
  • sort_by

    string

    optional

    Values include "DEFAULT" and "Optional". Default value will be used when user does not specify value for this field.

    enum : ['DEFAULT', 'OPTIONAL']

Sample Request

                      curl -v -X GET http://127.0.0.1:8990/api/call_queues/list \
                        -H "Content-Type: application/json" \
                        -H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
                      
                    

Responses

200
Successful operation
application/json
  • sort_by

    string

  • pagesize

    integer

  • queues

    array

    Show child attributes
  • pagination

    integer

  • count

    integer

Sample Response

                      
{
    "sort_by": "DEFAULT",
    "pagesize": 10,
    "pagination": 8,
    "count": 100
}
                      
                    

Retrieve a collection of call queues blacklist

GET /blacklist/list
Retrieve a collection of call queues blacklist
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

  • id

    integer

    required

    The call queue's ID.

    format : int64

Sample Request

                      curl -v -X GET http://127.0.0.1:8990/api/call_queues/blacklist/list \
                        -H "Content-Type: application/json" \
                        -H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
                      
                    

Responses

200
Successful operation
application/json
  • wait_members

    array

    Show child attributes
  • count

    integer

Sample Response

                      
{
    "count": 100
}
                      
                    

Create call queue

POST /create
Add a new call queue.
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

Request body
application/json
  • notify_when_callback_ismade

    boolean

    required

    notify_when_callback_ismade.
  • ring_time

    integer

    required

    Duration that each extension will ring, in seconds.
  • skip_busy_member

    boolean

    required

    Indicates if extension members on call will be skipped.
  • enable_intro_prompt

    boolean

    required

    enable play intro prompt.
  • notify_when_callback_fails

    boolean

    required

    notify_when_callback_fails.
  • max_wait_time

    integer

    required

    The maximum time limit for waiting in the queue, in seconds. After this time interval, the call will be handled as pre-configured.
  • extension_number

    string

    required

    Call queue's extension number.
  • black_list_metadata_id

    integer

    required

    black_list_metadata_id.

    format : int64

  • intro_prompt_metadata_id

    integer

    required

    intro_prompt_metadata_id.

    format : int64

  • announce_caller_position_interval

    integer

    required

    Time interval for repeating announcement of the waiting position, in seconds. This parameter will be available only if it's enabled to announce position to caller.
  • enable_black_list_prompt

    boolean

    required

    enable play blacklist prompt.
  • enable_play_full_intro

    boolean

    required

    enable play full intro prompt.
  • polling_strategy

    string

    required

    RING_SIMULTANEOUSLY: Ring Simultaneously. PRIORITIZED_HUNT: Prioritized Hunt. CYCLIC_HUNT: Cyclic Hunt. LEAST_WORKED_HUNT: To ring extension who has least answering hours. PAGING/INTERCOM: Paging or Intercom. RING_SIMULTANEOUSLY: To ring all the extensions simultaneously.

    enum : ['RING_SIMULTANEOUSLY', 'PRIORITIZED_HUNT', 'CYCLIC_HUNT', 'LEAST_WORKED_HUNT', 'PAGING/INTERCOM']

  • notify_when_slatime_breached

    boolean

    required

    Notify Queue manager via email when SLA time has been Breached.
  • max_callers

    integer

    required

    The maximum number of callers allowed in queue.
  • queue_manager_members

    array

    required

    Extension managers in current call queue.
  • sla_time

    integer

    required

    format : uint32

  • outbound_caller_id

    string

    required

    Call queue's outbound caller id.
  • forward

    object

    required

    Show child attributes
  • blacklist

    array

    required

  • notify_when_queuecall_islost

    boolean

    required

    Notify Queue Manager when a Queue call is lost.
  • enable_announce_caller_position

    boolean

    required

    Queue will announce the actual position of the caller who's currently waiting in the queue.
  • moh_metadata_id

    integer

    required

    Music ON Hold file metadata ID.

    format : int64

  • members

    array

    required

    Extension ids in current call queue.
  • name

    string

    required

    Call queue's name.

Sample Request

                      curl -v -X POST http://127.0.0.1:8990/api/call_queues/create \
                        -H "Content-Type: application/json" \
                        -H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
                          -d '{
    "notify_when_callback_ismade": "tue",
    "polling_strategy": "RING_SIMULTANEOUSLY",
    "ring_time": 123,
    "intro_prompt_metadata_id": 123,
    "enable_announce_caller_position": true,
    "notify_when_callback_fails": true,
    "max_wait_time": 123,
    "extension_number": "1234",
    "notify_when_queuecall_islost": true,
    "sla_time": 123,
    "enable_black_list_prompt": false,
    "max_callers": 123,
    "notify_when_slatime_breached": true,
    "name": "1234",
    "enable_intro_prompt": false,
    "black_list_metadata_id": 123,
    "skip_busy_member": false,
    "announce_caller_position_interval": 123,
    "outbound_caller_id": "1234",
    "moh_metadata_id": 123,
    "enable_play_full_intro": false
}'
                      
                    

Responses

200
Created call queue
application/json
  • id

    integer

    The ID of the call queue.

    format : int64

Sample Response

                      
{
    "id": 1234
}
                      
                    

call queue delete blacklist

POST /blacklist/destroy
call queue delete blacklist
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

Request body
application/json
  • id

    integer

    required

    The ID of the call queue.

    format : int64

  • blacklist_ids

    array

    required

    blacklist ids.

Sample Request

                      curl -v -X POST http://127.0.0.1:8990/api/call_queues/blacklist/destroy \
                        -H "Content-Type: application/json" \
                        -H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
                          -d '{
    "id": 1234
}'
                      
                    

Responses

200
Successful operation
404
User not found
400
Invalid call queue ID supplied

Sample Response

                      
                      
                    

Update call queue

POST /update
Update call queue
Path parameters
  • access_token

    string

    required

    token to be passed as a header

    minLength: 64

    maxLength: 64

Request body
application/json
  • notify_when_callback_ismade

    boolean

    required

    notify_when_callback_ismade.
  • ring_time

    integer

    required

    Duration that each extension will ring, in seconds.
  • skip_busy_member

    boolean

    required

    Indicates if extension members on call will be skipped.
  • enable_intro_prompt

    boolean

    required

    enable play intro prompt.
  • notify_when_callback_fails

    boolean

    required

    notify_when_callback_fails.
  • max_wait_time

    integer

    required

    The maximum time limit for waiting in the queue, in seconds. After this time interval, the call will be handled as pre-configured.
  • id

    integer

    required

    The ID of the call queue.

    format : int64

  • black_list_metadata_id

    integer

    required

    black_list_metadata_id.

    format : int64

  • intro_prompt_metadata_id

    integer

    required

    intro_prompt_metadata_id.

    format : int64

  • announce_caller_position_interval

    integer

    required

    Time interval for repeating announcement of the waiting position, in seconds. This parameter will be available only if it's enabled to announce position to caller.
  • enable_black_list_prompt

    boolean

    required

    enable play blacklist prompt.
  • enable_play_full_intro

    boolean

    required

    enable play full intro prompt.
  • polling_strategy

    string

    required

    RING_SIMULTANEOUSLY: Ring Simultaneously. PRIORITIZED_HUNT: Prioritized Hunt. CYCLIC_HUNT: Cyclic Hunt. LEAST_WORKED_HUNT: To ring extension who has least answering hours. PAGING/INTERCOM: Paging or Intercom. RING_SIMULTANEOUSLY: To ring all the extensions simultaneously.

    enum : ['RING_SIMULTANEOUSLY', 'PRIORITIZED_HUNT', 'CYCLIC_HUNT', 'LEAST_WORKED_HUNT', 'PAGING/INTERCOM']

  • notify_when_slatime_breached

    boolean

    required

    Notify Queue manager via email when SLA time has been Breached.
  • max_callers

    integer

    required

    The maximum number of callers allowed in queue.
  • queue_manager_members

    array

    required

    Extension managers in current call queue.
  • sla_time

    integer

    required

    format : uint32

  • outbound_caller_id

    string

    required

    Call queue's outbound caller id.
  • forward

    object

    required

    Show child attributes
  • blacklist

    array

    required

  • notify_when_queuecall_islost

    boolean

    required

    Notify Queue Manager when a Queue call is lost.
  • enable_announce_caller_position

    boolean

    required

    Queue will announce the actual position of the caller who's currently waiting in the queue.
  • moh_metadata_id

    integer

    required

    Music ON Hold file metadata ID.

    format : int64

  • members

    array

    required

    Extension ids in current call queue.
  • name

    string

    required

    Call queue's name.

Sample Request

                      curl -v -X POST http://127.0.0.1:8990/api/call_queues/update \
                        -H "Content-Type: application/json" \
                        -H "access_token: 4DFCF1D4C30B4D798ECE3AE43769F008" \
                          -d '{
    "notify_when_callback_ismade": "tue",
    "polling_strategy": "RING_SIMULTANEOUSLY",
    "ring_time": 123,
    "skip_busy_member": false,
    "enable_announce_caller_position": true,
    "notify_when_callback_fails": true,
    "max_wait_time": 123,
    "notify_when_slatime_breached": true,
    "notify_when_queuecall_islost": true,
    "sla_time": 123,
    "enable_black_list_prompt": false,
    "max_callers": 123,
    "id": 1234,
    "name": "1234",
    "enable_intro_prompt": false,
    "black_list_metadata_id": 123,
    "intro_prompt_metadata_id": 123,
    "announce_caller_position_interval": 123,
    "outbound_caller_id": "1234",
    "moh_metadata_id": 123,
    "enable_play_full_intro": false
}'
                      
                    

Responses

200
Successful operation

Sample Response