Receive and serve webhooks requests
548
Send webhooks to the service to verify the sent webhook details later.
You will have to supply a DB environment variable that contains the connection string to your DB using DATABASE_URL
NOTE - We highly recommend using a dedicated DB for the service.
docker run -it -p 8080:8080 -e DATABASE_URL="<your-connection-string>" loadmill/webhook-service
Send your webhook to https://<your-host>/${UUID}/x/y/z where x/y/z is your dynamic path
<your-host>/${UUID} should replace your regular webhook domain target.
After your server send a webhook to the service you can query it using a GET request:
Send a GET request to https://<your-host>/requests/${UUID} and you will get the last webhook details for that UUID.
The webhook details that will be returned are:
{
method,
path,
query,
headers,
body,
}
If you want a specific webhook and not the last one, you can use a query.
For example:
https://<your-host>/requests/${UUID}?method=DELETE&[email protected]
https://<your-host>/requests/${UUID}?headers.referer=https://example.com
Content type
Image
Digest
sha256:d3483bb7a…
Size
46.6 MB
Last updated
over 3 years ago
docker pull loadmill/webhook-service