# Watcher - Alerts to call an External API

**URL:** <https://discuss.elastic.co/t/watcher-alerts-to-call-an-external-api/238160>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [June 22, 2020, 9:57pm UTC](https://discuss.elastic.co/t/watcher-alerts-to-call-an-external-api/238160 "2020-06-22T21:57:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sushmamagesh](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@sushmamagesh](https://discuss.elastic.co/u/sushmamagesh)\
**Post date:** [June 22, 2020, 9:57pm UTC](https://discuss.elastic.co/t/watcher-alerts-to-call-an-external-api/238160/1 "2020-06-22T21:57:03Z")

</div>

Hi

Can you please point to any documentation on how to connect from watcher alerts to an external third party API, basically as http call that returns a set of parameters in JSON format. The alert then needs to be able to read the JSON values within the alert and send email notification.

Thanks

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [June 30, 2020, 8:18am UTC](https://discuss.elastic.co/t/watcher-alerts-to-call-an-external-api/238160/2 "2020-06-30T08:18:28Z")

</div>

See [https://www.elastic.co/guide/en/elasticsearch/reference/current/input-http.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/input-http.html)

---

<div class="post-metadata">

**Author:** ![sushmamagesh](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@sushmamagesh](https://discuss.elastic.co/u/sushmamagesh)\
**Post date:** [July 13, 2020, 11:13pm UTC](https://discuss.elastic.co/t/watcher-alerts-to-call-an-external-api/238160/3 "2020-07-13T23:13:54Z")

</div>

thanks  
Additionally, Is there a way to use edgegrid authentication for this. I dont see this in the documentation but wondering if there will be a workaround.

```auto
http --auth-type edgegrid -a <section_name>: :/<api_endpoint>

```

> **[akamai/httpie-edgegrid](https://github.com/akamai/httpie-edgegrid)**
>
> Plugin for httpie to allow edge grid authentication for Akamai - akamai/httpie-edgegrid

---

<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:** [August 10, 2020, 11:14pm UTC](https://discuss.elastic.co/t/watcher-alerts-to-call-an-external-api/238160/4 "2020-08-10T23:14:01Z")

</div>

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