Get a Queue
Retrieves the settings of a queue.
Request URL
GET {base_url}/uc-cconfig/api/v1/queues/{id}
Request parameters
- Headers
-
Parameter Required Type Description Authorization Yes String The access token used for authentication. Format: Bearer
{access_token}.x-tenant-code Yes String The tenant name. Note: You can obtain tenant name using the Query Tenants interface.
- Path parameters
-
Parameter Required Type Description id Yes String The ID of the queue. You can obtain the ID using the Search Queues interface.
Response parameters
| Parameter | Type | Description |
|---|---|---|
| requestId | String | The unique ID of the request, which can be used to quickly locate the request. |
| code | String | The HTTP status code of the request.
|
| message | String | The status message of the request. |
| detailMessage | String | The detailed error information. When the request is successful, this parameter returns empty. |
| result | Object<Queue_Data> | The queue details. |
- Queue_Data
-
Parameter Type Description id String The ID of the queue. extension String The extension number of the queue. name String The name of the queue. ringStrategy String The ringing strategy for distributing calls to agents:
RING_ALL: Ring all the agents at the same time.LONGEST_IDLE_AGENT: Ring the agent who has been idle for the longest time first.FEWEST_CALLS: Ring the agent who has answered the fewest calls first.RANDOM: Ring the agents in random order.ROUND_ROBIN: Ring the agents one by one in rotation.LINEAR: Ring the agents in the fixed order of the agent list.
maxWaitTime Integer The maximum time that a caller waits in the queue, in seconds. failoverDestination Object<Destination> The failover destination when the call is not answered within the maximum wait time. alertInfo String The Alert-Info SIP header for outbound calls, which is used to distinguish the ringing mode. ringTimeout Integer The ring timeout for each agent, in seconds. retryInterval Integer The retry interval after an agent does not answer, in seconds. wrapUpTime Integer The wrap-up time after a call ends, in seconds. ringInUse Boolean Whether to ring the agents who are on a call at the same time. agentAutoPause Boolean Whether to automatically pause an agent after consecutive missed calls. maxMissedCalls Integer The maximum number of consecutive missed calls that triggers the automatic pause. joinAnnouncement String The join announcement, which is the prompt played when a caller enters the queue. playJoinBeforeRing Boolean Whether to play the join announcement before ringing the agents. musicOnWait String The music on wait. positionAnnouncement Boolean Whether to announce the queue position to waiting callers. periodicAnnouncement String The prompt played periodically to waiting callers. waitingAnnouncementInterval Integer The interval between periodic announcements, in seconds. connectionAnnouncement String The prompt played to the caller before the agent answers. agentIdAnnouncement Boolean Whether to announce the agent ID. musicOnHold String The music on hold. customPromptLanguage Boolean Whether to use a custom prompt language. promptLanguage String The prompt language. staticAgents Array<Member_Info> The list of static agents. dynamicAgents Array<Member_Info> The list of dynamic agents. managers Array<Member_Info> The list of queue managers. notifyNoAnswer Boolean Whether to send an email notification when an agent does not answer. notifyAbandoned Boolean Whether to send an email notification when a caller abandons the call. maxCallers Integer The maximum number of callers waiting in the queue. endWaitingWhenNoAgents Boolean Whether to end the waiting when no agent is available. If enabled, the call is routed to the failover destination directly. endWaitingNoAgentConditions Array<String> The conditions based on which the waiting is ended when no agent is available:
OFFLINEPAUSERING_BUSYDND
blockCallsWhenNoAgents Boolean Whether to reject new calls when no agent is available. blockCallsNoAgentConditions Array<String> The conditions based on which new calls are rejected when no agent is available:
OFFLINEPAUSERING_BUSYDND
keyPressEventKey String The DTMF key of the key press event, ranging from 0to9,, and#.keyPressEventDestination Object<Destination> The destination of the key press event. timeBasedRoutingEnabled Boolean Whether time-based routing is enabled. timeBasedRoutingProfileId String The ID of the business hours configuration associated with time-based routing. timeBasedRoutingConfig Object<Time_Based_Routing_Config> The time-based routing configuration. version Integer The version number of the data, which increments on each change. createdAt String The time when the queue was created, in Unix timestamp format (milliseconds). updatedAt String The time when the queue was last updated, in Unix timestamp format (milliseconds). directDidNumbers Array<Direct_Did_Number> The list of DIDs bound to the queue.
- Destination
-
Parameter Type Description type String The destination type:
HANGUP: Hang up.USER: Extension.USER_VOICEMAIL: User voicemail.valueis the user ID.IVR: IVR.RING_GROUP: Ring group.QUEUE: Queue.EXTERNAL_NUMBER: External number.PLAY_PROMPT: Play the prompt and hang up.valueis the prompt file name.RECEIVE_CALLS: Receive calls, which are handled by the feature itself. This type applies to the outside and holiday destinations of time-based routing only, and does not requirevalue.
value String The destination value, such as the resource ID, prompt file name, or external number. prefix String The dial-out prefix. This parameter applies only when typeisEXTERNAL_NUMBER.repeatCount Integer The number of playback times, ranging from 1 to 5. This parameter applies only when typeisPLAY_PROMPT.0means not set.
- Time_Based_Routing_Config
-
Parameter Type Description holidayHandling String The holiday handling mode:
route: Route calls to the holiday destination.play_prompt: Play the prompt.ignore: Ignore holidays and follow the normal routing.
outsideDestination Object<Destination> The destination outside business hours. holidayDestination Object<Destination> The destination on holidays.
- Member_Info
-
Parameter Type Description userId String The ID of the user. extension String The extension number of the user. name String The name of the member.
- Direct_Did_Number
-
Parameter Type Description id String The DID ID. number String The DID number. name String The DID name.
Example
Request example
GET /uc-cconfig/api/v1/queues/368362813322379264 HTTP/1.1
Host: api.cn.novoone.com
Authorization: Bearer eyJraWQiOiJjbi0wLWtleS0xIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJkaXN0cmlidXRvcmV4YW1wbGVAb3V0bG9vay5jb20iLCJhcHBfa2V5Ijoic2xOdnQzaHc1NXB2Vm5HRlNhR2ZOVTNmMWxYQ3lpa08iLCJncmFudF90eXBlIjoib3BlbmFwaSIsImNsaWVudF9leHQiOnsiZGVzY3JpcHRpb24iOiLnrKzkuInmlrnlkIjkvZzkvJnkvLTlupTnlKgiLCJwYXJ0bmVyIjoi56S65L6L5ZCI5L2c5LyZ5Ly0In0sImNsaWVudF90eXBlIjoib3BlbmFwaSIsImV4cCI6MTc5MTkxMzkwNiwiaWF0IjoxNzkxODkyMzA2LCJqdGkiOiIyNjQzMzg4MC04OGI2LTQ1YjItYmMzZC1lMWFlM2MyZWM2NGIiLCJjbGllbnRfaWQiOiJub3ZvLW9wZW4tcGxhdGZvcm0iLCJ1c2VyX2V4dCI6eyJyb2xlSWRzIjpbM10sInN0eXBlIjoiQURNSU4iLCJ0ZW5hbnRDb2RlIjpudWxsLCJ0eXBlIjoiUF9BQ0NPVU5UIiwidXNlcklkIjozMDc2OTEzNjQ0OTE1OTk4NzIwLCJlbWFpbCI6ImRpc3RyaWJ1dG9yZXhhbXBsZUBvdXRsb29rLmNvbSIsInVzZXJuYW1lIjoiZGlzdHJpYnV0b3JleGFtcGxlQG91dGxvb2suY29tIiwidWNJZCI6MzA3NjkxMzY0NDg5MDgzMjg5Nn19.AMBnRYQuBmBxX5qZGethRuAqTm9JzAHAQJgq0rBW9kZo_B7ZJHYZOOt7hMyQRMG_fYfnJoU-LmZCM99e20jwQZ2vSipaTtIa7BGhpr7KK-EBunjLU2lAuv2FDEE6B9yGu-ZVg56tNXQRgv1xfTN-bQgN-qx9dcJc2j4wQX9Rqxd6NhjWO1eGUQlWOcVd-gpveaRCU-q6BwNlZL8JAS7rkFrf1uHYnKxUbDh_X-7Cx7f7DtR3R3VsywDXOeNmHQ-DqiKmaOtxOYFgKh9hyeQR9QSJ2V5rM3VILn4Ffb21hbrPARxNml9zhtTU4653e4Ir4J5WEJB50YSIRJX71o48qQ
x-tenant-code: jint
Response example
HTTP/1.1 200 OK { "requestId": "df7e5f59d6800d0b57dc0ba52ea2965e", "code": "200", "message": "SUCCESS", "detailMessage": "", "result": { "id": "368362813322379264", "extension": "9001", "name": "test-queue-api-1", "ringStrategy": "RING_ALL", "maxWaitTime": 1800, "failoverDestination": { "type": "HANGUP", "value": "", "prefix": "", "repeatCount": 0 }, "alertInfo": "", "ringTimeout": 30, "retryInterval": 30, "wrapUpTime": 30, "ringInUse": false, "agentAutoPause": false, "maxMissedCalls": 3, "joinAnnouncement": "", "playJoinBeforeRing": true, "musicOnWait": "330931373987872768", "positionAnnouncement": true, "periodicAnnouncement": "", "waitingAnnouncementInterval": 30, "connectionAnnouncement": "", "agentIdAnnouncement": false, "musicOnHold": "330931373987872768", "customPromptLanguage": false, "promptLanguage": "", "staticAgents": [ { "userId": "366488799060709376", "extension": "1001", "name": "qq Hu" } ], "dynamicAgents": [], "managers": [], "notifyNoAnswer": true, "notifyAbandoned": true, "maxCallers": 0, "endWaitingWhenNoAgents": false, "endWaitingNoAgentConditions": [], "blockCallsWhenNoAgents": false, "blockCallsNoAgentConditions": [], "keyPressEventKey": "[None]", "keyPressEventDestination": { "type": "HANGUP", "value": "", "prefix": "", "repeatCount": 0 }, "timeBasedRoutingEnabled": false, "timeBasedRoutingProfileId": "", "timeBasedRoutingConfig": { "holidayHandling": "", "outsideDestination": null, "holidayDestination": null }, "version": 1, "createdAt": "1791891738566", "updatedAt": "1791891738566", "directDidNumbers": [] } }