Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

formstack-webhooks

БесплатноЗапускает вложенные скриптыНе проверен

Receive and verify Formstack Forms webhooks (the "WebHook" submit action, aka "Send Data to an External URL"). Use when setting up a Formstack form submission…

hookdeckот hookdeck★ 104 звезды на GitHub

Об этом скилле

Formstack Webhooks

Formstack Forms (formstack.com) sends submission data to your endpoint through a WebHook submit action — labelled "Send Data to an External URL (WebHook)" in the form builder. One HTTP POST per form submission.

Scope. This skill is about Formstack Forms only. It does not cover Formstack Documents (formerly WebMerge, which has its own separate "Webhook Delivery" feature), Formstack Sign (formerly InsureSign), or the Salesforce-packaged products. Those are different surfaces with different payloads. A Documents delivery is easy to tell apart: it posts merge_id, handshake, file_name and a base64 file_contents, with a WebMerge user-agent and no signature header. A Forms delivery posts FormID and UniqueID with a FormstackWebhook/1.0 user-agent.

X-FS-Signature is a shared header name, not a shared scheme. FastSpring — an unrelated e-commerce company — uses the same header name with a base64 digest and an events[] payload envelope. Formstack uses lowercase hex and has no envelope. If you are writing .digest('base64') or looking for events, you have the wrong provider.

When to Use This Skill

  • How do I receive Formstack form submissions as a webhook?
  • How do I verify the X-FS-Signature header from Formstack?
  • Why is my Formstack HMAC verification failing on a urlencoded body?
  • What event types does Formstack send? (None — see below.)
  • What fields will a Formstack webhook POST to my endpoint?
  • How do I configure a Formstack WebHook's HMAC Key / Custom HMAC Header?
  • What is the Formstack "WebHook Shared Secret" / Handshake Key and should I use it?

There Are No Event Types

A Formstack WebHook fires on exactly one thing: a form submission.

  • There is no event-type header and no event-type body field.
  • There is no list of event names and no subscribe-to-events model.
  • form.submitted, submission.created, form_submission — none of these exist. Do not write code that switches on them.

The only filtering that exists is Routing Logic: a per-WebHook conditional filter on the submitted answers that decides whether a given submission is sent at all. Via the v2025 API it is a logic object (action: show|hide, conditional: all|any, and an array of {field, condition, option} checks with condition one of equals, notequals, greaterthan, lessthan).

Dispatch on FormID, not on an event type. See references/overview.md.

Verification (core)

Signing is optional and off by default. Formstack sends a signature only when the form owner sets an HMAC Key on that WebHook. Treat verification as required in production and fail closed: no configured key, or no header → reject.

HMAC-SHA256 over the raw request body bytes, keyed with the WebHook's HMAC Key, rendered as lowercase hex. Nothing else is signed — no timestamp, no nonce, no URL, no method. The header is X-FS-Signature by default but is user-overridable via the WebHook's "Custom HMAC Header" field, so read the header name from config.

const crypto = require('crypto');

function verifyFormstackWebhook(rawBody, signatureHeader, hmacKey) {
  // Fail closed: an unset key must never mean "accept anyway".
  if (!signatureHeader || !hmacKey) return false;

  // Formstack sends `sha256=<hex>`. Strip the prefix (tolerating its absence), trim, lowercase.
  const received = signatureHeader.trim().replace(/^sha256=/i, '').trim().toLowerCase();
  const expected = crypto.createHmac('sha256', hmacKey).update(rawBody).digest('hex');

  const a = Buffer.from(received, 'utf8');
  const b = Buffer.from(expected, 'utf8');
  // Length guard first — timingSafeEqual throws on a length mismatch.
  return a.length === b.length && crypto.timingSafeEqual(a, b);
}
import hashlib, hmac, re

def verify_formstack_webhook(raw_body: bytes, signature_header, hmac_key) -> bool:
    if not signature_header or not hmac_key:  # fail closed
        return False
    received = re.sub(r"^sha256=", "", signature_header.strip(), flags=re.I).strip().lower()
    expected = hmac.new(hmac_key.encode("utf-8"), raw_body, hashlib.sha256).hexdigest()
    # Compare as BYTES: compare_digest raises TypeError on non-ASCII str.
    return hmac.compare_digest(received.encode("utf-8", "replace"), expected.encode("ascii"))

For complete handlers with tests, see examples/express/, examples/nextjs/, examples/fastapi/.

Confirmed against real deliveries. Formstack's current public documentation states the header name and the "HMAC Key" field but never names the algorithm or the encoding (the developer page that did now 404s). The scheme above is therefore confirmed by observation: two live WebHook deli

Полный SKILL.md на GitHub

Установить formstack-webhooks в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

TODO.mdexamples/express/.env.exampleexamples/express/README.mdexamples/express/package.jsonexamples/express/src/index.jsexamples/fastapi/.env.exampleexamples/fastapi/README.mdexamples/fastapi/main.pyexamples/fastapi/requirements.txtexamples/fastapi/test_webhook.pyexamples/nextjs/.env.exampleexamples/nextjs/README.mdexamples/nextjs/app/webhooks/formstack/route.tsexamples/nextjs/package.jsonexamples/nextjs/vitest.config.tsreferences/overview.mdreferences/setup.mdreferences/verification.md

FAQ

Что делает скилл formstack-webhooks?

Receive and verify Formstack Forms webhooks (the "WebHook" submit action, aka "Send Data to an External URL"). Use when setting up a Formstack form submission webhook handler, debugging X-FS-Signature HMAC verification, handling application/x-www-form-urlencoded or JSON submission payloads, or working out which fields a form will POST. Formstack has NO event types — a WebHook fires on exactly one thing, a form submission — so handlers key off FormID, not an event name.

Как установить скилл formstack-webhooks?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл formstack-webhooks запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить formstack-webhooks с