# Can a plugin add a webhook?

**URL:** <https://meta.discourse.org/t/can-a-plugin-add-a-webhook/81361>\
**Category:** Development\
**Created:** [February 23, 2018, 10:10pm UTC](https://meta.discourse.org/t/can-a-plugin-add-a-webhook/81361 "2018-02-23T22:10:51Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)\
**Post date:** [February 24, 2018, 2:19am UTC](https://meta.discourse.org/t/can-a-plugin-add-a-webhook/81361/3 "2018-02-24T02:19:50Z")

</div>

Ah that would only create a web hook record in the database but doesn’t enqueue any jobs.

> [@jack2](#):
>
> I’m working on a plugin that communicates with an external web app.

What kind of custom fields/webhook are you sending to your web app? You could subscribe to certain `DiscourseEvents` and add a custom Sidekiq job which calls an API on your web app.

---

_[View the full topic](https://meta.discourse.org/t/can-a-plugin-add-a-webhook/81361)._
