# Add new webhooks and customize webhook payload

**URL:** <https://meta.discourse.org/t/add-new-webhooks-and-customize-webhook-payload/59609>\
**Category:** Administrators\
**Tags:** webhooks, how-to\
**Created:** [March 21, 2017, 10:27am UTC](https://meta.discourse.org/t/add-new-webhooks-and-customize-webhook-payload/59609 "2017-03-21T10:27:08Z")\
**Posts on this page:** 1\
**Showing post:** 11

<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, 9:17am UTC](https://meta.discourse.org/t/add-new-webhooks-and-customize-webhook-payload/59609/11 "2021-12-01T09:17:49Z")

</div>

@fantasticfears  
Hi.

I’m trying to connect discourse to APP using webhooks.

I’ve done most of things but only one thing is left.

when you create a new topic in discourse, you send payload which has a lot of parameters to APP .

however, slack only get ‘text’ parameter. so I want to customize payload when using webhooks.

how do I change payload when using webhooks in discourse?

# 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"
}

```

Regard.

---

_[View the full topic](https://meta.discourse.org/t/add-new-webhooks-and-customize-webhook-payload/59609)._
