new webhook models (#444)

warning: existing webhook receivers need to be adapted to the new models
This commit is contained in:
Christoph Haas
2025-06-27 22:28:33 +02:00
parent dd28a8dddf
commit 9c1e037166
9 changed files with 546 additions and 58 deletions

View File

@@ -673,19 +673,6 @@ Without a valid `external_url`, the login process may fail due to CSRF protectio
## Webhook
The webhook section allows you to configure a webhook that is called on certain events in WireGuard Portal.
A JSON object is sent in a POST request to the webhook URL with the following structure:
```json
{
"event": "update",
"entity": "peer",
"identifier": "the-peer-identifier",
"payload": {
// The payload of the event, e.g. peer data.
// Check the API documentation for the exact structure.
}
}
```
Further details can be found in the [usage documentation](../usage/webhooks.md).
### `url`