InstantPing

InstantPing / Guides

Claude Code notifications to Slack with an incoming webhook

Updated 2026-12-04

To get Claude Code notifications in Slack, create an incoming webhook for a channel and have a Stop hook post to it with curl. The Slack mobile app then pushes the message to your phone.

Step 1: create an incoming webhook

Create a Slack app for your workspace, turn on Incoming Webhooks, and add a webhook to the channel you want. Copy the URL, which starts with https://hooks.slack.com/services/. Anyone with that URL can post to the channel, so keep it private.

Step 2: add the hooks

Use your user settings, ~/.claude/settings.json, so the URL does not end up in a repository:

{
  "hooks": {
    "Stop": [
      { "hooks": [ { "type": "command", "command": "curl -s -X POST -H 'Content-Type: application/json' -d '{\"text\":\"Claude Code is done\"}' https://hooks.slack.com/services/YOUR/WEBHOOK/URL" } ] }
    ]
  }
}

Add the same block under "Notification" with "Claude Code is waiting for you". Restart the session, then send a short prompt to test. The commands assume a POSIX shell (macOS, Linux, WSL, Git Bash).

The catches

Compare with Discord, Telegram and a dedicated phone push.

Frequently asked questions

How do I send Claude Code notifications to Slack?

Create an incoming webhook for a channel, then add a Stop hook that posts JSON with a text field to the webhook URL with curl.

Where should the Slack webhook URL go?

In your user settings file, ~/.claude/settings.json, not in a project file that is committed to git.