What is the specific JSON data structure that Discourse sends to other services when using webhook? Can you give me an example?
It depends on what webhook it is.
To get some example data, Set one up and see what it sends you.
Type definitions of the webhook payloads would be useful. I’ve created a few, but my definitions are limited to the data that my application is consuming, so they probably are not useful to share.
To add to Jay’s answer, the easiest way to see the JSON data structure for a webhook is to configure a webhook to point to https://example.com
, then perform an action on your site that triggers the webhook. You can see the payload by clicking the “Request” button from the webhook’s events page:
That’s awesome! You don’t even need to have something receive the webhook to get the answer!
Thank you for your answer, it is very useful.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.