WhatsApp · Schema

TemplateAnalytics

TemplateAnalytics from WhatsApp API

Properties

Name Type Description
template_analytics object
View JSON Schema on GitHub

JSON Schema

whatsapp-business-management-api-template-analytics-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/whatsapp/refs/heads/main/json-schema/whatsapp-business-management-api-template-analytics-schema.json",
  "title": "TemplateAnalytics",
  "description": "TemplateAnalytics from WhatsApp API",
  "type": "object",
  "properties": {
    "template_analytics": {
      "type": "object",
      "properties": {
        "data": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "template_id": {
                "type": "string"
              },
              "data_points": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "start": {
                      "type": "integer"
                    },
                    "end": {
                      "type": "integer"
                    },
                    "sent": {
                      "type": "integer"
                    },
                    "delivered": {
                      "type": "integer"
                    },
                    "read": {
                      "type": "integer"
                    },
                    "clicked": {
                      "type": "integer"
                    },
                    "cost": {
                      "type": "number"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}