Sample Payloads

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?

1 Like

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: discourse/app/serializers at main · discourse/discourse · GitHub.

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:

3 Likes

Ok great idea, thanks @simon!