Webhook Use Cases
HookTray works with any service that sends HTTP webhooks. Here are common debugging scenarios with quick-start curl examples.
Stripe payment webhooks
Stripe sends webhook events for payments, subscriptions, invoices, and more. During local development, you can use HookTray to inspect the exact payload shape before writing your handler.
- Open HookTray and copy your hook URL.
- In the Stripe Dashboard under Developers > Webhooks, add the hook URL as an endpoint.
- Trigger a test event - HookTray shows the payload and Stripe-Signature header.
Or send a test payload directly with curl:
curl -X POST "https://hooktray.com/hooks/YOUR_TOKEN" \
-H "content-type: application/json" \
-H "stripe-signature: t=1234,v1=abc" \
-d '{"type":"payment_intent.succeeded","data":{"object":{"amount":2000}}}'GitHub repository events
GitHub webhooks fire on push events, pull requests, issues, releases, and dozens of other repository events. Inspect the full payload to understand the event structure before building your CI or automation workflow.
- Open HookTray and copy your hook URL.
- In your GitHub repository, go to Settings > Webhooks > Add webhook.
- Paste the hook URL and select the events you want to receive.
- Push a commit or open a PR - the event appears in HookTray instantly.
Simulate a push event with curl:
curl -X POST "https://hooktray.com/hooks/YOUR_TOKEN" \
-H "content-type: application/json" \
-H "x-github-event: push" \
-H "x-hub-signature-256: sha256=abc123" \
-d '{"ref":"refs/heads/main","repository":{"full_name":"user/repo"}}'Shopify order hooks
Shopify sends webhooks for orders, fulfilments, customers, and products. Use HookTray to inspect order payloads and verify your HMAC validation logic before deploying.
- Open HookTray and copy your hook URL.
- In Shopify Admin, go to Settings > Notifications > Webhooks and add the hook URL.
- Select a topic such as orders/create and send a test webhook from Shopify.
curl -X POST "https://hooktray.com/hooks/YOUR_TOKEN" \
-H "content-type: application/json" \
-H "x-shopify-topic: orders/create" \
-H "x-shopify-hmac-sha256: abc123" \
-d '{"id":1234,"email":"[email protected]","total_price":"99.00"}'Slack events
Slack sends HTTP POST requests to your endpoint for app events, slash commands, and interactive components. HookTray lets you capture and inspect these payloads during development without exposing a public server.
curl -X POST "https://hooktray.com/hooks/YOUR_TOKEN" \
-H "content-type: application/json" \
-H "x-slack-signature: v0=abc123" \
-d '{"type":"event_callback","event":{"type":"message","text":"hello"}}'Any HTTP client
HookTray accepts GET, POST, PUT, PATCH, and DELETE. You can inspect webhooks from any service or send test requests directly from your terminal.
# Minimal test
curl -X POST "https://hooktray.com/hooks/YOUR_TOKEN" \
-H "content-type: application/json" \
-d '{"event":"test","ok":true}'
# With custom headers
curl -X PUT "https://hooktray.com/hooks/YOUR_TOKEN" \
-H "x-custom-header: value" \
-H "content-type: application/json" \
-d '{"id":42}'