POST - Create a queue

 

Purpose

Use this API to create a queue.
 

Authorization

HeaderKeyDescription
Authorization*Zoho-oauthtoken<space><ACCESS_TOKEN>
Accept*Set to application/json.

Scope

*All APIs are accessible under zohovoice.queues.ALL scope.

OAuth Doc
 

Request URL

Method: POST

https://voice.zoho.com/rest/json/zv/api/groups

Scope: zohovoice.queues.CREATE

Parameters:

Param Name

Data Type

Description

data*

JSONObject

Represents the queue data in JSON format. The name, members, isBulk, config keys are mandatory.
 

Example:

{
 "members": [
   "[AGENT_ID]"
 ],
 "extension": 9999,
 "emailNotificationConfig": "3",
 "name": "Customer Support",
 "emailId": "QUEUE EMAILID to send notification to queue emails",
 "queueWaitMusic": {
   "audioId": "",
   "enableDefaultAnnouncements": true
 },
 "qapId": "QUEUE AUDIO PROFILE ID",
 "isBulk": false,
 "config": {
   "mwtformat": "seconds",
   "mwtwnaformat": "seconds",
   "max-wait-time-with-no-agent": 60,
   "max-wait-time": 60,
   "strategy": "top-down" 
 },
 "autoCallBackRequest": {
   "callBackType": "1",
   "callBackInterval": 15,
   "callBackTryCount": 3,
   "callBackExpiryTime": 1
 }
}

 

strategy possible values:

  • top-down

  • ring-progressively

  • round-robin

  • ring-all

 

Data JSON:

Key

Data Type

Description

members*

JSONArray of Long

Represents the list of agent IDs associated with the queue.
 

Example: [AGENT_ID1, AGENT_ID2]

extension

Integer

Represents the extension number. A maximum of four digits is allowed.

emailNotificationConfig

Integer

Represents the email notification configuration.

 

Possible values:

  • 0 - Do not notify

  • 1 - All missed calls

  • 2 - Missed calls with voicemail

  • 3 - All calls

name*

String

Represents the name of the queue.

emailId

String

Represents the email ID that receives queue missed call notifications.

queueWaitMusic

JSONObject

Represents the queue wait music configuration.

 

Example:

{
 "audioId": "",
 "enableDefaultAnnouncements": true
}

qapId

Long

Represents the queue audio profile ID.

isBulk*

Boolean

Represents whether agents are added in bulk. Default value is false

config*

JSONObject

Represents the queue configuration.


Example:

{
 "mwtformat": "seconds",
 "mwtwnaformat": "seconds",
 "max-wait-time-with-no-agent": 60,
 "max-wait-time": 60,
 "strategy": "top-down"
}

strategy possible values:

  • top-down

  • ring-progressively

  • round-robin

  • ring-all

autocallBack

JSONObject

Represents the callback request configuration.

 

Example:

{
 "callBackTryCount": 3,
 "callBackInterval": 15,
 "callBackExpiryTime": 1,
 "callBackType": "1"
}

Sample Request

Copiedcurl "https://voice.zoho.com/rest/json/zv/api/groups" \
-X POST \
-H "Authorization:Zoho-oauthtoken *****"

Sample Response - Success

Copied{
  "code": "200",
  "groupId": 4061000001205001,
  "status": "SUCCESS"
}

Sample Response - Error

Copied{
  "code": "<App Error Code>",
  "message": "<Error Message>",
  "status": "ERROR"
}