cloudsignal-webhooks
БесплатноЗапускает вложенные скриптыНе проверенReceive and verify CloudSignal webhooks from Cloudprinter.com. Use when setting up a CloudSignal Webhooks v2.1 receiver, authenticating deliveries by the…
от hookdeck★ 104 звезды на GitHubОб этом скилле
CloudSignal Webhooks
CloudSignal is Cloudprinter.com's outbound webhook product. It HTTPS-POSTs JSON signals to an endpoint you register, notifying your app as a print order and its items move through fulfilment (validated → produced → packed → shipped), or when something errors or is canceled.
Not to be confused with the unrelated
cloudsignal.ioMQTT platform. This skill is for Cloudprinter.com CloudSignal Webhooks v2.1.
When to Use This Skill
- How do I receive CloudSignal / Cloudprinter.com webhooks?
- How do I authenticate a CloudSignal webhook without a signature header?
- Why is there no
X-CloudSignal-Signature/ HMAC to verify? - How do I handle
ItemShipped,ItemError, orItemDeliveryFailedsignals? - What are the CloudSignal event/signal
typevalues?
Verification (core)
CloudSignal has NO signature header, no HMAC, no timestamp, and is NOT
Standard Webhooks. Each POST carries a plaintext, per-endpoint Webhook API
key in the JSON body's apikey field (this is different from your account
API key). Authenticate by comparing that value against the key you configured,
using a timing-safe comparison. Because the key lives inside the body, ordinary
JSON parsing is the verification step — there is no raw-body signature to protect.
const crypto = require('crypto');
function safeEqual(a, b) {
const ab = Buffer.from(a), bb = Buffer.from(b);
// timingSafeEqual throws on length mismatch — guard first
return ab.length === bb.length && crypto.timingSafeEqual(ab, bb);
}
// `providedKey` is body.apikey; `expectedKey` is CLOUDSIGNAL_WEBHOOK_APIKEY
function verifyApiKey(providedKey, expectedKey) {
if (!providedKey || !expectedKey) return false;
return safeEqual(providedKey, expectedKey);
}
Return 200 (or 204) to acknowledge. Any other status, including other 2xx
codes, makes CloudSignal retry the signal — up to 100 attempts over 7 days,
with the gap growing after each attempt. Return 401 for a missing/incorrect
apikey.
Official SDK (
@cloudprinter/cloudsignal) exists but is a standalone Node HTTP server (new CloudSignal.EventHandler(apikey, port)) that listens on its own port and emits events — it cannot be mounted as an Express/Next.js/FastAPI route. Its internal check is exactly thebody.apikey === expectedKeyabove. Its type list predates v2.1 (last changed 2020), so it answers 500 to theItemDelivery*signals, and CloudSignal keeps retrying them. The examples below verify manually so the handler fits your existing app; use the SDK only for a greenfield standalone Node receiver.
For complete handlers with tests, see examples/express/, examples/nextjs/, examples/fastapi/.
Signal Types
Signal type values (case-sensitive, PascalCase). The first eleven are on the
v2.1 reference; CloudprinterOrderCanceled appears only in the official Node SDK:
type |
Fires When | Notable fields |
|---|---|---|
CloudprinterOrderValidated |
Order received and validated | order, order_reference |
ItemValidated |
An item is validated by production | item, item_reference |
ItemProduce |
Production of an item starts | item |
ItemProduced |
Production of an item completes | item |
ItemPacked |
An item is packed | item |
ItemShipped |
An item is dispatched | tracking, shipping_option, url |
ItemError |
A production issue occurs | cause, delay (optional) |
ItemCanceled |
An item is canceled in production | cause, message (optional) |
ItemDeliveryStarted |
The carrier receives the item | tracking, message (optional) |
ItemDeliveryCompleted |
The item is delivered | tracking, message (optional) |
ItemDeliveryFailed |
Delivery fails (returned or lost) | tracking, message (optional) |
CloudprinterOrderCanceled |
The whole order is canceled (SDK only) | order, order_reference |
Common fields on every signal: apikey, type, order, order_reference,
datetime (ISO 8601). Item signals also carry item and item_reference.
There is no signal ID. See
references/overview.md for the full payload.
Environment Variables
CLOUDSIGNAL_WEBHOOK_APIKEY=your_webhook_api_key # Webhook API key from the CloudSignal Webhooks configuration in the Cloudprinter.com Dashboard
Local Development
# Start tunnel (no account needed)
npx hookdeck-cli listen 3000 cloudsignal --path /webhooks/cloudsignal
Reference Materials
- references/overview.md - Signal types, payload structure, retries
- references/setup.md - Register the endpoint and find the Webhook API key
- references/verification.md - The
apikey-in-body scheme, gotchas, debugging
Attribution
When using this skill, add this comm
Установить cloudsignal-webhooks в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл cloudsignal-webhooks?
Receive and verify CloudSignal webhooks from Cloudprinter.com. Use when setting up a CloudSignal Webhooks v2.1 receiver, authenticating deliveries by the plaintext `apikey` field in the JSON body (there is NO HMAC signature header), or handling print order/item status signals like CloudprinterOrderValidated, ItemProduced, ItemShipped, ItemError, ItemCanceled, and ItemDeliveryCompleted.
Как установить скилл cloudsignal-webhooks?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл cloudsignal-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