{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/telnyx/main/json-schema/telnyx-mobile-phone-number-schema.json",
  "title": "MobilePhoneNumber",
  "x-generated": "2026-10-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/telnyx-mobile-phone-numbers-api-openapi.yml#/components/schemas/MobilePhoneNumber",
  "properties": {
    "call_forwarding": {
      "properties": {
        "call_forwarding_enabled": {
          "type": "boolean"
        },
        "forwarding_type": {
          "enum": [
            "always",
            "on-failure"
          ],
          "type": [
            "string",
            "null"
          ]
        },
        "forwards_to": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "call_recording": {
      "properties": {
        "inbound_call_recording_channels": {
          "enum": [
            "single",
            "dual"
          ],
          "type": "string"
        },
        "inbound_call_recording_enabled": {
          "type": "boolean"
        },
        "inbound_call_recording_format": {
          "enum": [
            "wav",
            "mp3"
          ],
          "type": "string"
        }
      },
      "type": "object"
    },
    "caller_id_name_enabled": {
      "description": "Indicates if caller ID name is enabled.",
      "type": "boolean"
    },
    "cnam_listing": {
      "properties": {
        "cnam_listing_details": {
          "type": [
            "string",
            "null"
          ]
        },
        "cnam_listing_enabled": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "connection_id": {
      "description": "The ID of the connection associated with this number.",
      "type": [
        "string",
        "null"
      ],
      "x-format": "int64"
    },
    "connection_name": {
      "description": "The name of the connection.",
      "readOnly": true,
      "type": [
        "string",
        "null"
      ]
    },
    "connection_type": {
      "description": "The type of the connection.",
      "readOnly": true,
      "type": [
        "string",
        "null"
      ]
    },
    "country_iso_alpha2": {
      "description": "The ISO 3166-1 alpha-2 country code of the number.",
      "readOnly": true,
      "type": "string"
    },
    "created_at": {
      "description": "ISO 8601 formatted date indicating when the resource was created.",
      "format": "date-time",
      "readOnly": true,
      "type": "string"
    },
    "customer_reference": {
      "description": "A customer reference string.",
      "type": [
        "string",
        "null"
      ]
    },
    "id": {
      "description": "Identifies the resource.",
      "readOnly": true,
      "type": "string"
    },
    "inbound": {
      "properties": {
        "interception_app_id": {
          "description": "The ID of the app that will intercept inbound calls.",
          "type": [
            "string",
            "null"
          ],
          "x-format": "int64"
        },
        "interception_app_name": {
          "description": "The name of the app that will intercept inbound calls.",
          "readOnly": true,
          "type": [
            "string",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "inbound_call_screening": {
      "description": "The inbound call screening setting.",
      "enum": [
        "disabled",
        "reject_calls",
        "flag_calls"
      ],
      "type": [
        "string",
        "null"
      ]
    },
    "mobile_voice_enabled": {
      "description": "Indicates if mobile voice is enabled.",
      "readOnly": true,
      "type": "boolean"
    },
    "noise_suppression": {
      "description": "The noise suppression setting.",
      "enum": [
        "inbound",
        "outbound",
        "both",
        "disabled"
      ],
      "type": "string"
    },
    "outbound": {
      "properties": {
        "interception_app_id": {
          "description": "The ID of the app that will intercept outbound calls.",
          "type": [
            "string",
            "null"
          ],
          "x-format": "int64"
        },
        "interception_app_name": {
          "description": "The name of the app that will intercept outbound calls.",
          "readOnly": true,
          "type": [
            "string",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "phone_number": {
      "description": "The +E.164-formatted phone number.",
      "readOnly": true,
      "type": "string"
    },
    "record_type": {
      "description": "Identifies the type of the resource.",
      "readOnly": true,
      "type": "string"
    },
    "sim_card_id": {
      "description": "The ID of the SIM card associated with this number.",
      "format": "uuid",
      "readOnly": true,
      "type": "string"
    },
    "status": {
      "description": "The status of the phone number.",
      "readOnly": true,
      "type": "string"
    },
    "tags": {
      "description": "A list of tags associated with the number.",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "updated_at": {
      "description": "ISO 8601 formatted date indicating when the resource was last updated.",
      "format": "date-time",
      "readOnly": true,
      "type": "string"
    }
  },
  "type": "object"
}