{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ringover/json-schema/ringover-number-schema.json",
  "title": "number",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ringover-numbers-api-openapi.yml#/components/schemas/number",
  "type": "object",
  "properties": {
    "number": {
      "type": "integer",
      "description": "Phone number in E.164 format without the `+` prefix (e.g., `33612345678`)."
    },
    "label": {
      "type": "string",
      "description": "The label of the number"
    },
    "type": {
      "type": "string",
      "description": "The type of the number"
    },
    "user_id": {
      "type": "integer",
      "format": "int64",
      "description": "The user identifier"
    },
    "ivr_id": {
      "type": "integer",
      "format": "int64",
      "description": "The unique identifier of the IVR. Use `GET /ivrs` to discover available IVR IDs."
    },
    "conference_id": {
      "type": "integer",
      "format": "int64",
      "description": "The conference identifier"
    },
    "is_sms": {
      "type": "boolean"
    },
    "is_sms_write": {
      "type": "boolean"
    },
    "is_callable": {
      "type": "boolean"
    },
    "format": {
      "$ref": "#/$defs/format_number"
    }
  },
  "$defs": {
    "format_number": {
      "type": "object",
      "properties": {
        "raw": {
          "type": "integer",
          "format": "int64"
        },
        "country_code": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "e164": {
          "type": "string"
        },
        "international": {
          "type": "string"
        },
        "international_alt": {
          "type": "string"
        },
        "national": {
          "type": "string"
        },
        "national_alt": {
          "type": "string"
        },
        "rfc3966": {
          "type": "string"
        },
        "is_short_code": {
          "type": "boolean"
        }
      }
    }
  }
}