> For the complete documentation index, see [llms.txt](https://help.aikido.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.aikido.dev/docs/docs-ja/zen-firewall/zen-features/webhooks.md).

# Webhook

Slack と Microsoft Teams の通知に加えて、Zen イベント用の Webhook も設定できます。Webhook を作成または変更するには、 [Webhooks ページ](https://app.aikido.dev/settings/integrations/api/webhooks) .

リクエストが成功しない場合、Aikido は通知の再送を 5 回試みます。HTTP ステータスコード 200 以外が返された場合、またはタイムアウトが発生した場合、リクエストは失敗と見なされます。 [このページ](https://apidocs.aikido.dev/reference/verirfying-webhooks) では webhook イベントを検証する方法について説明しています。

### Webhook イベント

現在、以下のイベントが送信されています：

<details>

<summary>攻撃を検知（サンプル）</summary>

{% code overflow="wrap" %}

```json
{
   "event_type": "zen.attack",
   "created_at": 1760015974,
   "payload": {
      "url": "http://app.aikido.dev/runtime/services/X/events?groupId=X&eventId=X",
      "eventId": 123,
      "attack": {
         "blocked": false,
         "kind":" sql_injection"
      },
      "request": {
         "method": "POST",
         "route":"/add",
         "ipAddress": "::ffff:127.0.0.1",
         "userAgent": "Mozilla/5.0 ..."
      },
      "service": {
         "id": 1,
         "name": "テスト",
         "environment": "本番"
      },
      "instance":{
         "id": 1,
         "ip_address": "172.17.0.123",
         "hostname": "hostname.local"
      },
      "user": {
         "id": "123abc",
         "blocked_at": 0
      },
      "message": "テストで SQL インジェクションを検知しました"
   },
   "dispatched_at": 1760016033
}
```

{% endcode %}

</details>

<details>

<summary>攻撃の波を検知（サンプル）</summary>

```json
{
   "event_type": "zen.attack_wave",
   "created_at": 1760015974,
   "payload": {
      "url": "http://app.aikido.dev/runtime/services/X/events?groupId=X&eventId=X",
      "eventId": 123,
      "request": {
         "ipAddress": "::ffff:127.0.0.1",
         "userAgent": "Mozilla/5.0 ..."
      },
      "service": {
         "id": 1,
         "name": "テスト",
         "environment": "本番"
      },
      "instance":{
         "id": 1,
         "ip_address": "172.17.0.123",
         "hostname": "hostname.local"
      },
      "user": {
         "id": "123abc",
         "blocked_at": 0
      },
      "message": "テストで攻撃の波を検知しました"
   },
   "dispatched_at": 1760016033
}
```

</details>

<details>

<summary>新しい外向き接続（サンプル）</summary>

```json
{
   "event_type": "zen.outbound.discovered",
   "created_at": 1760016813,
   "payload": {
      "hostname": "aikido.dev",
      "port": 443,
      "service": {
         "id": 123,
         "name": "テスト",
         "environment": "本番"
      },
      "message": "テストで新しい外向き接続を検知しました"
   },
   "timestamp": 1757599746000
}
```

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.aikido.dev/docs/docs-ja/zen-firewall/zen-features/webhooks.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
