--- title: "Test Data Webhook Templates" slug: "test-data-webhook-templates" updated: 2025-03-07T17:17:41Z published: 2025-03-07T17:17:41Z canonical: "docs.catchpoint.com/test-data-webhook-templates" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.catchpoint.com/llms.txt > Use this file to discover all available pages before exploring further. # Test Data Webhook Templates The [Test Data Webhook](/v1/docs/test-data-webhook-guide) features supports Templates, which allow you to format the content of test data being sent to the webhook url however the destination system requires. ## Implementation: To create a template: 1. Click on the **API** link in the **Settings** module. 2. In the **Test Data Webhook** section select the radio button labeled **Template**, and then click **Select Template** 3. Click **Add New** in the template selection drop-down menu. (Existing templates can be edited in the menu by hovering over the template name and selecting the **Edit/View Properties** icon.) ![](https://cdn.document360.io/cb4af8f9-6751-4fd2-b39c-07aae832badb/Images/Documentation/115008404246-mceclip0.png) 4. A box will pop up where you can specify the name, format (text, JSON, or XML) for the template and define its contents. ## Macros Test Data Webhook Macros are text strings in this format: `${macro_name}` At runtime, when data is sent to the webhook, each macro in your template will be replaced with the corresponding value generated by Catchpoint. For example, the macro `${testurl}` would be replaced with the Test URL configured in your test that generated the data. Using a template completely replaces the default JSON or XML payload. If you want to include the default payload in your template, you can do so using the following macros: **${JsonPayload}** - the default JSON payload sent by the Webhook when not using a template. **${XmlPayload}** - the default XML payload sent by the Webhook when not using a template. [Additional Macros can be found here.](https://docs.catchpoint.com/docs/legacy-test-data-webhook-macros)