Search Outbound Queues

Search outbound queues.

Request URL

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

Request parameters

Parameter Required Type Description
search_value No String The search keyword, fuzzy-matched against the queue number or the queue name. If not specified, all queues are returned.
page No Integer Define which page is displayed.
page_size No Integer Define how many records per page.
sort_by No String Define the sorting field.

Valid value:

  • id: Sort by ID.
  • number: Sort by queue number.
  • name: Sort by queue name.
  • ring_strategy: Sort by ring strategy.
order_by No String Define the display order.

Valid value:

  • desc: Descending order.
  • asc: Ascending order.

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_List> The list of outbound queues.
total_number Integer The total number of outbound queues.
Outbound_Queue_List
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.
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.
client_unique_ringtone String The filename of the distinctive ringtone configured for agents' Linkus clients.

Example

Request example

GET /openapi/v1.0/outbound_queue/search?search_value=API&page=1&page_size=2&access_token=xVx9wX2B38gSD0C2o4y9b9bd5QOPz2MK HTTP/1.1
Host: 192.168.5.150:8088

Response example

HTTP/1.1 200 OK
{
    "errcode": 0,
    "errmsg": "SUCCESS",
    "total_number": 1,
    "data": [
        {
            "id": 8023,
            "number": "9100",
            "name": "API Test Outbound Queue",
            "queue_type": "outbound_queue",
            "ring_strategy": "least_recent",
            "dynamic_agents": "",
            "static_agents": "3200",
            "managers": "3200",
            "client_unique_ringtone": ""
        }
    ]
}