{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pulseem-com/json-schema/pulseem-com-watemplate-create-input-model-schema.json",
  "title": "WATemplateCreateInputModel",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pulseem-com-openapi.json#/components/schemas/WATemplateCreateInputModel",
  "type": "object",
  "properties": {
    "wabaid": {
      "type": [
        "string",
        "null"
      ]
    },
    "friendlyTemplateName": {
      "type": [
        "string",
        "null"
      ]
    },
    "templateName": {
      "type": [
        "string",
        "null"
      ]
    },
    "templateCategory": {
      "$ref": "#/$defs/Lu_WhatsappTemplateCategory"
    },
    "language": {
      "type": [
        "string",
        "null"
      ]
    },
    "variables": {
      "nullable": true
    },
    "types": {
      "$ref": "#/$defs/Types"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "Actions": {
      "type": "object",
      "properties": {
        "type": {
          "type": [
            "string",
            "null"
          ]
        },
        "title": {
          "type": [
            "string",
            "null"
          ]
        },
        "url": {
          "type": [
            "string",
            "null"
          ]
        },
        "phone": {
          "type": [
            "string",
            "null"
          ]
        },
        "id": {
          "type": [
            "string",
            "null"
          ]
        },
        "phoneCode": {
          "type": [
            "string",
            "null"
          ]
        },
        "copy_code_text": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "Lu_WhatsappTemplateCategory": {
      "enum": [
        "MARKETING",
        "UTILITY",
        "AUTHENTICATION"
      ],
      "type": "string"
    },
    "Type_Authentication": {
      "type": "object",
      "properties": {
        "add_security_recommendation": {
          "type": "boolean"
        },
        "code_expiration_minutes": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        },
        "actions": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/Actions"
          }
        }
      },
      "additionalProperties": false
    },
    "Type_CallToAction": {
      "type": "object",
      "properties": {
        "body": {
          "type": [
            "string",
            "null"
          ]
        },
        "actions": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/Actions"
          }
        }
      },
      "additionalProperties": false
    },
    "Type_Card": {
      "type": "object",
      "properties": {
        "title": {
          "type": [
            "string",
            "null"
          ]
        },
        "subtitle": {
          "type": [
            "string",
            "null"
          ]
        },
        "media": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "actions": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/Actions"
          }
        }
      },
      "additionalProperties": false
    },
    "Type_Media": {
      "type": "object",
      "properties": {
        "body": {
          "type": [
            "string",
            "null"
          ]
        },
        "media_type": {
          "type": [
            "string",
            "null"
          ]
        },
        "media": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        }
      },
      "additionalProperties": false
    },
    "Type_QuickReply": {
      "type": "object",
      "properties": {
        "body": {
          "type": [
            "string",
            "null"
          ]
        },
        "actions": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/Actions"
          }
        }
      },
      "additionalProperties": false
    },
    "Type_Text": {
      "type": "object",
      "properties": {
        "body": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "Types": {
      "type": "object",
      "properties": {
        "text": {
          "$ref": "#/$defs/Type_Text"
        },
        "media": {
          "$ref": "#/$defs/Type_Media"
        },
        "quickReply": {
          "$ref": "#/$defs/Type_QuickReply"
        },
        "callToAction": {
          "$ref": "#/$defs/Type_CallToAction"
        },
        "card": {
          "$ref": "#/$defs/Type_Card"
        },
        "authentication": {
          "$ref": "#/$defs/Type_Authentication"
        }
      },
      "additionalProperties": false
    }
  }
}