Skip to content

Commit 8a2d3f8

Browse files
authored
Added Printing the Raw Webhook Payload to Standard Output example (#746)
1 parent 34d4418 commit 8a2d3f8

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

docs/Hook-Examples.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,24 @@ although the examples on this page all use the JSON format.
2424
* [Receive Synology DSM notifications](#receive-synology-notifications)
2525
* [Incoming Azure Container Registry (ACR) webhook](#incoming-acr-webhook)
2626

27+
## Printing the Raw Webhook Payload to Standard Output
28+
29+
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.
30+
31+
```json
32+
[
33+
{
34+
"id": "print-payload",
35+
"execute-command": "/bin/echo",
36+
"pass-arguments-to-command": [
37+
{
38+
"source": "entire-payload",
39+
}
40+
]
41+
}
42+
]
43+
```
44+
2745
## Incoming Github webhook
2846

2947
This example works on 2.8+ versions of Webhook - if you are on a previous series, change `payload-hmac-sha1` to `payload-hash-sha1`.

0 commit comments

Comments
 (0)