junction-webhooks
БесплатноЗапускает вложенные скриптыНе проверенReceive and verify Junction webhooks (health-data API for wearables, lab testing and continuous queries; delivered via Svix). Use when setting up Junction…
от hookdeck★ 104 звезды на GitHubОб этом скилле
Junction Webhooks
Junction (junction.com) delivers webhooks through Svix,
which implements Standard Webhooks. Every delivery is an HTTP POST with a JSON body and three
signature headers: svix-id, svix-timestamp, and svix-signature. The event name is the
top-level event_type field, and the payload is under data, next to team_id, user_id and
client_user_id.
When to Use This Skill
- How do I receive Junction webhooks?
- How do I verify Junction webhook signatures (
svix-signature)? - How do I handle
provider.connection.createdorprovider.connection.errorevents? - How do I react to
daily.data.sleep.createdorhistorical.data.workouts.created? - How do I handle
labtest.order.updatedorlabtest.result.critical? - Why is my Junction webhook signature verification failing, or rejecting Hookdeck retries?
Verification (core)
Signed content is {svix-id}.{svix-timestamp}.{raw body}. Svix signs it with HMAC-SHA256 using
the base64-decoded secret (the part after whsec_), base64-encodes the result, and sends one or
more space-separated v1,<signature> entries. Use the official svix library, which compares in
constant time. Read the svix-* headers, and when svix-id is absent fall back to the webhook-*
headers (webhook-id, webhook-timestamp, webhook-signature).
import { Webhook } from 'svix'; // svix 2.x is ESM-only
const prefix = req.headers['svix-id'] ? 'svix' : 'webhook';
const id = req.headers[`${prefix}-id`];
const timestamp = req.headers[`${prefix}-timestamp`];
const signature = req.headers[`${prefix}-signature`];
// rawBody: the raw Buffer/string, never re-serialized JSON
new Webhook(process.env.JUNCTION_WEBHOOK_SECRET).verify(rawBody, {
'svix-id': id, 'svix-timestamp': timestamp, 'svix-signature': signature,
'webhook-id': id, 'webhook-timestamp': timestamp, 'webhook-signature': signature,
}); // throws on a bad signature or a timestamp outside the window
const event = JSON.parse(rawBody.toString('utf8')); // parse only after verify passes
from svix.webhooks import Webhook, WebhookVerificationError
wh = Webhook(os.environ["JUNCTION_WEBHOOK_SECRET"]) # "whsec_..."
wh.verify(raw_body, {"svix-id": id, "svix-timestamp": ts, "svix-signature": sig,
"webhook-id": id, "webhook-timestamp": ts, "webhook-signature": sig})
For complete handlers with tests, see examples/express/, examples/nextjs/, examples/fastapi/.
Find the secret in the Junction Dashboard under Webhooks > the endpoint > Signing Secret (it can
also be read and rotated through the team-webhook API). Junction doesn't print a sample, but as a
Svix-issued secret it is expected to start with whsec_. Each endpoint has its own. Keep the full
whsec_... value in JUNCTION_WEBHOOK_SECRET. Handlers fail closed: with the variable unset they
return 500 instead of accepting anything.
Hookdeck retries and replays hit the 5-minute window
The svix and standardwebhooks libraries always enforce a fixed 5-minute timestamp window, and
it can't be configured. Hookdeck retries and replays resend the original svix-timestamp, so
the library rejects any retry or replay that happens more than 5 minutes after the original
delivery. If you verify behind Hookdeck (or replay old events), use the manual verifier in
references/verification.md, where the window can be dropped or
widened. Deduplicate on svix-id instead of relying on the timestamp.
Common Event Types
Junction's Event Catalog lists 243 events. The name is event_type in the JSON body. The examples handle these:
| Event | Triggered When |
|---|---|
provider.connection.created |
A user connects a provider through Junction Link |
provider.connection.error |
A provider connection fails (for example, expired credentials) |
provider.device.created |
A device is added (also provider.device.updated) |
historical.data.{resource}.in_progress |
One chunk of a resource's historical backfill has completed (data-less) |
historical.data.{resource}.created |
The historical backfill for a resource has completed (data-less) |
daily.data.{resource}.created |
New data for a resource is discovered (also .updated) |
labtest.order.created |
A lab test order is created (also labtest.order.updated) |
labtest.appointment.created |
A lab appointment is created (also labtest.appointment.updated) |
labtest.result.critical |
A lab result has a critical value needing urgent attention |
continuous_query.result_table.changed |
A Sense continuous query's result table changes |
{resource} is a name such as activity, sleep, workouts, body, steps or glucose.
See references/overview.md for the payload shape and event catalog.
Environment Variables
# Signing secret of the webh
Установить junction-webhooks в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл junction-webhooks?
Receive and verify Junction webhooks (health-data API for wearables, lab testing and continuous queries; delivered via Svix). Use when setting up Junction webhook handlers, debugging svix-signature verification, or handling events like provider.connection.created, daily.data.sleep.created, historical.data.workouts.created, and labtest.order.updated.
Как установить скилл junction-webhooks?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл junction-webhooks запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic