Query Information of Multiple Outbound Queues

Query the detailed information of multiple outbound queues at the same time.

Request URL

GET {base_url}/{api_path}/outbound_queue/query?access_token={access_token}

Request parameters

Parameter Required Type Description
ids Yes String The unique ID(s) of outbound queues.
Note:

Response parameters

Parameter Type Description
errcode Integer Returned error code.
  • 0: Succeed.
  • Non-zero value: Failed.
Note: You can check the error code and error message in Error Code and Error Message.
errmsg String Returned message.
  • SUCCESS: Succeed.
  • FAILURE: Failed.
data Array<Outbound_Queue> The list of outbound queues.
total_number Integer The actual number of outbound queues returned.
Outbound_Queue
Parameter Type Description
id Integer The unique ID of the outbound queue.
number String The outbound queue number.
name String The outbound queue name.
queue_type String The queue type. The value is fixed as outbound_queue.
ring_strategy String The ring strategy of the outbound queue.
  • ring_all: Ring all available agents simultaneously until someone answers.
  • least_recent: Ring the available agent that was least recently called.
  • fewest_calls: Ring the available agent with the fewest completed calls.
  • random: Ring the agents randomly.
  • rrmemory: Round robin with memory.
  • linear: Ring the available agent in specific order based on the type of agents in the queue.
moh String The music to be played when callers are waiting in the queue.
  • follow_system: Follow system setting (Set on PBX Settings > Voice Prompt > Prompt Preferences > Music on Hold).
  • Other value: The name of the MoH (Music on Hold) playlist.

agent_timeout Integer Ringing timeout for agents (Unit: Second).
retry_time Integer The time interval before ringing the next available agent after the previous available agent's ringing timeout (Unit: Second).
wrap_up_time Integer Wrap-up time for agents, which can be used to handle post-call tasks after finishing a call (Unit: Second).
Note: Agents will NOT receive queue calls until the wrap-up time is over.
enb_ring_in_use Integer Assign queue calls to agents that are during an active call.
  • 0: Disabled.
  • 1: Enabled.
agent_prompt String The prompt to be played to agents when they answer a queue call.
dynamic_agents String The extension numbers of dynamic agents.
static_agents String The extension numbers of static agents.
managers String The extension numbers of queue managers.
alert_info 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.
play_full_join_prompt Integer Whether the system plays full join prompt to callers before ringing members.
  • 0: Disabled - The system rings members as configured regardless of whether the join prompt is fully played.
  • 1: Enabled - The system rings members after playing full join prompt.
ringback_tone String The prompt or music played to callers before members answer the calls.
  • Empty string: Continue to play the previous stage's prompt; if no prompt exists, play the caller's own ring tone (beep sound).
  • Other value: The filename of custom prompt or the name of MoH (music on hold) playlist.
enb_custom_language Integer Whether custom prompt language is enabled for the queue.
  • 0: Disabled.
  • 1: Enabled.
prompt_language String The custom language for system prompts in the queue.
  • sound-ar:العربية (Arabic)
  • sound-cz:Čeština(Czech)
  • sound-de:Deutsch (German)
  • sound-en:English
  • sound-en_BR:English (British)
  • sound-es:Español/Castellano (Spanish Spain)
  • sound-es_LT:Español latino (Spanish Latin)
  • sound-fa:فارسی (Persian)
  • sound-fr:Française (French)
  • sound-gr:Ελληνικά (Greek)
  • sound-hr:hrvatski (Croatian)
  • sound-id:Bahasa Indonesia (Indonesian)
  • sound-it:Italiano (Italian)
  • sound-iw:עברית (Hebrew)
  • sound-nl:Nederlands (Dutch)
  • sound-pl:Polski (Polish)
  • sound-pt:Português (Portuguese)
  • sound-pt_BR:Português Brasil (Portuguese Brazil)
  • sound-ro:Română (Romanian)
  • sound-ru:Pусский (Russian)
  • sound-sk:Slovenčina(Slovak)
  • sound-sl:Slovenščina (Slovenian)
  • sound-sr:Cрпски (Serbian)
  • sound-th:ไทย (Thai)
  • sound-tr:Türk (Turkish)
  • sound-zh:中文 (Chinese)
  • sound-zh_hk:粤语 (Cantonese)
client_unique_ringtone String The filename of the distinctive ringtone configured for agents' Linkus clients.
max_wait_time Integer The maximum time that callers are allowed to wait for an available agent in the queue (Unit: Second).
fail_dest String The destination type of unanswered queue calls.
  • end_call: Hang Up.
  • extension: Extension.
  • ext_vm: Extension Voicemail.
  • group_vm: Group Voicemail.
  • ivr: IVR.
  • call_flow: Call Flow
  • ring_group: Ring Group.
  • queue: Queue.
  • external_num: External Number.
  • play_greeting: Play Prompt and Exit.
fail_dest_prefix String This parameter returns different values depending on the destination type of unanswered queue calls (fail_dest).
  • When the destination type is external_num, the parameter returns the dial-out prefix of the external number.
  • When the destination type is play_greeting, the parameter returns the play count of the prompt.
fail_dest_value String The destination of unanswered queue calls. This parameter returns different values depending on the destination type of unanswered queue calls (fail_dest).
  • When the destination type is play_greeting, this parameter returns the custom prompt file name. E.g. demo.wav.
  • When the destination type is extension, ext_vm, group_vm, ivr, call_flow, ring_group, or queue, this parameter returns the unique ID of the destination.

    For example, the destination is the extension 2002, then this parameter returns the extension ID 2.

  • When the destination type is external_num, the parameter returns the external number.
enb_auto_pause Integer When the number of consecutive missed queue calls for an agent reach a threshold, the system automatically pauses the agent and sends a notification email.
  • 0: Disabled.
  • 1: Enabled.
max_pause_miss_call Integer The threshold for agent's consecutive missed calls.
enb_queue_skill_based_routing Integer Whether skill-based routing is enabled.
  • 0: Disabled.
  • 1: Enabled.
enb_email_miss_call Integer Notify queue managers by email when a queue call is missed.
  • 0: Disabled.
  • 1: Enabled.
enb_email_abandon_call Integer Notify queue managers by email when a queue call is abandoned.
  • 0: Disabled.
  • 1: Enabled.
enb_announce_pos Integer When callers are waiting in the queue, periodically announce the number of people waiting ahead of them.
  • 0: Disabled.
  • 1: Enabled.
enb_announce_hold_time Integer Periodically announce the estimated waiting time to callers while they are waiting in the queue.
  • 0: Disabled.
  • 1: Enabled.
enb_announce_default_prompt Integer Periodically play the prompt "Thank You for Your Patience" to callers while they are waiting in the queue.
  • 0: Disabled.
  • 1: Enabled.
caller_announce_freq Integer The time interval to announce the number of people waiting ahead to the callers (Unit: Second).
sys_announce_prompt String The queue announcement which is periodically played to callers after they join the queue.
sys_announce_freq Integer The time interval to play the queue announcements (Unit: Second).
enb_announce_agent_id Integer Announce the agent ID to callers.
  • 0: Disabled.
  • 1: Enabled.
join_prompt String The prompt played to callers when they join the queue.
  • Empty string: Play the next stage's prompt; if no prompt exists, play the caller's own ringing tone (beep sound).
  • Other value: The filename of the custom prompt.
enb_extension_always_forward Integer Whether applying the Always call forwarding destinations of agents' extensions for the queue calls is enabled.
  • 0: Disabled.
  • 1: Enabled.

Example

Request example

GET /openapi/v1.0/outbound_queue/query?ids=8020,8023&access_token=xVx9wX2B38gSD0C2o4y9b9bd5QOPz2MK HTTP/1.1
Host: 192.168.5.150:8088

Response example

HTTP/1.1 200 OK
HTTP/1.1 200 OK
{
    "errcode": 0,
    "errmsg": "SUCCESS",
    "total_number": 2,
    "data": [
        {
            "id": 8020,
            "number": "6400",
            "name": "6400",
            "queue_type": "outbound_queue",
            "ring_strategy": "linear",
            "moh": "",
            "agent_timeout": 30,
            "retry_time": 0,
            "wrap_up_time": 30,
            "enb_ring_in_use": 0,
            "agent_prompt": "",
            "dynamic_agents": "",
            "static_agents": "3200",
            "managers": "",
            "alert_info": "alert-community-2",
            "play_full_join_prompt": 1,
            "ringback_tone": "",
            "enb_custom_language": 0,
            "prompt_language": "",
            "client_unique_ringtone": "",
            "max_wait_time": 1800,
            "fail_dest": "end_call",
            "fail_dest_prefix": "",
            "fail_dest_value": "",
            "enb_auto_pause": 0,
            "max_pause_miss_call": 0,
            "enb_queue_skill_based_routing": 0,
            "enb_email_miss_call": 1,
            "enb_email_abandon_call": 1,
            "enb_announce_pos": 1,
            "enb_announce_hold_time": 1,
            "enb_announce_default_prompt": 1,
            "caller_announce_freq": 30,
            "sys_announce_prompt": "",
            "sys_announce_freq": 60,
            "enb_announce_agent_id": 0,
            "join_prompt": "",
            "enb_extension_always_forward": 0
        },
        {
            "id": 8023,
            "number": "9102",
            "name": "API Test Outbound Queue 2",
            "queue_type": "outbound_queue",
            "ring_strategy": "least_recent",
            "moh": "",
            "agent_timeout": 30,
            "retry_time": 0,
            "wrap_up_time": 30,
            "enb_ring_in_use": 0,
            "agent_prompt": "",
            "dynamic_agents": "",
            "static_agents": "3200",
            "managers": "3200",
            "alert_info": "",
            "play_full_join_prompt": 0,
            "ringback_tone": "",
            "enb_custom_language": 0,
            "prompt_language": "",
            "client_unique_ringtone": "",
            "max_wait_time": 1800,
            "fail_dest": "end_call",
            "fail_dest_prefix": "",
            "fail_dest_value": "",
            "enb_auto_pause": 0,
            "max_pause_miss_call": 1,
            "enb_queue_skill_based_routing": 0,
            "enb_email_miss_call": 0,
            "enb_email_abandon_call": 0,
            "enb_announce_pos": 0,
            "enb_announce_hold_time": 0,
            "enb_announce_default_prompt": 0,
            "caller_announce_freq": 30,
            "sys_announce_prompt": "",
            "sys_announce_freq": 60,
            "enb_announce_agent_id": 0,
            "join_prompt": "",
            "enb_extension_always_forward": 0
        }
    ]
}