{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/whatsapp/json-schema/whatsapp-request-code-request-schema.json",
  "title": "RequestCodeRequest",
  "description": "Request body for requesting a verification code",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/whatsapp-phone-number-verification-api-openapi.yml#/components/schemas/RequestCodeRequest",
  "type": "object",
  "required": [
    "code_method",
    "language"
  ],
  "properties": {
    "code_method": {
      "type": "string",
      "description": "Method for receiving the verification code",
      "enum": [
        "SMS",
        "VOICE"
      ]
    },
    "language": {
      "type": "string",
      "description": "Language locale for the verification message",
      "pattern": "^[a-z]{2}_[A-Z]{2}$",
      "minLength": 5,
      "maxLength": 5
    }
  }
}