# How to change a Post-Created Webhook Event Payload

**URL:** https://meta.discourse.org/t/how-to-change-a-post-created-webhook-event-payload/210651
**Category:** Support
**Created:** [December 1, 2021, 8:53am UTC](https://meta.discourse.org/t/how-to-change-a-post-created-webhook-event-payload/210651 "2021-12-01T08:53:33Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![luck7even](https://avatars.discourse-cdn.com/v4/letter/l/f9ae1b/32.png) [@luck7even](https://meta.discourse.org/u/luck7even)
#### Post date: [December 1, 2021, 8:53am UTC](https://meta.discourse.org/t/how-to-change-a-post-created-webhook-event-payload/210651/1 "2021-12-01T08:53:33Z")

</div>

Hello.

I want to customize the payload value of webbook when an event for topic generation occurs.

Example…

# AS-IS

```plaintext
{
  "post": {
    "id": 19,
    "name": "user",
    "username": "user",
    "avatar_template": "/letter_avatar_proxy/v2/letter/u/c0e974/{size}.png",
    "created_at": "2018-07-20T06:24:33.205Z",
    "cooked": "<p>Cool, now i have you, haha</p>",
    "post_number": 6,
    "post_type": 1,
    "updated_at": "2018-07-20T06:24:33.205Z",
    "reply_count": 0,
    "reply_to_post_number": null,
    "quote_count": 0,
    "avg_time": null,
    "incoming_link_count": 0,
    "reads": 0,
    "score": 0,
    "topic_id": 11,
    "topic_slug": "this-is-new-topic",
    "topic_title": "This is new topic",
    "display_username": "user",
    "primary_group_name": null,
    "version": 1,
    "user_title": null,
    "moderator": false,
    "admin": true,
    "staff": true,
    "user_id": 1,
    "hidden": false,
    "trust_level": 1,
    "deleted_at": null,
    "user_deleted": false,
    "edit_reason": null,
    "wiki": false,
    "topic_posts_count": 6
  }
}

```

# TO-BE

```plaintext
{
   "topic_title": "This is new topic"
}

```

Can I know how to do it?

---

<div class="post-metadata">

### Author: ![singi2016cn](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/singi2016cn/32/532755_2.png) [@singi2016cn](https://meta.discourse.org/u/singi2016cn)
#### Post date: [January 9, 2026, 3:13am UTC](https://meta.discourse.org/t/how-to-change-a-post-created-webhook-event-payload/210651/2 "2026-01-09T03:13:44Z")

</div>

I have a similar need. I also feel confused. There is no good solution at the moment.

---

<div class="post-metadata">

### Author: ![Thefacto](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thefacto/32/537948_2.png) [@Thefacto](https://meta.discourse.org/u/Thefacto)
#### Post date: [January 9, 2026, 5:24am UTC](https://meta.discourse.org/t/how-to-change-a-post-created-webhook-event-payload/210651/3 "2026-01-09T05:24:01Z")

</div>

Hey, there’s no built-in way in Discourse to send only a tiny part of the webhook payload, but a couple of ideas that might work:

- You could have a small proxy in the middle (like a tiny Node.js or Python endpoint) that gets the full webhook, strips everything except `topic_title`, then forwards it on. Super flexible and doesn’t touch Discourse itself.

- Or, if you’re up for it, a tiny Discourse plugin could listen to `on(:post_created)` and send only the fields you care about. Just a few lines in Ruby and you’re done.

- Another lazy option is to just let a tool like Zapier or n8n grab the full payload and map/filter it before it reaches your final system.

Nothing fancy, just some ways I’d play around if I needed only `topic_title` 🙂

---

<div class="post-metadata">

### Author: ![singi2016cn](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/singi2016cn/32/532755_2.png) [@singi2016cn](https://meta.discourse.org/u/singi2016cn)
#### Post date: [January 23, 2026, 1:57am UTC](https://meta.discourse.org/t/how-to-change-a-post-created-webhook-event-payload/210651/4 "2026-01-23T01:57:17Z")

</div>

Yes. I am using the first one, but this requires extra coding and maintenance.
