WhatsApp · JSON Structure

Whatsapp Business Management Api Create Template Request Structure

CreateTemplateRequest from WhatsApp API

Type: object Properties: 5 Required: 4

CreateTemplateRequest is a JSON Structure definition published by WhatsApp, describing 5 properties, of which 4 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

name language category components parameter_format

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/whatsapp/refs/heads/main/json-structure/whatsapp-business-management-api-create-template-request-structure.json",
  "name": "CreateTemplateRequest",
  "description": "CreateTemplateRequest from WhatsApp API",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Template name (lowercase, underscores only, max 512 chars)",
      "maxLength": 512,
      "pattern": "^[a-z][a-z0-9_]*$",
      "example": "Example Business"
    },
    "language": {
      "type": "string",
      "description": "Language code",
      "example": "en_US"
    },
    "category": {
      "type": "string",
      "enum": [
        "AUTHENTICATION",
        "MARKETING",
        "UTILITY"
      ],
      "example": "AUTHENTICATION"
    },
    "components": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/TemplateComponentDefinition"
      }
    },
    "parameter_format": {
      "type": "string",
      "enum": [
        "POSITIONAL",
        "NAMED"
      ],
      "example": "POSITIONAL"
    }
  },
  "required": [
    "name",
    "language",
    "category",
    "components"
  ]
}