needle-webhooks
БесплатноЗапускает вложенные скриптыНе проверенReceive and verify Needle webhooks. Use when setting up Needle (needle.app) webhook endpoints, debugging Standard Webhooks signature verification (webhook-id…
от hookdeck★ 104 звезды на GitHubОб этом скилле
Needle Webhooks
Needle is an agent-native outbound and GTM engine (not Needle Engine, the 3D tool). It sends one signed POST per event, such as a new lead, a LinkedIn or Instagram reply, a finished sequence or a disconnected account. Signatures follow Standard Webhooks.
When to Use This Skill
- How do I receive Needle webhooks?
- How do I verify a Needle webhook signature?
- Where do I get my Needle
whsec_webhook secret? - How do I handle
lead_created,linkedin_message_receivedorenrollment_completed? - Why is my Needle
webhook-signatureverification failing? - Why are Hookdeck retries or replays of Needle events rejected as too old?
Signature at a Glance
| Property | Value |
|---|---|
| Headers | webhook-id, webhook-timestamp, webhook-signature |
| Signature header format | One or more space-separated v1,<base64> entries |
| Algorithm | HMAC-SHA256, base64 output |
| Signed content | {webhook-id}.{webhook-timestamp}.{raw request body} |
| Secret | whsec_..., shown once when the webhook is added (NEEDLE_WEBHOOK_SECRET) |
| Key | Base64-decode the part after whsec_ |
| Timestamp | Unix seconds. The standardwebhooks library rejects anything more than 5 minutes off |
| Dedupe key | webhook-id (unchanged on a resend) |
Verification (core)
Use the Standard Webhooks library (standardwebhooks on npm and PyPI). It checks the timestamp, recomputes the HMAC and compares in constant time against every v1, entry. Pass the raw body, not re-serialised JSON.
const { Webhook } = require('standardwebhooks');
// rawBody: express.raw({ type: '*/*' }) buffer as a string, or await request.text() in Next.js
function verifyNeedleWebhook(rawBody, headers) {
const wh = new Webhook(process.env.NEEDLE_WEBHOOK_SECRET); // full "whsec_..." value
return wh.verify(rawBody, {
'webhook-id': headers['webhook-id'],
'webhook-timestamp': headers['webhook-timestamp'],
'webhook-signature': headers['webhook-signature'],
}); // returns the parsed JSON body; throws -> respond 400
}
Python: from standardwebhooks.webhooks import Webhook, then Webhook(secret).verify(await request.body(), headers).
Hookdeck retries and replays vs the 5-minute window. The library always enforces a fixed 5-minute timestamp window. Needle defines
webhook-timestampas "when this request was sent", so its own retries (right away, +10 min, +1 h) carry a fresh one. Hookdeck retries and replays resend the originalwebhook-timestamp, so the library rejects any of those that arrive more than 5 minutes after Needle sent the request. If your receiver sits behind Hookdeck, or you replay events, use the manual verifier in references/verification.md, where the window can be dropped or widened.
For complete handlers with tests, see examples/express/, examples/nextjs/, examples/fastapi/.
Event Payload
{
"version": "v1",
"id": "00000000-0000-0000-0000-000000000001",
"type": "linkedin_message_received",
"timestamp": "2026-01-01T12:00:00.000Z",
"data": {
"id": "00000000-0000-0000-0000-000000000001",
"type": "linkedin_message_received",
"label": "Reply received",
"occurredAt": "2026-01-01T12:00:00.000Z",
"channel": "linkedin",
"leadId": "00000000-0000-0000-0000-000000000002",
"campaignId": "00000000-0000-0000-0000-000000000003",
"data": { "text": "Hello!" }
}
}
Dispatch on the top-level type. The inner data.data depends on the type. Needle adds event types over time, so ignore ones you don't know and still return 200.
Common Event Types
| Event | Triggered When |
|---|---|
lead_created |
A lead is created (app, API, MCP, import, or a direct message to a non-lead) |
lead_updated |
A lead's details or handles change (data.data.changes) |
linkedin_message_received |
A LinkedIn reply arrives |
enrollment_completed |
A lead reaches the end of a sequence |
campaign_status_changed |
A campaign is started, paused, etc. |
account_disconnected |
A connected account needs signing in again |
The docs list 68 types, two of them not sent yet. See references/overview.md for the groups.
Delivery Semantics
- Reply
2xxwithin 10 seconds. Otherwise the event is tried 3 times: right away, after 10 minutes and 1 hour after the first try. After 3 days it is given up. - A webhook whose URL gives no
2xxfor 3 days is turned off, and events from that time are not sent later. Turn it back on in Settings or withenabled: trueon Update a webhook. - A
429makes Needle pause sending to your URL for a few seconds. - Delivery is at least once and unordered: up to 5 requests can be open at once. Dedupe on
webhook-idand usetimestampfor ordering. - Custom headers you add to the webhook are sent but are **not s
Установить needle-webhooks в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл needle-webhooks?
Receive and verify Needle webhooks. Use when setting up Needle (needle.app) webhook endpoints, debugging Standard Webhooks signature verification (webhook-id, webhook-timestamp, webhook-signature, whsec_ secret), or handling outbound events like lead_created, linkedin_message_received, enrollment_completed, campaign_status_changed and account_disconnected.
Как установить скилл needle-webhooks?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл needle-webhooks запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set 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…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic