dots-webhooks
БесплатноЗапускает вложенные скриптыНе проверенReceive and verify Dots webhooks (payouts API, delivered via Svix). Use when setting up Dots webhook handlers, debugging svix-signature verification, or…
от hookdeck★ 104 звезды на GitHubОб этом скилле
Dots Webhooks
Dots (usedots.com), a payouts API for payout links, flows, transfers, and user onboarding,
delivers webhooks through Svix. 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 field. Payloads carry only the
changed resource's id (for example transfer_id), so fetch the resource from the Dots API
for its current state.
When to Use This Skill
- How do I receive Dots webhooks?
- How do I verify Dots webhook signatures (
svix-signature)? - How do I handle
transfer.updated,payout_link.updated, orflow.updatedevents? - How do I know when a user is onboarded (
user.onboarded) or revoked (user.onboarding_revoked)? - Why is my Dots 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-delimited v1,<signature> entries. Dots points to Svix's
verification guide; the official svix library compares signatures in constant time.
import { Webhook } from 'svix'; // svix 2.x is ESM-only
// svix-* headers, or the Standard Webhooks webhook-* names when svix-id is absent
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`];
const wh = new Webhook(process.env.DOTS_WEBHOOK_SECRET); // "whsec_..."
// rawBody: the raw Buffer/string, never re-serialized JSON
wh.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["DOTS_WEBHOOK_SECRET"])
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/.
Header names. Dots' docs don't name the headers; svix-* is the Svix default, and Svix
also sends the same values as Standard Webhooks webhook-id, webhook-timestamp, and
webhook-signature. The examples read svix-* and fall back to webhook-* when svix-id
is absent. Never mix the two sets within one request.
Secret format. One signing secret per endpoint, shown in the Svix dashboard when you
create the endpoint. Dots' docs don't print it; Svix secrets start with whsec_, and the
examples reject a secret without that prefix (a 500, so verification fails closed). Store
the full whsec_... value in DOTS_WEBHOOK_SECRET.
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
The event name is the top-level event field. Dots recommends subscribing to the canonical
.updated events and fetching the resource by the id in the payload. The list below is the
14 events Dots documents and may not be exhaustive.
| Event | Triggered When | Id fields |
|---|---|---|
payment_intent.updated |
A payment intent was updated | payment_intent_id |
payment_method.updated |
A payment method was updated | payment_method_id |
flow.updated |
A flow was updated | flow_id |
dispute.updated |
A dispute was updated | dispute_id |
payout_request.updated |
A payout request changed status | payout_request_id |
payout_batch.created |
A payout batch was created | payout_batch_id |
payout_batch.updated |
A payout batch changed status (fetch the batch results for each item's transfer) | payout_batch_id |
organization.updated |
An organization was updated | organization_id |
app.updated |
An app was updated | app_id |
transfer.updated |
A transfer was updated | transfer_id |
payout_link.updated |
A payout link was updated | payout_link_id |
user.updated |
A user was upda |
Установить dots-webhooks в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл dots-webhooks?
Receive and verify Dots webhooks (payouts API, delivered via Svix). Use when setting up Dots webhook handlers, debugging svix-signature verification, or handling events like transfer.updated, payout_link.updated, flow.updated, and user.onboarded.
Как установить скилл dots-webhooks?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл dots-webhooks запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic