runa-webhooks
БесплатноЗапускает вложенные скриптыНе проверенReceive and verify Runa webhooks (payouts network for gift cards, prepaid cards and push-to-card, delivered via Svix). Use when setting up Runa webhook…
от hookdeck★ 104 звезды на GitHubОб этом скилле
Runa Webhooks
Runa is a payouts network for gift cards, prepaid cards and push-to-card.
Its webhooks report order outcomes, fraud-blocked payout links and product-catalog changes.
Endpoints are added in a
Svix webhook portal that opens from the API section of your Runa
account, and Svix implements Standard Webhooks. Every delivery is an HTTP POST with a JSON
body and three signature headers: svix-id, svix-timestamp, and svix-signature.
Runa sends two body formats:
order.completed,order.failedandpayout.blocked(added November 2026) use the Standard Webhooks envelope: the event name is intype, the time intimestampand the details indata. Route ontype.order.completionandproduct.updateare bare resources with no envelope and no event-type field. Tell them apart by endpoint or by payload shape, as the examples do.
Runa says new integrations should use order.completed and order.failed instead of
order.completion, which keeps working as before. Runa's webhooks page says each endpoint
subscribes to a single event type, while its changelog says the new events can be added to an
existing endpoint's event types, so check the portal before relying on either.
When to Use This Skill
- How do I receive Runa webhooks?
- How do I verify Runa webhook signatures (
svix-signature)? - How do I handle
order.completedandorder.failedevents, or the olderorder.completion? - What does a
payout.blockedevent mean? - How do I keep my catalog in sync with
product.updateevents? - Why is my Runa 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.RUNA_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["RUNA_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/.
The webhook secret is per endpoint and comes from the Svix portal. It starts with whsec_. Keep
the full whsec_... value in RUNA_WEBHOOK_SECRET. Handlers fail closed: with the variable unset
(or not a whsec_ value) they return 500 instead of accepting anything. Runa's docs show Svix's
sample secret (whsec_MfKQ9r8GKYqrTwjUPD8ILPZIo2LaLaSw); it is not your secret.
Hookdeck retries and replays hit the 5-minute window
The svix library always enforces 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 the order id (plus status) or on svix-id instead of relying on the
timestamp.
Event Types
Runa documents five event types. The examples read type when it's present and otherwise
identify the event from the payload shape:
| Event | Triggered when | Body |
|---|---|---|
order.completed |
An order finishes processing successfully | { type, timestamp, data }; data is the completed order summary |
order.failed |
An order fails | { type, timestamp, data }; data is { id, status: "FAILED", reason }, reason fraud or generic |
payout.blocked |
Runa's fraud checks block the redemption of a payout link | { type, timestamp, data }; data is `{ order_item_id, order_id, ass |
Установить runa-webhooks в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл runa-webhooks?
Receive and verify Runa webhooks (payouts network for gift cards, prepaid cards and push-to-card, delivered via Svix). Use when setting up Runa webhook handlers, debugging svix-signature verification, or handling order.completed, order.failed, payout.blocked, order.completion and product.update events.
Как установить скилл runa-webhooks?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл runa-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