Webhook 使用時の JSON データ構造

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

「いいね!」 1

It depends on what webhook it is.

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

「いいね!」 1

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

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

「いいね!」 1

Thank you for your answer, it is very useful.

「いいね!」 1

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