I’m looking for samples of the user-triggered webhook payloads and wondered if there were examples anywhere? Is there a repository of sample webhook payloads anywhere?
Not that I know of. You can find the properties that are included in the payloads by looking at the serializers that begin with
web_hook in this directory: https://github.com/discourse/discourse/tree/master/app/serializers.
My normal method for checking a webhook’s payload is to configure a webhook to point to
http://example.com and then perform an action through the site’s UI to trigger the webhook. The payload can then be seen from the webhooks Events list:
Ok great idea, thanks @simon!