Add an Outbound Queue
Add an outbound queue.
Request URL
POST {base_url}/{api_path}/outbound_queue/create?access_token={access_token}
Request parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
| name | Yes | String | Queue name. |
| number | Yes | String | Queue number. |
| fail_dest | Yes | String | The destination type of unanswered queue calls. Valid value:
|
| fail_dest_prefix | No | String | This parameter defines different settings depending on the destination type of
unanswered queue calls (fail_dest).
|
| fail_dest_value | No | String | The destination of unanswered queue calls. This parameter defines different
settings depending on the destination type of unanswered queue calls
(fail_dest).
|
| dynamic_agents | No | String | The extension numbers of dynamic agents. Note:
|
| static_agents | No | String | The extension numbers of static agents. Note:
|
| managers | No | String | The extension numbers of queue managers. Note:
|
| agent_prompt | No | String | The prompt to be played to agents when they answer a queue
call. Valid value:
|
| agent_timeout | No | Integer | Ringing timeout for agents (Unit: Second). Valid
value: 1 -
9999999.Note: If
an agent did not answer the call after the ringing
timeout, system will ring the next available agent
according to the ring strategy. |
| alert_info | No | String | The "Alert-info" Header in the INVITE request to trigger the IP phone to play distinctive ringtones when receiving an incoming call from this queue. |
| caller_announce_freq | No | Integer | The time interval to announce the number of people waiting
ahead to the callers (Unit: Second). Valid
value: |
| client_unique_ringtone | No | String | The distinctive ringtone that will be played on agents'
Linkus clients when they receive calls from this queue. Valid value:
|
| enb_announce_agent_id | No | Integer | Announce the agent ID to callers. Valid value:
|
| enb_announce_default_prompt | No | Integer | Periodically play the prompt "Thank You for Your Patience" to
callers while they are waiting in the queue. Valid value:
|
| enb_announce_hold_time | No | Integer | Periodically announce the estimated waiting time to callers
while they are waiting in the queue. Valid value:
|
| enb_announce_pos | No | Integer | When callers are waiting in the queue, periodically announce
the number of people waiting ahead of them. Valid value:
|
| enb_auto_pause | No | Integer | When the number of consecutive missed queue calls for an
agent reach the threshold, the system automatically pauses the
agent and sends a notification email. Valid value:
|
| enb_custom_language | No | Integer | Whether to enable custom prompt language for the queue. Valid value:
|
| enb_email_abandon_call | No | Integer | Notify queue managers by email when a queue call is
abandoned. Valid value:
|
| enb_email_miss_call | No | Integer | Notify queue managers by email when a queue call is
missed. Valid value:
|
| enb_extension_always_forward | No | Integer | Whether to apply the Always call forwarding
destinations of agents' extensions for the queue calls. After enabled, if an agent's extension has an Always call forwarding destination configured to Extension, Mobile Number, or External Number, and is currently in the corresponding presence, the system will directly ring the configured forwarding destination instead of the agent's extension upon receiving a queue call, while other agents still ring normally based on the ring strategy. Valid value:
|
| enb_queue_skill_based_routing | No | Integer | Whether to route queue calls based on agents' skill
levels. Valid value:
|
| enb_ring_in_use | No | Integer | Assign queue calls to agents that are during an active call.
Valid value:
|
| join_prompt | No | String | The prompt played to callers when they join the
queue. Valid value:
|
| max_pause_miss_call | No | Integer | The threshold for agent's consecutive missed calls. Valid value:
Note: This
parameter is required when enb_auto_pause is set to
1. |
| max_wait_time | No | Integer | The maximum time that callers are allowed to wait for an
available agent in the queue (Unit: Second). Valid
value: 0 -
9999999.Note: 0 indicates no restriction on the
caller's waiting time in the queue. |
| moh | No | String | The music to be played when callers are waiting in the
queue. Valid value:
|
| play_full_join_prompt | No | Integer | Whether to play full join
prompt to callers before ringing members. Valid
value:
|
| prompt_language | No | String | The custom language for system prompts in the
queue. Valid value: The prompt language existed in PBX System Prompt. Note: You can query the available system
prompt languages using Get Menu Options
(
"menu":"system_prompt"). |
| retry_time | No | Integer | The time interval before ringing the next available agent
after the previous available agent's ringing timeout
(Unit: Second). Valid value:
|
| ring_strategy | No | String | The ring strategy of the queue. Valid value:
Note: If enb_queue_skill_based_routing is
set to 1, queue calls will be routed in descending order of the
agents' skill levels, and the ring strategy will only apply to agents with the
same skill level. |
| ringback_tone | No | String | The prompt or music to be played to
callers before members answer the calls. Valid value:
|
| sys_announce_freq | No | Integer | The time interval to play the queue announcements
(Unit: Second). Valid value:
|
| sys_announce_prompt | No | String | The queue announcement which is periodically played to
callers after they reach the queue. Valid value:
|
| wrap_up_time | No | Integer | Wrap-up time for agents, which can be used to handle
post-call tasks after finishing a call (Unit: Second).
Valid value: Note: Agents will NOT receive queue calls until the wrap-up time
is over. |
Response parameters
| Parameter | Type | Description |
|---|---|---|
| errcode | Integer | Returned error code.
Note: You can check the error code and
error message in Error Code and Error Message.
|
| errmsg | String | Returned message.
|
| id | Integer | The unique ID of the newly created outbound queue. |
Example
Request example
POST /openapi/v1.0/outbound_queue/create?access_token=xVx9wX2B38gSD0C2o4y9b9bd5QOPz2MK HTTP/1.1
Host: 192.168.5.150:8088
Content-Type: application/json
{
"name": "API Test Outbound Queue",
"number": "9100",
"fail_dest": "end_call",
"ring_strategy": "least_recent",
"static_agents": "3200",
"managers": "3200",
"agent_timeout": 30
}
Response example
HTTP/1.1 200 OK
{
"errcode": 0,
"errmsg": "SUCCESS",
"id": 8023
}