storyblok-webhooks
БесплатноЗапускает вложенные скриптыНе проверенReceive and verify Storyblok webhooks. Use when setting up Storyblok webhook handlers, debugging webhook-signature verification (HMAC-SHA1 of the raw body…
от hookdeck★ 104 звезды на GitHubОб этом скилле
Storyblok Webhooks
When to Use This Skill
- How do I receive Storyblok webhooks?
- How do I verify the Storyblok
webhook-signatureheader? - Why does my Storyblok webhook signature verification fail?
- How do I handle story
published,unpublished,deleted, ormovedevents to rebuild a site or purge a cache? - How do I tell a story event from an asset or datasource event when they share an
actionvalue?
Verification (core)
Storyblok signs the raw request body with HMAC-SHA1 keyed on the Webhook secret you typed into the webhook settings, and sends the lowercase hex digest in the webhook-signature header. There is no prefix, timestamp, or message ID.
This is not Standard Webhooks. Despite the header name, there are no
webhook-id/webhook-timestampheaders and nov1,base64 signature. Do not use thestandardwebhooksorsvixlibraries. Storyblok has no webhook verification SDK, so verification is manual.
const crypto = require('crypto');
function verifyStoryblokWebhook(rawBody, signatureHeader, secret) {
if (!signatureHeader || !secret) return false;
const expected = crypto.createHmac('sha1', secret).update(rawBody).digest('hex');
const received = signatureHeader.trim().toLowerCase();
if (received.length !== expected.length) return false;
return crypto.timingSafeEqual(Buffer.from(received), Buffer.from(expected));
}
import hashlib, hmac
def verify_storyblok_webhook(raw_body: bytes, signature_header: str | None, secret: str) -> bool:
if not signature_header or not secret:
return False
expected = hmac.new(secret.encode(), raw_body, hashlib.sha1).hexdigest()
return hmac.compare_digest(signature_header.strip().lower().encode(), expected.encode())
The secret is a plain string (use it as-is; no base64 decoding). Read the body as raw bytes before any JSON parsing. In Express use express.raw({ type: '*/*' }) so every content type reaches the verifier as a Buffer.
For complete handlers with tests, see examples/express/, examples/nextjs/, examples/fastapi/.
Plan and signing caveats
- Webhook secrets need a paid plan. Without a secret there is nothing to verify against, so restrict by Storyblok's static IPs instead (see setup). Storyblok's docs say every webhook request includes
webhook-signature, but not what it holds when no secret is set, so don't treat its presence as proof of signing. - Task (Tasks app) webhooks can't be verified with a signature. They don't support secrets. Put your own secret in the task's User dialog field and check
dialog_valuesin your endpoint. Use a separate route so you don't weaken the signed one. - Experiments, Releases, and Pipelines triggers are also paid-plan features.
Payload and Event Types
Every payload has text, action, and space_id, plus entity fields. There is no event-type header: the event is the action value, and action alone is ambiguous (created, deleted appear for several entities), so also look at the entity field (story_id, asset_id, datasource_slug, ...).
| Entity | action values |
Entity fields |
|---|---|---|
| Story | published, unpublished, deleted, moved |
story_id, story_uuid, full_slug (moved adds old_full_slug) |
| Asset | created, replaced, deleted, restored |
asset_id |
| Workflow | stage.changed |
story_id, workflow_name, workflow_stage_name |
| User | added, removed, roles_updated |
user_id |
| Datasource | entries_updated, entries_deleted |
datasource_slug (entries_updated adds dimension when a value changes in a single dimension) |
| Discussion | created, resolved, comment_created, comment_deleted, comment_updated |
id, story_id, block_uid, component, fieldname |
| Experiment | experiment.created, experiment.started, experiment.resumed, experiment.paused, experiment.completed, experiment.winner_selected, experiment.deleted |
experiment_id, status |
| Release | merged |
release_id |
| Pipeline | deployed |
branch_id |
| Task | task_execution (no secret support) |
task, dialog_values |
Example (story published):
{
"text": "The user [email protected] published the Story Home 2 (marketing-articles/home-2)\nhttps://app.storyblok.com/#/me/spaces/184738/stories/0/0/166888799188279",
"action": "published",
"space_id": 184738,
"story_id": 166888799188279,
"story_uuid": "9a3f1c2e-5b7d-4e8a-b6c4-2d1f0e9a7b35",
"full_slug": "marketing-articles/home-2"
}
For full payloads, see Storyblok webhooks documentation.
Delivery Behavior
| Item | Behavior |
|---|---|
| Response | Must be 2xx with content-type: application/json |
| Retries | None. Failed deliveries are not re |
Установить storyblok-webhooks в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл storyblok-webhooks?
Receive and verify Storyblok webhooks. Use when setting up Storyblok webhook handlers, debugging webhook-signature verification (HMAC-SHA1 of the raw body, not Standard Webhooks), or handling CMS events like published, unpublished, deleted, moved, entries_updated, and stage.changed.
Как установить скилл storyblok-webhooks?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл storyblok-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