Webhooks
Create Webhooks
Once you opened WGDashboard, you should see a new menu item in the navigation bar called Webhooks, click on it to open the webhooks manager.
If you're first time using it, you should see a blank page, which is normal. To create a new webhook, click on the blue button in the top right corner.
Fill in the form
Payload URL: This is the URL WGDashboard will post to, it can be HTTP or HTTPS
Content Type: This depends on how you want to receive data, in JSON format, or URL encoded format
Verify SSL: This only applies if your Payload URL is HTTPS, we strongly recommend to keep this on so we can make sure your data is not sent to bad people ;)
Custom Headers: If your Payload URL required extra headers, like API Keys, Bearer token, you can do so.
Subscribed Actions: You can choose which event(s) you want to subscribe. In the future we will add more actions.
Enable Webhook: You can choose to enable it or not after saving it
Click Save and voila your Webhook is ready!
Payload Example
Webhook payloads will only expose public information, keys in $.peers
are their public key