# Action over webhook status

**URL:** <https://discuss.elastic.co/t/action-over-webhook-status/338278>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [July 13, 2023, 5:45am UTC](https://discuss.elastic.co/t/action-over-webhook-status/338278 "2023-07-13T05:45:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ddoroshenko](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@ddoroshenko](https://discuss.elastic.co/u/ddoroshenko)\
**Post date:** [July 13, 2023, 5:45am UTC](https://discuss.elastic.co/t/action-over-webhook-status/338278/1 "2023-07-13T05:45:20Z")

</div>

Hi,

I have a watcher with webhook action in it. Is it possible to make another action based on webhook response status? Something like that

```auto
actions: {
  webhook_action: {
    webhook: {
      scheme:
      host:
      port:
      ...
    }
  },
  action_on_webhook_response_status: {
    condition: {
      compare: {
        webhook_action.response.status: {
          gte: 400
        }
      }
    },
    email: {
      from:
      to:
      subject:
      body: {
        webhook_action failed
      }
    }
  }
}

```

---

<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, 2023, 5:45am UTC](https://discuss.elastic.co/t/action-over-webhook-status/338278/2 "2023-08-10T05:45:53Z")

</div>

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