# Post commits via webhook inside a topic as reply

**URL:** https://meta.discourse.org/t/post-commits-via-webhook-inside-a-topic-as-reply/156821
**Category:** Support
**Created:** [July 5, 2020, 9:16am UTC](https://meta.discourse.org/t/post-commits-via-webhook-inside-a-topic-as-reply/156821 "2020-07-05T09:16:58Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![bartv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bartv/32/130052_2.png) [@bartv](https://meta.discourse.org/u/bartv)
#### Post date: [July 5, 2020, 9:37am UTC](https://meta.discourse.org/t/post-commits-via-webhook-inside-a-topic-as-reply/156821/2 "2020-07-05T09:37:42Z")

</div>

You can find out how to construct your request by reverse engineering the Discourse API. Basically you open your network inspector, post a reply to a topic and see what happens under the hood:

> [@Reverse engineer the Discourse API](https://meta.discourse.org/t/how-to-reverse-engineer-the-discourse-api/20576):
>
> Discourse is backed by a complete JSON api. Anything you can do on the site you can also do using the JSON api. The API is documented at [docs.discourse.org](https://docs.discourse.org). You can also use the [discourse\_api](https://github.com/discourse/discourse_api) Ruby gem as a client library. However, not every endpoint is documented. To determine how to do something with the JSON API here are some steps you can follow. Example: recategorize a topic. Go to a topic and start editing a category: Open Chrome dev tools, switch to the Network tab, select …

---

_[View the full topic](https://meta.discourse.org/t/post-commits-via-webhook-inside-a-topic-as-reply/156821)._
