hint-health-webhooks
Receive and verify Hint Health webhooks. Use when setting up Hint Health (direct primary care practice management) webhook handlers, debugging…
от hookdeck★ 104 звезды на GitHub
Установить hint-health-webhooks в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Hint Health Webhooks
When to Use This Skill
- How do I receive Hint Health webhooks?
- How do I verify the
X-Hint-Signatureheader on a Hint Health webhook? - Why is my Hint Health webhook signature verification failing?
- Which key signs Hint Health webhooks (the "webhooks signature key")?
- How do I handle
patient.created,membership.updated, orpractitioner.createdevents? - How do I run Hint Health webhooks through Hookdeck?
Verification (core)
Every delivery carries X-Hint-Signature: sha256=<digest>. The digest is the lowercase hex HMAC-SHA256 of the raw request body bytes, keyed with your webhooks signature key (its UTF-8 bytes, used as-is). No timestamp, id or other header is signed, and there is no official verification SDK, so verification is manual. Accept the header with or without the sha256= prefix.
Node:
const crypto = require('crypto');
function verifyHintSignature(rawBody, header, secret) {
if (typeof header !== 'string' || !secret) return false;
const digest = header.startsWith('sha256=') ? header.slice(7) : header;
// Buffer.from(x, 'hex') silently drops bad characters: check the format first
if (!/^[0-9a-f]{64}$/i.test(digest)) return false;
const expected = crypto.createHmac('sha256', secret).update(rawBody).digest();
return crypto.timingSafeEqual(Buffer.from(digest, 'hex'), expected);
}
Python:
import hashlib, hmac, re
def verify_hint_signature(raw_body: bytes, header: str | None, secret: str | None) -> bool:
if not header or not secret:
return False
digest = header.removeprefix("sha256=")
if not re.fullmatch(r"[0-9a-f]{64}", digest, re.IGNORECASE | re.ASCII):
return False
expected = hmac.new(secret.encode("utf-8"), raw_body, hashlib.sha256).hexdigest()
return hmac.compare_digest(digest.lower().encode("ascii"), expected.encode("ascii"))
In Express, read the raw body with
express.raw({ type: '*/*' })so any content type verifies. Parse the JSON only after the check passes.
For complete handlers with tests, see examples/express/, examples/nextjs/, examples/fastapi/.
Respond 401 for a missing, empty or malformed header and for a mismatch.
Common Event Types
The event name is the top-level type field of the JSON body (resource.action); it is not sent in a header. The envelope is id, created_at, type, practice_id, object, where object is the affected record.
| Event | Description |
|---|---|
patient.created / patient.updated |
A patient is created or changes |
patient.destroyed / patient.inactive |
A patient is deleted or becomes inactive |
membership.created / membership.updated / membership.destroyed |
A membership is created, changes or is deleted |
practitioner.created / practitioner.updated / practitioner.destroyed |
A practitioner is created, changes or is deleted |
Hint documents 44 event types in all (also company.*, employee_division.created and more). See references/overview.md.
Environment Variables
HINT_HEALTH_WEBHOOK_SECRET=your_webhooks_signature_key
Setup (Hint Health and Hookdeck)
The signing secret is the webhooks signature key, which is one of your partner API keys (by default the one created with your partner account). Partners find it under Partner Portal > Webhooks > Settings; a practice with API Access finds its own under Admin > Developers > Webhook Endpoints. Live and sandbox have separate keys, and rotation takes effect immediately with no overlap.
For the Hookdeck source: Paste the partner API key you chose as the webhooks signature key.
Hint delivers at least once, so make handlers idempotent (use the envelope id). Respond within 20 seconds (5 second connect timeout). Failed deliveries are retried hourly, up to 72 attempts, and an integration with over 100 failed attempts is muted. See references/setup.md.
Local Development
npx hookdeck-cli listen 3000 hint-health --path /webhooks/hint-health
No account required. The CLI creates a guest account on first run and provides a local tunnel plus a web UI for inspecting requests. Use port 8000 for FastAPI.
Reference Materials
- references/overview.md - What Hint Health webhooks are, event types, payload structure, delivery behavior
- references/setup.md - Signature key, endpoint registration, Hookdeck setup
- references/verification.md - Signature details and gotchas
Recommended: webhook-handler-patterns
We recommend installing webhook-handler-patterns alongside this skill:
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- examples/express/.env.example
- examples/express/README.md
- examples/express/package.json
- examples/express/src/index.js
- examples/fastapi/.env.example
- examples/fastapi/README.md
- examples/fastapi/main.py
- examples/fastapi/requirements.txt
- examples/fastapi/test_webhook.py
- examples/nextjs/.env.example
- examples/nextjs/README.md
- examples/nextjs/app/webhooks/hint-health/route.ts
- examples/nextjs/lib/verify.ts
- examples/nextjs/package.json
- examples/nextjs/vitest.config.ts
- references/overview.md
- references/setup.md
- references/verification.md
FAQ
Что делает скилл hint-health-webhooks?
Receive and verify Hint Health webhooks. Use when setting up Hint Health (direct primary care practice management) webhook handlers, debugging X-Hint-Signature HMAC-SHA256 verification, or handling events like patient.created, patient.updated, membership.created, membership.updated, and practitioner.created.
Как установить скилл hint-health-webhooks?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл hint-health-webhooks запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…