This directory contains end-to-end examples for WebhookEngine.
WebhookEngine.Sample.Sender/— console app that uses the .NET SDK to:- create an event type
- create an endpoint
- send a webhook
- query delivery status and attempts
WebhookEngine.Sample.Receiver/— minimal ASP.NET Core API that:- receives webhook
POST /webhook - verifies HMAC signature headers
- logs payload and verification result
- receives webhook
signature-verification/— copy-paste signature verification helpers for C#, TypeScript, and Python
- Start WebhookEngine API:
dotnet run --project src/WebhookEngine.API-
Create an application from the dashboard (
http://localhost:5100in Docker mode orhttp://localhost:5128withdotnet run) and copy its API key. -
Start the receiver:
dotnet run --project samples/WebhookEngine.Sample.ReceiverOptional: enable signature verification by setting the app signing secret:
WEBHOOK_SECRET="your-signing-secret" dotnet run --project samples/WebhookEngine.Sample.Receiver- Run the sender:
dotnet run --project samples/WebhookEngine.Sample.Sender -- "whe_abc_your-api-key"Optional environment variables for sender:
WEBHOOKENGINE_BASE_URL(default:http://localhost:5100)WEBHOOKENGINE_RECEIVER_URL(default:http://localhost:5200/webhook)
You should see webhook payload logs in the receiver console and status updates in the sender output.