Call queues allow you to route incoming calls to a group of users. For instance, you can use call queues to route calls to various departments in your organization such as sales, engineering, billing, customer service etc. Use this API to create a call queue. You can add phone users or common area phones to call queues.Prerequisites:
Phone extension number for the site. If a site code has been assigned to the site, provide the short extension number instead of the original extension number..
members
object
可选
A list of one or more phone users to be included in the call queue. Provide either users or common area phone(s). Provide at least one user in the users object.
common_area_phone_ids
array[string]
可选
Optional
Unique identifier of the Common Area Phone. This can be retrieved from the List Common Area Phones API.
users
array [object {2}]
可选
Users object. Provide either the id (userId) field or the email address of the user.
name
string
必需
Name of the Call Queue.
>= 1 字符<= 32 字符
site_id
string
必需
Unique identifier of the site. Required only if multiple sites have been enabled. This can be retrieved from the List Phone Sites API.
返回响应
🟢201**HTTP Status Code:** `201` **Created**<br>
Call Queue created successfully.
application/json
Body
extension_number
integer
可选
Extension number assigned for the Call Queue.
id
string
可选
Unique Identifier of the Call Queue.
name
string
可选
Name of the Call Queue.
status
string
可选
Status of the Call Queue. active: Call queue is enabled and active. inactive: Call queue is inactive. Inactive call queues cannot be called but will retain its settings and appear in the Call Queues page.
🟠400
**HTTP Status Code:** `400` **Bad Request**<br><br>
**Error Code:** `300`<br>
Validation Failed.<br>
Multiple Site is disabled.<br>
Site does not exist.<br> {extensionNumber} is out of range<br> Exceeded the maximum number to add members per time<br><br>
🟠404**HTTP Status Code:** `404` **Not Found**<br><br>
**Error Code:** `1001`<br>
User not found: {userId}