{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/webex/json-schema/webex-get-hunt-group-object-schema.json",
  "title": "GetHuntGroupObject",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/webex-features-hunt-group-api-openapi.yml#/components/schemas/GetHuntGroupObject",
  "type": "object",
  "required": [
    "id",
    "name",
    "enabled",
    "distinctiveRing",
    "alternateNumbers",
    "callPolicies",
    "agents"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "A unique identifier for the hunt group."
    },
    "name": {
      "type": "string",
      "description": "Unique name for the hunt group."
    },
    "enabled": {
      "type": "boolean",
      "description": "Whether or not the hunt group is enabled."
    },
    "phoneNumber": {
      "type": "string",
      "description": "Primary phone number of the hunt group."
    },
    "extension": {
      "type": "string",
      "description": "Extension of the hunt group."
    },
    "distinctiveRing": {
      "type": "boolean",
      "description": "Whether or not the hunt group has the distinctive ring option enabled."
    },
    "alternateNumbers": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AlternateNumbersWithPattern"
      },
      "description": "The alternate numbers feature allows you to assign multiple phone numbers or extensions to a hunt group. Each number will reach the same greeting and each menu will function identically to the main number. The alternate numbers option enables you to have up to ten (10) phone numbers ring into the hunt group."
    },
    "language": {
      "type": "string",
      "description": "Language for hunt group."
    },
    "languageCode": {
      "type": "string",
      "description": "Language code for hunt group."
    },
    "firstName": {
      "type": "string",
      "description": "First name to be shown when calls are forwarded out of this hunt group. 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 hunt group. Defaults to phone number 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 hunt group."
    },
    "callPolicies": {
      "$ref": "#/$defs/GetHuntGroupCallPolicyObject",
      "description": "Policy controlling how calls are routed to agents."
    },
    "agents": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/GetPersonPlaceVirtualLineHuntGroupObject"
      },
      "description": "People, workspaces and virtual lines that are eligible to  receive calls."
    },
    "huntGroupCallerIdForOutgoingCallsEnabled": {
      "type": "boolean",
      "description": "Whether or not the hunt group can be used as the caller ID when the agent places outgoing calls."
    },
    "directLineCallerIdName": {
      "$ref": "#/$defs/DirectLineCallerIdNameObject",
      "description": "Settings for the direct line caller ID name to be shown for this hunt group."
    },
    "dialByName": {
      "type": "string",
      "description": "The name to be used for dial by name functions."
    }
  },
  "$defs": {
    "AlternateNumbersWithPattern": {
      "type": "object",
      "required": [
        "phoneNumber"
      ],
      "properties": {
        "phoneNumber": {
          "type": "string",
          "description": "Alternate phone number for the hunt group."
        },
        "ringPattern": {
          "$ref": "#/$defs/RingPatternObject",
          "description": "Ring pattern for when this alternate number is called. Only available when `distinctiveRing` is enabled for the hunt group."
        }
      }
    },
    "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."
    },
    "GetHuntGroupCallPolicyObject": {
      "type": "object",
      "required": [
        "policy",
        "noAnswer"
      ],
      "properties": {
        "policy": {
          "$ref": "#/$defs/HuntPolicySelection",
          "description": "Call routing policy used to dispatch calls to agents."
        },
        "waitingEnabled": {
          "type": "boolean",
          "description": "If `false`, then the option is treated as \"Advance when busy\". The hunt group won't ring agents when they're on a call and advances to the next agent. If a hunt group agent has call waiting enabled and the call is advanced to them, the call waits until that hunt group agent isn't busy."
        },
        "groupBusyEnabled": {
          "type": "boolean",
          "description": "When `true`, the hunt group busy status will be set to busy. All new calls will get busy treatment. If `busyRedirect` is enabled, the calls are routed to the destination specified in `busyRedirect`."
        },
        "allowMembersToControlGroupBusyEnabled": {
          "type": "boolean",
          "description": "When `true`, agents can change the hunt group busy status."
        },
        "noAnswer": {
          "type": "object",
          "required": [
            "nextAgentEnabled",
            "nextAgentRings",
            "forwardEnabled",
            "numberOfRings",
            "systemMaxNumberOfRings",
            "destinationVoicemailEnabled"
          ],
          "properties": {
            "nextAgentEnabled": {
              "type": "boolean",
              "description": "If enabled, advance to next agent after the `nextAgentRings` has occurred."
            },
            "nextAgentRings": {
              "type": "number",
              "description": "Number of rings before call will be forwarded if unanswered and `nextAgentEnabled` is true."
            },
            "forwardEnabled": {
              "type": "boolean",
              "description": "If `true`, forwards unanswered calls to the destination after the number of rings occurs."
            },
            "destination": {
              "type": "string",
              "description": "Destination if `forwardEnabled` is True."
            },
            "numberOfRings": {
              "type": "number",
              "description": "Number of rings before forwarding calls if `forwardEnabled` is true."
            },
            "systemMaxNumberOfRings": {
              "type": "number",
              "description": "System-wide maximum number of rings allowed for `numberOfRings` setting."
            },
            "destinationVoicemailEnabled": {
              "type": "boolean",
              "description": "If `destinationVoicemailEnabled` is true, enables and disables sending incoming to destination number's voicemail if the destination is an internal phone number and that number has the voicemail service enabled."
            }
          },
          "description": "Settings for when the call into the hunt group is not answered."
        },
        "busyRedirect": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean",
              "description": "If `true`, calls are diverted to a defined phone number when all agents are busy, or when the hunt group busy status is set to busy."
            },
            "destination": {
              "type": "string",
              "description": "Destination for busy redirect."
            },
            "destinationVoicemailEnabled": {
              "type": "boolean",
              "description": "The enabled or disabled state of sending diverted incoming calls to the `destination` number's voicemail if the `destination` is an internal phone number and that number has the voicemail service enabled."
            }
          },
          "description": "Settings for sending calls to a specified destination when all agents are busy or when the hunt group busy status is set to busy."
        },
        "businessContinuityRedirect": {
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean",
              "description": "If `true`, unreachable, unanswered calls are diverted to a defined phone number. For persons with only a mobile device, calls won't be diverted if there is a network outage."
            },
            "destination": {
              "type": "string",
              "description": "Destination for business continuity redirect."
            },
            "destinationVoicemailEnabled": {
              "type": "boolean",
              "description": "The enabled or disabled state of sending diverted incoming calls to the `destination` number's voicemail if the `destination` is an internal phone number and that number has the voicemail service enabled."
            }
          },
          "description": "Settings for sending calls to a specified destination if the phone is not connected to the network for any reason, such as a power outage, failed internet connection, or wiring problem."
        }
      }
    },
    "GetPersonPlaceVirtualLineHuntGroupObject": {
      "type": "object",
      "required": [
        "id"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "ID of a person, workspace or virtual line."
        },
        "firstName": {
          "type": "string",
          "description": "First name of a person, workspace or virtual line."
        },
        "lastName": {
          "type": "string",
          "description": "Last name of a person, workspace or virtual line."
        },
        "phoneNumber": {
          "type": "string",
          "description": "Phone number of a person, workspace or virtual line."
        },
        "extension": {
          "type": "string",
          "description": "Extension of a person, workspace or virtual line."
        },
        "routingPrefix": {
          "type": "string",
          "description": "Routing prefix of location."
        },
        "esn": {
          "type": "string",
          "description": "Routing prefix + extension of a person or workspace."
        },
        "weight": {
          "type": "string",
          "description": "Weight of a person, workspace or virtual line. Only applied when call policy is `WEIGHTED`."
        }
      }
    },
    "HuntPolicySelection": {
      "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. This is supported for `SKILL_BASED`.\n * `REGULAR` - Send the call through the queue of agents in order, starting from the top each time. This is supported for `SKILL_BASED`.\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. This is supported for `SKILL_BASED`.\n * `WEIGHTED` - Sends calls to idle agents based on percentages you assign to each agent (up to 100%).\n"
    },
    "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."
    }
  }
}