JSON data structure when using webhook

What is the specific JSON data structure that Discourse sends to other services when using webhook? Can you give me an example?

1 Like

It depends on what webhook it is.

To get some example data, Set one up and see what it sends you.

1 Like

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:

4 Likes

That’s awesome! You don’t even need to have something receive the webhook to get the answer!

1 Like

Thank you for your answer, it is very useful.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.