From a9980118998a2ae09203e523bde794468af50d89 Mon Sep 17 00:00:00 2001 From: Julio Date: Fri, 2 Jan 2026 10:26:39 -0400 Subject: [PATCH] Added Printing the Raw Webhook Payload to Standard Output example --- docs/Hook-Examples.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/Hook-Examples.md b/docs/Hook-Examples.md index 854d010..66aa5a7 100644 --- a/docs/Hook-Examples.md +++ b/docs/Hook-Examples.md @@ -24,6 +24,24 @@ although the examples on this page all use the JSON format. * [Receive Synology DSM notifications](#receive-synology-notifications) * [Incoming Azure Container Registry (ACR) webhook](#incoming-acr-webhook) +## Printing the Raw Webhook Payload to Standard Output + +This hook configuration receives incoming webhook requests and prints the raw request body (payload) directly to the server's standard output (visible in the webhook process logs when running with -verbose). It is particularly useful for debugging and verifying webhook deliveries from external services. + +```json +[ + { + "id": "print-payload", + "execute-command": "/bin/echo", + "pass-arguments-to-command": [ + { + "source": "entire-payload", + } + ] + } +] +``` + ## Incoming Github webhook This example works on 2.8+ versions of Webhook - if you are on a previous series, change `payload-hmac-sha1` to `payload-hash-sha1`.