> For the complete documentation index, see [llms.txt](https://docs.keeper.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.keeper.io/enterprise-guide/jp/webhooks/discord-webhooks.md).

# Discord Webhooks

## Discordのセットアップと統合

Webhook機能を使い、以下の手順でカスタムアラートやアクションをDiscordサーバーへ送信できます。本ページの例では新しいサーバーを作成しますが、既存のDiscordサーバーでもWebhookを設定できます。

1. Discordアカウントの左上にある **\[+]** (サーバーを追加) をクリックします。

<figure><img src="/files/vd8IiltMzMQfebu5sJbX" alt=""><figcaption></figcaption></figure>

2. **\[オリジナルの作成]** (またはテンプレート) をクリックし、サーバーの用途 (**\[クラブやコミュニティのため]**、**\[自分と友達のため]**) を選択します。

<figure><img src="/files/waB8DRvnzrso3Cv1oRP2" alt=""><figcaption></figcaption></figure>

3. サーバーにアイコンと名前を設定し、**\[新規作成]** をクリックします。

<figure><img src="/files/jbpI332qmqroQ4UPTM8E" alt=""><figcaption></figcaption></figure>

4. Discordサーバーが作成されます。サーバー名をクリックしてドロップダウンを開き、**\[サーバー設定]** をクリックします。

<figure><img src="/files/jrQ7ZW4BXBrmG9MiEjfH" alt=""><figcaption></figcaption></figure>

5. 左側のメニューで **\[連携サービス]** を選択し、**\[ウェブフックを作成]** をクリックします。

<figure><img src="/files/6R9xC8O3iLgjXl6ed5jq" alt=""><figcaption></figcaption></figure>

6. ウェブフックの名前とアイコンを設定し、**\[ウェブフックURLをコピー]** をクリックします。

<figure><img src="/files/7ZQuhPvpFJyfLLdDnvpX" alt=""><figcaption></figcaption></figure>

7. Keeper管理コンソールにログインし、**\[レポートとアラート]** を開きます。**\[アラート]** をクリックし、既存のアラートを選択するか新規作成します。

<figure><img src="/files/vx6na3vR2Q7NbjAQme60" alt=""><figcaption></figcaption></figure>

8. 対象のイベントタイプと属性を選択し、**\[受信者を追加]** をクリックします。

<figure><img src="/files/sP5uNW8iw2jmzEiTfF2Z" alt=""><figcaption><p>受信者を追加</p></figcaption></figure>

9. 受信者名とメールアドレスを入力し、**\[Webhookを追加]** をクリックします。

<figure><img src="/files/nPVVHyXEqSXkfY6AhXNt" alt=""><figcaption><p>Webhookを追加</p></figcaption></figure>

10. 手順6でコピーしたWebhook URLを貼り付け、下記のHTTPボディを貼り付けます。**\[保存]** をクリックします。

<figure><img src="/files/lMvVuDK2Aj5e1wxGtnPd" alt=""><figcaption></figcaption></figure>

11. 以下のJSONをコピーし、上記画面の **\[HTTPボディ]** に貼り付けます。

```
{
  "content": "Keeper Security Event",
  "embeds": [
    {
      "title": "Alert Name",
      "description": "#alert_name",
      "fields": [
        {
          "name": "Event Details",
          "value": "#description"
        },
        {
          "name": "IP Address",
          "value": "#remote_address"
        },
        {
          "name": "Timestamp",
          "value": "#timestamp"
        }
      ],
      "footer": {
        "text": "Keeper Security Notification"
      }
    }
  ]
}
```

#### セットアップ完了

Discord Webhookアラートの例は以下のとおりです。イベントの送信開始まで最大15分かかることがあります。HTTPボディは用途に合わせて変更できます。

<figure><img src="/files/01RD6h2XhbvWayoucFES" alt=""><figcaption></figcaption></figure>

**参考リンク**

* [Discord Webhooksについて](https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks)
* [Discordサーバーの作成方法](https://support.discord.com/hc/en-us/articles/204849977-How-do-I-create-a-server)


---

# 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://docs.keeper.io/enterprise-guide/jp/webhooks/discord-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.
