> 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/slack-webhooks.md).

# Slack Webhooks

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

Webhook機能を使い、以下の手順でカスタムアラートとアクションをSlackチャンネルへ送信できます。

![Slackの通知例](/files/Woh9ZUY9qp5pldHYsfnr)

1. <https://api.slack.com/appsに移動し、アプリを新規作成します。>

![アプリを新規作成](/files/s3LjIXC0ZDAhZ64Ax0Tc)

2. アプリに名前を付け、対象のワークスペースを選択して **\[Create App]** (アプリを作成) をクリックします。

![アプリを作成](/files/4smv1HVbkH8y3P3MI00g)

3. **\[Incoming Webhooks]** (着信Webhooks) をクリックします。

![](/files/CrFgOH6DRytz89AXSOZ7)

4. Webhookを有効にし、**\[Add New Webhook to Workspace]** (新しいWebhookをワークスペースに追加) をクリックします。

![Webhookを有効化](/files/XZjJvICkPQnqBRP4CsDE)

5. アラートの送信先Slackチャンネルを選択します。**\[Copy]** (コピー) をクリックし、以降の手順で管理コンソールに入力するWebhook URLを取得します。

![WebhookのURLをコピー](/files/3W3Ui4XlnsvXgmrLB4OZ)

6. 左側の **\[Basic Information]** (基本情報) で、Keeperアイコンを設定できます。画像を右クリックして保存します。Keeperの512x512 PNGアイコンは、以下のリンクからダウンロードできます。\
   \
   <https://keeper-email-images.s3.amazonaws.com/common/Keeper_512x512.png>

![](/files/mkc4LxfL18xUG5kE2QuO)

7. **Keeper管理コンソール**にログインし、**\[レポートとアラート]** > **\[アラート]** を開いてアラートを新規作成します。対象のイベントタイプと属性を選択したら、**\[受信者を追加]** をクリックします。以下の例では、すべてのポリシー変更関連イベントを選択しています。

<figure><img src="/files/9O4kJdJC7S4DCWMGo2Of" alt=""><figcaption><p>アラートを追加</p></figcaption></figure>

<figure><img src="/files/SXaxZZ9sVuqG6FJGoYfw" alt=""><figcaption><p>イベントタイプと属性を選択</p></figcaption></figure>

<figure><img src="/files/1fNQbNn6z3Z1KKo2qajc" alt=""><figcaption><p>受信者を追加 (Slack)</p></figcaption></figure>

8. イベント受信者の名前とメールアドレスを入力し、**\[Webhookを追加]** をクリックします。

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

9. 手順5のWebhook URLを貼り付け、下記のHTTPボディを貼り付けます。

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

10. 以下のJSONを **\[HTTPボディ]** にコピーして貼り付けます。

```
{
  "text": "Keeper Security Event",
  "blocks": [
    {
      "type": "section",
      "fields": [
        {
          "type": "mrkdwn",
          "text": "*Alert Name*\n#alert_name"
        }
      ]
    },
    {
      "type": "section",
      "fields": [
        {
          "type": "mrkdwn",
          "text": "*Event Details*\n#description"
        }
      ]
    },
    {
      "type": "section",
      "fields": [
        {
          "type": "mrkdwn",
          "text": "*IP Address*\n#remote_address"
        },
        {
          "type": "mrkdwn",
          "text": "*Timestamp*\n#timestamp"
        }
      ]
    },
    {
      "type": "actions",
      "elements": [
        {
          "type": "button",
          "text": {
            "type": "plain_text",
            "text": "Vault Login",
            "emoji": true
          },
          "value": "vault",
          "url": "https://keepersecurity.com/vault",
          "action_id": "actionId-1"
        },
        {
          "type": "button",
          "text": {
            "type": "plain_text",
            "text": "Console Login",
            "emoji": true
          },
          "value": "console",
          "url": "https://keepersecurity.com/console",
          "action_id": "actionId-2"
        }
      ]
    }
  ]
}

```

<figure><img src="/files/2xjZbnrobJqzI2XOcUWf" alt=""><figcaption><p>HTTPボディ</p></figcaption></figure>

11. 受信者の設定で **\[保存]** をクリックし、続けてアラートでも **\[保存]** をクリックします。

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

<figure><img src="/files/LCrXnvnrS8KQiyAvSHo0" alt=""><figcaption><p>アラートを保存</p></figcaption></figure>

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

HTTPボディは用途に合わせて変更できます。見た目のカスタマイズは、Slackの[Block Kit Builder](https://api.slack.com/block-kit)をご参照ください。

{% hint style="info" %}
Webhookボディの新規作成や編集が反映されるまで、最大15分かかることがあります。
{% endhint %}

## 共有レコードの通知

特定の共有フォルダにレコードが追加されたときに通知を受け取れます。

![共有レコードの通知例](/files/GvDMISzO4hpOCwJN6LWF)

1. 上記のSlackセットアップ手順に従い、基本のSlack連携を作成します。
2. ウェブボルトで、対象の共有フォルダUIDをコピーします。

![共有フォルダのUID](/files/w5oqJzJMiMgneIddo05F)

3. 管理コンソールで、「共有フォルダへレコードを追加」イベント用のアラートを新規作成します。

<figure><img src="/files/QF8OiRB8DneIua0Rqhzx" alt=""><figcaption><p>共有フォルダへのレコード追加をアラート</p></figcaption></figure>

4. 属性セクションに、共有フォルダUIDを貼り付けます。

<figure><img src="/files/m7x3MrbZUVAihK0IGCuw" alt=""><figcaption><p>共有フォルダUIDを追加</p></figcaption></figure>

5. **\[受信者]** で、Webhook受信者を新規作成します。

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

6. 以下のJSONをHTTPボディにコピーして貼り付けます。作成中のアラートに合わせて、`text` フィールドを編集します。

```
{
  "text": "Keeper - Added Record to Shared Folder",
  "blocks": [
    {
      "type": "section",
      "fields": [
        {
          "type": "mrkdwn",
          "text": "*Alert Name*\n#alert_name"
        }
      ]
    },
    {
      "type": "section",
      "fields": [
        {
          "type": "mrkdwn",
          "text": "*Event Details*\n#description"
        }
      ]
    },
    {
      "type": "section",
      "fields": [
        {
          "type": "mrkdwn",
          "text": "*IP Address*\n#remote_address"
        },
        {
          "type": "mrkdwn",
          "text": "*Timestamp*\n#timestamp"
        },
        {
          "type": "mrkdwn",
          "text": "*Record UID*\n#record_uid"
        }
      ]
    },
    {
      "type": "actions",
      "elements": [
        {
          "type": "button",
          "text": {
            "type": "plain_text",
            "text": "Open Record",
            "emoji": true
          },
          "value": "vault",
          "url": "https://keepersecurity.com/vault/#detail/#record_uid",
          "action_id": "actionId-1"
        },
        {
          "type": "button",
          "text": {
            "type": "plain_text",
            "text": "Console Login",
            "emoji": true
          },
          "value": "console",
          "url": "https://keepersecurity.com/console",
          "action_id": "actionId-2"
        }
      ]
    }
  ]
}
```


---

# 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/slack-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.
