{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/webex/json-schema/webex-create-call-queue-essentials-object-schema.json",
  "title": "CreateCallQueueEssentialsObject",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/webex-features-call-queue-api-openapi.yml#/components/schemas/CreateCallQueueEssentialsObject",
  "type": "object",
  "required": [
    "name",
    "callPolicies",
    "queueSettings",
    "agents"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "Unique name for the call queue."
    },
    "phoneNumber": {
      "type": "string",
      "description": "Primary phone number of the call queue. Either a `phoneNumber` or `extension` is mandatory."
    },
    "extension": {
      "type": "string",
      "description": "Primary phone extension of the call queue. Either a `phoneNumber` or extension is mandatory."
    },
    "languageCode": {
      "type": "string",
      "description": "Language code."
    },
    "firstName": {
      "type": "string",
      "description": "First name to be shown when calls are forwarded out of this call queue. Defaults to \".\". This field has been deprecated. Please use `directLineCallerIdName` and `dialByName` instead."
    },
    "lastName": {
      "type": "string",
      "description": "Last name to be shown when calls are forwarded out of this call queue. Defaults to `phoneNumber` if set, otherwise defaults to call group name. This field has been deprecated. Please use `directLineCallerIdName` and `dialByName` instead."
    },
    "timeZone": {
      "type": "string",
      "description": "Time zone for the call queue."
    },
    "callPolicies": {
      "$ref": "#/$defs/PostCallQueueEssentialCallPolicyObject",
      "description": "Policy controlling how calls are routed to `agents`."
    },
    "queueSettings": {
      "$ref": "#/$defs/CallQueueQueueSettingsObject",
      "description": "Overall call queue settings."
    },
    "agents": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PostPersonPlaceVirtualLineCallQueueObject"
      },
      "description": "People, workspaces and virtual lines that are eligible to receive calls."
    },
    "callingLineIdPolicy": {
      "type": "string",
      "enum": [
        "DIRECT_LINE",
        "LOCATION_NUMBER",
        "CUSTOM"
      ],
      "description": "Which type of Calling Line ID Policy Selected for Call Queue.\n * `DIRECT_LINE` - Calling Line ID Policy will show the caller's direct line number.\n * `LOCATION_NUMBER` - Calling Line ID Policy will show the main number for the location.\n * `CUSTOM` - Calling Line ID Policy will show the value from the `callingLineIdPhoneNumber` field.\n"
    },
    "callingLineIdPhoneNumber": {
      "type": "string",
      "description": "Calling line ID Phone number which will be shown if CUSTOM is selected."
    },
    "allowAgentJoinEnabled": {
      "type": "boolean",
      "description": "Whether or not to allow agents to join or unjoin a queue."
    },
    "phoneNumberForOutgoingCallsEnabled": {
      "type": "boolean",
      "description": "When `true`, indicates that the agent's configuration allows them to use the queue's Caller ID for outgoing calls."
    },
    "directLineCallerIdName": {
      "$ref": "#/$defs/DirectLineCallerIdNameObject",
      "description": "Settings for the direct line caller ID name to be shown for this call queue."
    },
    "dialByName": {
      "type": "string",
      "description": "The name to be used for dial by name functions. Characters of `%`,  `+`, `\\`, `\"` and Unicode characters are not allowed."
    },
    "digitalInboxEnabled": {
      "type": "boolean",
      "description": "Digital Inbox enabled for Queue. This field is applicable for queue which has `hasCxEssentials=true`."
    }
  },
  "$defs": {
    "AnnouncementAudioFile": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique identifier of the Announcement file."
        },
        "name": {
          "type": "string",
          "description": "Name of the announcement file. `name`, `mediaFileType`, `level` are mandatory if `id` is not provided for uploading an announcement."
        },
        "mediaFileType": {
          "type": "string",
          "description": "Media file type of announcement file."
        },
        "level": {
          "type": "string",
          "enum": [
            "LOCATION",
            "ORGANIZATION",
            "ENTITY"
          ],
          "description": "The level at which this announcement exists."
        }
      }
    },
    "CallQueueQueueSettingsObject": {
      "type": "object",
      "required": [
        "queueSize",
        "overflow"
      ],
      "properties": {
        "queueSize": {
          "type": "number",
          "description": "The maximum number of calls for this call queue. Once this number is reached, the `overflow` settings are triggered."
        },
        "callOfferToneEnabled": {
          "type": "boolean",
          "description": "Play ringing tone to callers when their call is set to an available agent."
        },
        "resetCallStatisticsEnabled": {
          "type": "boolean",
          "description": "Reset caller statistics upon queue entry."
        },
        "overflow": {
          "type": "object",
          "required": [
            "action",
            "greeting"
          ],
          "properties": {
            "action": {
              "type": "string",
              "enum": [
                "PERFORM_BUSY_TREATMENT",
                "PLAY_RINGING_UNTIL_CALLER_HANGS_UP",
                "TRANSFER_TO_PHONE_NUMBER"
              ],
              "description": "Indicates how to handle new calls when the queue is full.\n * `PERFORM_BUSY_TREATMENT` - The caller hears a fast-busy tone.\n * `PLAY_RINGING_UNTIL_CALLER_HANGS_UP` - The caller hears ringing until they disconnect.\n * `TRANSFER_TO_PHONE_NUMBER` - Number where you want to transfer overflow calls.\n"
            },
            "sendToVoicemail": {
              "type": "boolean",
              "description": "When `true`, forwards all calls to a voicemail service of an internal number. This option is ignored when an external `transferNumber` is entered."
            },
            "transferNumber": {
              "type": "string",
              "description": "Destination number for overflow calls when `action` is set to `TRANSFER_TO_PHONE_NUMBER`."
            },
            "overflowAfterWaitEnabled": {
              "type": "boolean",
              "description": "After calls wait for the configured number of seconds and no agent is available, the overflow treatment is triggered."
            },
            "overflowAfterWaitTime": {
              "type": "number",
              "description": "Number of seconds to wait before the overflow treatment is triggered when no agent is available. The minimum value 0, The maximum value is 7200 seconds."
            },
            "playOverflowGreetingEnabled": {
              "type": "boolean",
              "description": "Indicate overflow audio to be played, otherwise, callers will hear the hold music until the call is answered by a user."
            },
            "greeting": {
              "type": "string",
              "enum": [
                "CUSTOM",
                "DEFAULT"
              ],
              "description": "Indicates how to handle new calls when the queue is full.\n * `CUSTOM` - Play the custom announcement specified by the `fileName` field.\n * `DEFAULT` - Play default announcement.\n"
            },
            "audioAnnouncementFiles": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/AnnouncementAudioFile"
              },
              "description": "Array of announcement files to be played as `overflow` greetings. These files are from the list of announcement files associated with this call queue. For `CUSTOM` announcement, a minimum of 1 file is mandatory, and the maximum is 4."
            }
          },
          "description": "Settings for incoming calls exceed queueSize."
        },
        "welcomeMessage": {
          "type": "object",
          "required": [
            "greeting"
          ],
          "properties": {
            "enabled": {
              "type": "boolean",
              "description": "If enabled play entrance message. The default value is `true`."
            },
            "alwaysEnabled": {
              "type": "boolean",
              "description": "Mandatory entrance message. The default value is `false`."
            },
            "greeting": {
              "type": "string",
              "enum": [
                "CUSTOM",
                "DEFAULT"
              ],
              "description": "Indicates how to handle new calls when the queue is full.\n * `CUSTOM` - Play the custom announcement specified by the `fileName` field.\n * `DEFAULT` - Play default announcement.\n"
            },
            "audioAnnouncementFiles": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/AnnouncementAudioFile"
              },
              "description": "Array of announcement files to be played as `welcomeMessage` greetings. These files are from the list of announcement files associated with this call queue. For `CUSTOM` announcement, a minimum of 1 file is mandatory, and the maximum is 4."
            }
          },
          "description": "Play a message when callers first reach the queue. For example, “Thank you for calling. An agent will be with you shortly.” It can be set as mandatory. If the mandatory option is not selected and a caller reaches the call queue while there is an available agent, the caller will not hear this announcement and is transferred to an agent. The welcome message feature is enabled by default."
        },
        "waitMessage": {
          "type": "object",
          "required": [
            "waitMode"
          ],
          "properties": {
            "enabled": {
              "type": "boolean",
              "description": "If enabled play Wait Message."
            },
            "waitMode": {
              "type": "string",
              "enum": [
                "TIME",
                "POSITION"
              ],
              "description": "Estimated wait message operating mode. Supported values `TIME` and `POSITION`.\n * `TIME` - Announce the waiting time.\n * `POSITION` - Announce queue position.\n"
            },
            "handlingTime": {
              "type": "number",
              "description": "The number of minutes for which the estimated wait is played. The minimum time is 10 minutes. The maximum time is 100 minutes."
            },
            "defaultHandlingTime": {
              "type": "number",
              "description": "The default number of call handling minutes. The minimum time is 1 minutes, The maximum time is 100 minutes."
            },
            "queuePosition": {
              "type": "number",
              "description": "The number of the position for which the estimated wait is played. The minimum positions are 10, The maximum positions are 100."
            },
            "highVolumeMessageEnabled": {
              "type": "boolean",
              "description": "Play time / Play position High Volume."
            },
            "estimatedWaitingTime": {
              "type": "number",
              "description": "The number of estimated waiting times in seconds. The minimum time is 10 seconds. The maximum time is 600 seconds."
            },
            "callbackOptionEnabled": {
              "type": "boolean",
              "description": "Callback options enabled/disabled. Default value is false."
            },
            "minimumEstimatedCallbackTime": {
              "type": "number",
              "description": "The minimum estimated callback times in minutes. The default value is 30."
            },
            "internationalCallbackEnabled": {
              "type": "boolean",
              "description": "The international numbers for callback is enabled/disabled. The default value is `false`."
            },
            "playUpdatedEstimatedWaitMessage": {
              "type": "boolean",
              "description": "Play updated estimated wait message."
            }
          },
          "description": "Notify the caller with either their estimated wait time or position in the queue. If this option is enabled, it plays after the welcome message and before the comfort message. By default, it is not enabled."
        },
        "comfortMessage": {
          "type": "object",
          "required": [
            "greeting"
          ],
          "properties": {
            "enabled": {
              "type": "boolean",
              "description": "If enabled play periodic comfort message."
            },
            "timeBetweenMessages": {
              "type": "number",
              "description": "The interval in seconds between each repetition of the comfort message played to queued users. The minimum time is 10 seconds.The maximum time is 600 seconds."
            },
            "greeting": {
              "type": "string",
              "enum": [
                "CUSTOM",
                "DEFAULT"
              ],
              "description": "Indicates how to handle new calls when the queue is full.\n * `CUSTOM` - Play the custom announcement specified by the `fileName` field.\n * `DEFAULT` - Play default announcement.\n"
            },
            "audioAnnouncementFiles": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/AnnouncementAudioFile"
              },
              "description": "Array of announcement files to be played as `comfortMessage` greetings. These files are from the list of announcement files associated with this call queue. For `CUSTOM` announcement, a minimum of 1 file is mandatory, and the maximum is 4."
            }
          },
          "description": "Play a message after the welcome message and before hold music. This is typically a `CUSTOM` announcement that plays information, such as current promotions or information about products and services."
        },
        "comfortMessageBypass": {
          "type": "object",
          "required": [
            "greeting"
          ],
          "properties": {
            "enabled": {
              "type": "boolean",
              "description": "If enabled play comfort bypass message."
            },
            "callWaitingAgeThreshold": {
              "type": "number",
              "description": "The interval in seconds between each repetition of the comfort bypass message played to queued users. The minimum time is 1 seconds. The maximum time is 120 seconds."
            },
            "greeting": {
              "type": "string",
              "enum": [
                "CUSTOM",
                "DEFAULT"
              ],
              "description": "Indicates how to handle new calls when the queue is full.\n * `CUSTOM` - Play the custom announcement specified by the `fileName` field.\n * `DEFAULT` - Play default announcement.\n"
            },
            "audioAnnouncementFiles": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/AnnouncementAudioFile"
              },
              "description": "Array of announcement files to be played as `comfortMessageBypass` greetings. These files are from the list of announcements files associated with this call queue. For `CUSTOM` announcement, a minimum of 1 file is mandatory, and the maximum is 4."
            }
          },
          "description": "Play a shorter comfort message instead of the usual Comfort or Music On Hold announcement to all the calls that should be answered quickly. This feature prevents a caller from hearing a short portion of the standard comfort message that abruptly ends when they are connected to an agent."
        },
        "mohMessage": {
          "type": "object",
          "required": [
            "normalSource",
            "alternateSource"
          ],
          "properties": {
            "normalSource": {
              "type": "object",
              "required": [
                "greeting"
              ],
              "properties": {
                "enabled": {
                  "type": "boolean",
                  "description": "Enable media on hold for queued calls."
                },
                "greeting": {
                  "type": "string",
                  "enum": [
                    "CUSTOM",
                    "DEFAULT"
                  ],
                  "description": "Indicates how to handle new calls when the queue is full.\n * `CUSTOM` - Play the custom announcement specified by the `fileName` field.\n * `DEFAULT` - Play default announcement.\n"
                },
                "audioAnnouncementFiles": {
                  "type": "array",
                  "items": {
                    "$ref": "#/$defs/AnnouncementAudioFile"
                  },
                  "description": "Array of announcement files to be played as `mohMessage` greetings. These files are from the list of announcement files associated with this call queue. For `CUSTOM` announcement, a minimum of 1 file is mandatory, and the maximum is 4."
                },
                "audioPlaylistId": {
                  "type": "string",
                  "description": "Identifier of the playlist used for this MOH source."
                }
              }
            },
            "alternateSource": {
              "type": "object",
              "required": [
                "greeting"
              ],
              "properties": {
                "enabled": {
                  "type": "boolean",
                  "description": "Enable media on hold for queued calls."
                },
                "greeting": {
                  "type": "string",
                  "enum": [
                    "CUSTOM",
                    "DEFAULT"
                  ],
                  "description": "Indicates how to handle new calls when the queue is full.\n * `CUSTOM` - Play the custom announcement specified by the `fileName` field.\n * `DEFAULT` - Play default announcement.\n"
                },
                "audioAnnouncementFiles": {
                  "type": "array",
                  "items": {
                    "$ref": "#/$defs/AnnouncementAudioFile"
                  },
                  "description": "Array of announcement files to be played as `mohMessage` greetings. These files are from the list of announcement files associated with this call queue. For `CUSTOM` announcement, a minimum of 1 file is mandatory, and the maximum is 4."
                },
                "audioPlaylistId": {
                  "type": "string",
                  "description": "Identifier of the playlist used for this MOH source."
                }
              }
            }
          },
          "description": "Play music after the comforting message in a repetitive loop."
        },
        "whisperMessage": {
          "type": "object",
          "required": [
            "greeting"
          ],
          "properties": {
            "enabled": {
              "type": "boolean",
              "description": "If enabled play the Whisper Message."
            },
            "greeting": {
              "type": "string",
              "enum": [
                "CUSTOM",
                "DEFAULT"
              ],
              "description": "Indicates how to handle new calls when the queue is full.\n * `CUSTOM` - Play the custom announcement specified by the `fileName` field.\n * `DEFAULT` - Play default announcement.\n"
            },
            "audioAnnouncementFiles": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/AnnouncementAudioFile"
              },
              "description": "Array of announcement files to be played as `whisperMessage` greetings. These files are from the list of announcement files associated with this call queue. For `CUSTOM` announcement, a minimum of 1 file is mandatory, and the maximum is 4."
            }
          },
          "description": "Play a message to the agent immediately before the incoming call is connected. The message typically announces the identity of the call queue from which the call is coming."
        },
        "useEnterprisePlayToneToAgentSettingsEnabled": {
          "type": "boolean",
          "description": "When `true`, the call queue uses the organization-level play tone settings and ignores the queue-level `playToneToAgent*` values. When `false`, the queue-level `playToneToAgent*` values are used."
        },
        "playToneToAgentForBargeInEnabled": {
          "type": "boolean",
          "description": "Queue-specific setting that plays a tone to agents when a supervisor joins an active call using barge in. Applies only when `useEnterprisePlayToneToAgentSettingsEnabled` is `false`."
        },
        "playToneToAgentForSilentMonitoringEnabled": {
          "type": "boolean",
          "description": "Queue-specific setting that plays a tone to agents when a supervisor monitors their active call without joining. Applies only when `useEnterprisePlayToneToAgentSettingsEnabled` is `false`."
        },
        "playToneToAgentForSupervisorCoachingEnabled": {
          "type": "boolean",
          "description": "Queue-specific setting that plays a tone to agents when a supervisor coaches an agent during an active call. Applies only when `useEnterprisePlayToneToAgentSettingsEnabled` is `false`."
        }
      }
    },
    "DirectLineCallerIdNameObject": {
      "type": "object",
      "properties": {
        "selection": {
          "$ref": "#/$defs/SelectionObject",
          "description": "The selection of the direct line caller ID name. Defaults to `DISPLAY_NAME`."
        },
        "customName": {
          "type": "string",
          "description": "The custom direct line caller ID name. Required if `selection` is set to `CUSTOM_NAME`."
        }
      },
      "description": "Settings for the direct line caller ID name to be shown for this workspace."
    },
    "HuntPolicyEssentialSelection": {
      "type": "string",
      "enum": [
        "CIRCULAR",
        "REGULAR",
        "SIMULTANEOUS",
        "UNIFORM",
        "WEIGHTED"
      ],
      "description": " * `CIRCULAR` - This option cycles through all agents after the last agent that took a call. It sends calls to the next available agent.\n * `REGULAR` - Send the call through the queue of agents in order, starting from the top each time.\n * `SIMULTANEOUS` - Sends calls to all agents at once\n * `UNIFORM` - Sends calls to the agent that has been idle the longest. If they don't answer, proceed to the next agent who has been idle the second longest, and so on until the call is answered.\n * `WEIGHTED` - Sends call to idle agents based on percentages you assign to each agent (up to 100%).\n"
    },
    "HuntRoutingTypeSelection": {
      "type": "string",
      "enum": [
        "PRIORITY_BASED",
        "SKILL_BASED"
      ],
      "description": " * `PRIORITY_BASED` - Default routing type which directly uses the routing policy to dispatch calls to the agents.\n * `SKILL_BASED` - This option uses skill level as the criteria to route calls to agents. When there is more than one agent with the same skill level, the selected `policy` helps dispatch the calls to the agents.\n"
    },
    "PostCallQueueEssentialCallPolicyObject": {
      "type": "object",
      "required": [
        "routingType",
        "policy",
        "callBounce",
        "distinctiveRing"
      ],
      "properties": {
        "routingType": {
          "$ref": "#/$defs/HuntRoutingTypeSelection",
          "description": "Call routing type to use to dispatch calls to agents. The routing type should be `SKILL_BASED` if you want to assign skill level to `agents`. Only certain `policy` are allowed in `SKILL_BASED` type."
        },
        "policy": {
          "$ref": "#/$defs/HuntPolicyEssentialSelection",
          "description": "Call routing policy to use to dispatch calls to `agents`."
        },
        "callBounce": {
          "type": "object",
          "properties": {
            "callBounceEnabled": {
              "type": "boolean",
              "description": "If enabled, bounce calls after the set number of rings."
            },
            "callBounceMaxRings": {
              "type": "number",
              "description": "Number of rings after which to bounce call, if `callBounce` is enabled."
            },
            "agentUnavailableEnabled": {
              "type": "boolean",
              "description": "Bounce if agent becomes unavailable."
            },
            "alertAgentEnabled": {
              "type": "boolean",
              "description": "Alert agent if call on hold more than `alertAgentMaxSeconds`."
            },
            "alertAgentMaxSeconds": {
              "type": "number",
              "description": "Number of second after which to alert agent if `alertAgentEnabled`."
            },
            "callBounceOnHoldEnabled": {
              "type": "boolean",
              "description": "Bounce if call on hold more than `callBounceMaxSeconds`."
            },
            "callBounceOnHoldMaxSeconds": {
              "type": "number",
              "description": "Number of second after which to bounce if `callBounceEnabled`."
            }
          },
          "description": "Settings for when the call into the hunt group is not answered."
        },
        "distinctiveRing": {
          "type": "object",
          "required": [
            "enabled"
          ],
          "properties": {
            "enabled": {
              "type": "boolean",
              "description": "Whether or not the `distinctiveRing` is enabled."
            },
            "ringPattern": {
              "$ref": "#/$defs/RingPatternObject",
              "description": "Ring pattern for when this call queue is called. Only available when `distinctiveRing` is enabled for the call queue."
            }
          },
          "description": "Whether or not the call queue has the `distinctiveRing` option enabled."
        }
      }
    },
    "PostPersonPlaceVirtualLineCallQueueObject": {
      "type": "object",
      "required": [
        "id"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "ID of person, workspace or virtual line."
        },
        "weight": {
          "type": "string",
          "description": "Weight of person, workspace or virtual line. Only applied when call policy is `WEIGHTED`."
        },
        "skillLevel": {
          "type": "number",
          "description": "Skill level of person, workspace or virtual line. Only applied when call routing type is `SKILL_BASED`."
        }
      }
    },
    "RingPatternObject": {
      "type": "string",
      "enum": [
        "NORMAL",
        "LONG_LONG",
        "SHORT_SHORT_LONG",
        "SHORT_LONG_SHORT"
      ],
      "description": " * `NORMAL` - Normal incoming ring pattern.\n * `LONG_LONG` - Incoming ring pattern of two long rings.\n * `SHORT_SHORT_LONG` - Incoming ring pattern of two short rings, followed by a short ring.\n * `SHORT_LONG_SHORT` - Incoming ring pattern of a short ring, followed by a long ring, followed by a short ring.\n"
    },
    "SelectionObject": {
      "type": "string",
      "enum": [
        "CUSTOM_NAME",
        "DISPLAY_NAME"
      ],
      "description": " * `DISPLAY_NAME` - When this option is selected, `displayName` is to be shown for this workspace.\n * `CUSTOM_NAME` - When this option is selected, `customName` is to be shown for this workspace."
    }
  }
}