Webhook payload templates in Meraki define the structure and format of data sent via webhook notifications. Payload templates allow customization of the JSON body and HTTP headers included in webhook requests, enabling integration with third-party platforms such as Splunk, ServiceNow, PagerDuty, and other event management systems. Templates support Liquid template syntax for dynamic content rendering, allowing alert data fields to be mapped into the format expected by the receiving system.
Example-1: The example below demonstrates a basic webhook payload template with a custom body using Liquid template syntax for Splunk HEC integration.
This configuration creates a payload template named “splunk_template” that formats Meraki alert data into a JSON structure compatible with Splunk HTTP Event Collector (HEC). The body uses Liquid template variables (e.g., {{sentAt}}, {{alertType}}) to dynamically populate alert details. The Authorization header includes a Bearer token for authentication with the Splunk HEC endpoint.