# Use template for webhook action in Watcher

**URL:** <https://discuss.elastic.co/t/use-template-for-webhook-action-in-watcher/254966>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [November 10, 2020, 7:31pm UTC](https://discuss.elastic.co/t/use-template-for-webhook-action-in-watcher/254966 "2020-11-10T19:31:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ofir\_Edi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ofir_edi/32/78181_2.png) [@Ofir\_Edi](https://discuss.elastic.co/u/Ofir_Edi)\
**Post date:** [November 10, 2020, 7:31pm UTC](https://discuss.elastic.co/t/use-template-for-webhook-action-in-watcher/254966/1 "2020-11-10T19:31:03Z")

</div>

Hi,  
we have multiple watchers (different inputs and conditions) that are doing the exactly same webhook action.  
Is there a way to create/store action (like the \_scripts or \_templates api) and refer to it in the watcher actions section instead of creating the action over and over again for each watcher. Also we are using basic auth in the web hook action and i wanted to know if there is a way to refer to the password value (in any way) instead of writing it in a plain text.  
Thank you

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 8, 2020, 7:31pm UTC](https://discuss.elastic.co/t/use-template-for-webhook-action-in-watcher/254966/2 "2020-12-08T19:31:03Z")

</div>

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