# How to include custom key/value in webhook?

**URL:** <https://discuss.elastic.co/t/how-to-include-custom-key-value-in-webhook/268570>\
**Category:** Elasticsearch\
**Created:** [March 27, 2021, 9:11pm UTC](https://discuss.elastic.co/t/how-to-include-custom-key-value-in-webhook/268570 "2021-03-27T21:11:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sandra\_Schlichting](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sandra_schlichting/32/84122_2.png) [@Sandra\_Schlichting](https://discuss.elastic.co/u/Sandra_Schlichting)\
**Post date:** [March 27, 2021, 9:11pm UTC](https://discuss.elastic.co/t/how-to-include-custom-key-value-in-webhook/268570/1 "2021-03-27T21:11:20Z")

</div>

Dear all =)

Does anyone know how to include a custom key/value in a webhook?  
E.g.  
`"ExampleKey": "ExampleValue"`  
My current webhook json encodes the payload, so the custom key/value would have to be part of the json block.

Hugs,  
Sandra =)

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [March 28, 2021, 12:09am UTC](https://discuss.elastic.co/t/how-to-include-custom-key-value-in-webhook/268570/2 "2021-03-28T00:09:47Z")

</div>

Couple questions

Is this a Kibana Alert or Watcher?

What is the source data of the key value pairs?

Is it static or dynamic?

Can you show a sample of your webhook json payload?

You can put anything you like in the payload, but there is only certain data in the context that is available for the action.

---

<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:** [April 25, 2021, 12:09am UTC](https://discuss.elastic.co/t/how-to-include-custom-key-value-in-webhook/268570/3 "2021-04-25T00:09:59Z")

</div>

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