CClaude Code Catalog
전체 Hooks

HTTP 웹훅 라우터

Notification중급Hook 타입: notification

2026년 추가된 HTTP hook 핸들러 타입을 사용해 Slack, Discord, PagerDuty 등 외부 URL로 JSON 페이로드를 전송하고 응답을 받습니다. 로컬 셸 스크립트 없이 이벤트 기반 자동화를 구현합니다.

웹훅HTTPSlackDiscord통합

Hook 코드

// .claude/settings.json — HTTP Hook Configuration { "hooks": { // Notify Slack when Claude completes a task "Stop": [ { "type": "http", "url": "https://hooks.slack.com/services/T00/B00/xxx", "method": "POST", "headers": { "Content-Type": "application/json" }, "body": { "channel": "#dev-notifications", "text": "Claude Code session completed: {{summary}}" }, "timeout_ms": 5000 } ], // Send tool usage to monitoring endpoint "PostToolUse": [ { "type": "http", "url": "https://api.internal.com/claude-events", "method": "POST", "headers": { "Authorization": "Bearer $MONITORING_TOKEN", "Content-Type": "application/json" }, "body": { "event": "tool_use", "tool": "{{tool_name}}", "timestamp": "{{timestamp}}", "session_id": "{{session_id}}" } } ], // Block dangerous commands via external policy engine "PreToolUse": [ { "type": "http", "url": "https://policy.internal.com/check", "method": "POST", "body": { "tool": "{{tool_name}}", "input": "{{tool_input}}" } // Response: { "allow": true/false, "reason": "..." } } ] } } // Benefits over shell hooks: // - No local scripts to maintain // - Works with any HTTP endpoint (Slack, Discord, PagerDuty, etc.) // - JSON in → JSON out (structured, type-safe) // - Built-in timeout and retry // - Easy to audit and centralize

이 Hook을 Claude Code 설정 또는 .claude/settings.json에 추가하면 활성화됩니다.

실행 미리보기

HTTP 웹훅 라우터

HTTP 웹훅 라우터에 대해

Claude Code Hooks는 Claude 작업 중 특정 이벤트에 반응하여 커스텀 셸 명령을 자동으로 실행합니다. HTTP 웹훅 라우터은(는) 중급 수준의 Notification Hook으로, 개발 워크플로우의 핵심 시점에서 작업을 자동화하여 수동 단계를 줄이고 팀 전체의 일관성을 유지합니다.

관련 Hooks