{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ringover/json-schema/ringover-ivr-list-schema.json",
  "title": "ivr_list",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ringover-ivrs-api-openapi.yml#/components/schemas/ivr_list",
  "type": "object",
  "properties": {
    "list_count": {
      "type": "integer",
      "format": "int64",
      "description": "The size of the list"
    },
    "list": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ivr_without_number"
      }
    }
  },
  "$defs": {
    "ivr_without_number": {
      "type": "object",
      "properties": {
        "ivr_id": {
          "type": "integer",
          "format": "int64",
          "description": "The identifier if the ivr"
        },
        "color": {
          "type": "string",
          "enum": [
            "ff6b6b",
            "F06292",
            "BA68C8",
            "9575CD",
            "7986CB",
            "64B5F6",
            "4FC3F7",
            "4DD0E1",
            "4DB6AC",
            "81C784",
            "AED581",
            "DCE775",
            "FFD54F",
            "FFB74D",
            "FF8A65",
            "A1887F",
            "E0E0E0",
            "90A4AE"
          ]
        },
        "name": {
          "type": "string",
          "description": "The name of the ivr"
        },
        "scenarios": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "scenario_id": {
                "type": "integer",
                "format": "int64",
                "description": "The scenario identifier"
              },
              "ivr_id": {
                "type": "integer",
                "format": "int64",
                "description": "The unique identifier of the IVR. Use `GET /ivrs` to discover available IVR IDs."
              },
              "name": {
                "type": "string",
                "description": "The name of the scenario"
              },
              "color": {
                "type": "string"
              },
              "scenario_type": {
                "type": "string",
                "enum": [
                  "menu",
                  "announce",
                  "queue",
                  "sms",
                  "webhook",
                  "input"
                ],
                "description": "The type of the scenario"
              },
              "is_default": {
                "type": "boolean"
              }
            }
          }
        },
        "is_open": {
          "type": "boolean",
          "description": "The ivr is open or not"
        }
      }
    }
  }
}