WhatsApp · JSON Structure

Whatsapp Cloud Api Template Message Structure

TemplateMessage from WhatsApp API

Type: object Properties: 3 Required: 2

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

Properties

name language components

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-cloud-api-template-message-structure.json",
  "name": "TemplateMessage",
  "description": "TemplateMessage from WhatsApp API",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Template name",
      "example": "Example Business"
    },
    "language": {
      "type": "object",
      "required": [
        "code"
      ],
      "properties": {
        "code": {
          "type": "string",
          "description": "Language/locale code"
        },
        "policy": {
          "type": "string",
          "default": "deterministic"
        }
      }
    },
    "components": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/TemplateComponent"
      }
    }
  },
  "required": [
    "name",
    "language"
  ]
}