{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-ad/json-schema/azure-ad-microsoft-graph-phone-authentication-method-schema.json",
  "title": "microsoft.graph.phoneAuthenticationMethod",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/azure-ad-users-authentication-api-openapi.yml#/components/schemas/microsoft.graph.phoneAuthenticationMethod",
  "allOf": [
    {
      "$ref": "#/$defs/microsoft.graph.authenticationMethod"
    },
    {
      "title": "phoneAuthenticationMethod",
      "type": "object",
      "properties": {
        "phoneNumber": {
          "type": [
            "string",
            "null"
          ],
          "description": "The phone number to text or call for authentication. Phone numbers use the format +{country code} {number}x{extension}, with extension optional. For example, +1 5555551234 or +1 5555551234x123 are valid. Numbers are rejected when creating or updating if they don't match the required format."
        },
        "phoneType": {
          "$ref": "#/$defs/microsoft.graph.authenticationPhoneType"
        },
        "smsSignInState": {
          "$ref": "#/$defs/microsoft.graph.authenticationMethodSignInState"
        }
      },
      "additionalProperties": {
        "type": "object"
      }
    }
  ],
  "$defs": {
    "microsoft.graph.authenticationMethod": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.entity"
        },
        {
          "title": "authenticationMethod",
          "type": "object",
          "properties": {
            "createdDateTime": {
              "pattern": "^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$",
              "type": [
                "string",
                "null"
              ],
              "description": "Represents the date and time when an entity was created. Read-only.",
              "format": "date-time"
            }
          },
          "additionalProperties": {
            "type": "object"
          }
        }
      ]
    },
    "microsoft.graph.authenticationMethodSignInState": {
      "title": "authenticationMethodSignInState",
      "enum": [
        "notSupported",
        "notAllowedByPolicy",
        "notEnabled",
        "phoneNumberNotUnique",
        "ready",
        "notConfigured",
        "unknownFutureValue"
      ],
      "type": "string"
    },
    "microsoft.graph.authenticationPhoneType": {
      "title": "authenticationPhoneType",
      "enum": [
        "mobile",
        "alternateMobile",
        "office",
        "unknownFutureValue"
      ],
      "type": "string"
    },
    "microsoft.graph.entity": {
      "title": "entity",
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier for an entity. Read-only."
        }
      },
      "additionalProperties": {
        "type": "object"
      }
    }
  }
}