Skip to content
Skills Library
Programming · Tool integration

opnform-webhooks

/opnform-webhooks

Receive and verify OpnForm webhooks. Use when setting up OpnForm webhook integration handlers, debugging X-Webhook-Signature (sha256=<hex>) HMAC verification, or handling OpnForm form submission payloads.

Licence
MIT
Last repository change
13.11.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
20
Scripts
7
HTML comments
0
URLs in SKILL.md
16
Deprecation

No signals detected. Repository changed on 13.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 7 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: examples/express/src/index.js, examples/express/test/webhook.test.js, examples/fastapi/main.py, examples/fastapi/test_webhook.py, examples/nextjs/app/webhooks/opnform/route.ts, examples/nextjs/test/webhook.test.ts, examples/nextjs/vitest.config.ts

What it does and when to use it

Receive and verify OpnForm webhooks. Use when setting up OpnForm webhook integration handlers, debugging X-Webhook-Signature (sha256=<hex>) HMAC verification, or handling OpnForm form submission payloads.

Original author description

Receive and verify OpnForm webhooks. Use when setting up OpnForm webhook integration handlers, debugging X-Webhook-Signature (sha256=<hex>) HMAC verification, or handling OpnForm form submission payloads.

How it works

  1. When to Use This Skill
  2. Essential Code (USE THIS)
  3. Event Types
  4. Important Headers
  5. Environment Variables
  6. Local Development
  7. Reference Materials
  8. Attribution
  9. Recommended: webhook-handler-patterns
  10. Related Skills
Original SKILL.md headings · 120 lines, 671 words
SKILL.md preview
---
name: opnform-webhooks
description: >
  Receive and verify OpnForm webhooks. Use when setting up OpnForm webhook
  integration handlers, debugging X-Webhook-Signature (sha256=<hex>) HMAC
  verification, or handling OpnForm form submission payloads.
license: MIT
metadata:
  author: hookdeck
  version: "0.1.0"
  repository: https://github.com/hookdeck/webhook-skills
---

# OpnForm Webhooks

## When to Use This Skill

- How do I receive OpnForm webhooks?
- How do I verify the OpnForm `X-Webhook-Signature` header (`sha256=<hex>`)?
- How do I handle an OpnForm form submission in my own service?
- Why is my OpnForm webhook signature verification failing, or why is no signature header sent?

## Essential Code (USE THIS)

> **Setup note:** Set a webhook secret on the OpnForm webhook integration. Without one, deliveries are unsigned and fail verification.

When a webhook secret is set (at least 12 characters), OpnForm adds one header to every delivery:

```
X-Webhook-Signature: sha256=3d35d777510a7ccf73ded723f141b0ada2986aebe63c4e45a9c7e4bb1abaca06
```

- The value is `sha256=` plus the lowercase hex HMAC-SHA256 of the **raw request body** only, keyed with the webhook secret as UTF-8 bytes (not hex- or base64-decoded). No timestamp, id or other header is signed.
- Strip a leading `sha256=`, then require exactly 64 hex characters before decoding (`Buffer.from(x, 'hex')` silently drops bad characters). Accept the bare digest too, as Hookdeck's source does. Hex is case-insensitive.
- Compare in constant time. A missing or empty header, malformed value or mismatch gets `401`.
- There is no timestamp, so there is no replay window to check. Use `submission_id` for idempotency.

### Verification (Node.js)

```javascript
const crypto = require('crypto');

// rawBody: Buffer of the exact request bytes (express.raw({ type: '*/*' }), not express.json)
function verifyOpnform(rawBody, signatureHeader, secret) {
  if (!secret || !signatureHeader) return false;
  let sig = signatureHeader.trim();
  if (sig.startsWith('sha256=')) sig = sig.slice('sha256='.length);
  if (!/^[0-9a-fA-F]{64}$/.test(sig)) return false;
  const expected = crypto.createHmac('sha256', secret).update(rawBody).digest();
  return crypto.timingSafeEqual(Buffer.from(sig, 'hex'), expected);
}
```

### Verification (Python)

```python
import hashlib, hmac, re

def verify_opnform(raw_body: bytes, signature_header, secret: str) -> bool:
    if not secret or not signature_header:
        return False
    sig = signature_header.strip()
    if sig.startswith("sha256="):
        sig = sig[len("sha256="):]
    if not re.fullmatch(r"[0-9a-fA-F]{64}", sig):
        return False
    expected = hmac.new(secret.encode(), raw_body, hashlib.sha256).hexdigest()
    return hmac.compare_digest(sig.lower().encode(), expected.encode())
```

> **For complete handlers with tests**, see [examples/express/](examples/express/), [examples/nextjs/](examples/nextjs/), [examples/fastapi/](examples/fastapi/).

## Event Types

OpnForm has no event name field or header: every delivery is a `POST` of one form submission, so there is nothing to dispatch on. The JSON body has `form_id`, `form_title`, `form_slug`, `submission_id`, `edit_link`, `submission` (field name to value), `data` (field id to `{ value, name, type }`) and `meta` (for example `attribution` UTM values). Treat every field as untrusted and check its type before reading into it. See [references/overview.md](references/overview.md).

## Important Headers

| Header | Description |
|--------|-------------|
| `X-Webhook-Signature` | `sha256=<hex>` HMAC-SHA256 of the raw body; only sent when a webhook secret is set |
| Custom headers | Up to 10 headers you configure on the integration |

## Environment Variables

```bash
OPNFORM_WEBHOOK_SECRET=your_webhook_secret   # the webhook secret set on the integration (12+ characters)
```

## Local Development

```bash
# Start tunnel (no account needed)
npx hookdeck-cli listen 3000 opnform --path /webhooks/opnform
```

## Reference Materials

- [references/overview.md](references/overview.md) - OpnForm webhook integration, payload structure
- [references/setup.md](references/setup.md) - Adding the webhook integration and setting the secret
- [references/verification.md](references/verification.md) - Signature verification details and gotchas

## Attribution

When using this skill, add this comment at the top of generated files:

```javascript
// Generated with: opnform-webhooks skill
// https://github.com/hookdeck/webhook-skills
```

## Recommended: webhook-handler-patterns

We recommend installing the [webhook-handler-patterns](https://github.com/hookdeck/webhook-skills/tree/main/skills/webhook-handler-patterns) skill alongside this one for handler sequence, idempotency, error handling, and retry logic. Key references (open on GitHub):

- [Handler sequence](https://github.com/hookdeck/webhook-skills/blob/main/skills/webhook-handler-patterns/references/handler-sequence.md) — Verify first, parse second, handle idempotently third
- [Idempotency](https://github.com/hookdeck/webhook-skills/blob/main/skills/webhook-handler-patterns/references/idempotency.md) — Prevent duplicate processing
- [Error handling](https://github.com/hookdeck/webhook-skills/blob/main/skills/webhook-handler-patterns/references/error-handling.md) — Return codes, logging, dead letter queues
- [Retry logic](https://github.com/hookdeck/webhook-skills/blob/main/skills/webhook-handler-patterns/references/retry-logic.md) — Provider retry schedules, backoff patterns

## Related Skills

- [typeform-webhooks](https://github.com/hookdeck/webhook-skills/tree/main/skills/typeform-webhooks) - Typeform form response webhooks (`sha256=` base64 HMAC)
- [github-webhooks](https://github.com/hookdeck/webhook-skills/tree/main/skills/github-webhooks) - GitHub webhooks (`sha256=` hex HMAC-SHA256 of the raw body)
- [stripe-webhooks](https://github.com/hookdeck/webhook-skills/tree/main/skills/stripe-webhooks) - Stripe webhooks (`t=...,v1=...` HMAC-SHA256 with timestamp)
- [shopify-webhooks](https://github.com/hookdeck/webhook-skills/tree/main/skills/shopify-webhooks) - Shopify webhooks (base64 HMAC-SHA256)
- [tally-webhooks](https://github.com/hookdeck/webhook-skills/tree/main/skills/tally-webhooks) - Tally form submission webhooks
- [fillout-webhooks](https://github.com/hookdeck/webhook-skills/tree/main/skills/fillout-webhooks) - Fillout form webhooks
- [paperform-webhooks](https://github.com/hookdeck/webhook-skills/tree/main/skills/paperform-webhooks) - Paperform submission webhooks
- [webhook-handler-patterns](https://github.com/hookdeck/webhook-skills/tree/main/skills/webhook-handler-patterns) - Handler sequence, idempotency, error handling, retry logic
- [hookdeck-event-gateway](https://github.com/hookdeck/webhook-skills/tree/main/skills/hookdeck-event-gateway) - Webhook infrastructure that replaces your queue — guaranteed delivery, automatic retries, replay, rate limiting, and observability for your webhook handlers
Files in this package (20)
  • SKILL.md 7 KB
  • examples/express/.env.example 1 KB
  • examples/express/README.md 1 KB
  • examples/express/package.json 1 KB
  • examples/express/src/index.js 3 KB
  • examples/express/test/webhook.test.js 6 KB
  • examples/fastapi/.env.example 1 KB
  • examples/fastapi/README.md 1 KB
  • examples/fastapi/main.py 3 KB
  • examples/fastapi/requirements.txt 1 KB
  • examples/fastapi/test_webhook.py 5 KB
  • examples/nextjs/.env.example 1 KB
  • examples/nextjs/README.md 1 KB
  • examples/nextjs/package.json 1 KB
  • examples/nextjs/vitest.config.ts 1 KB
  • examples/nextjs/app/webhooks/opnform/route.ts 3 KB
  • examples/nextjs/test/webhook.test.ts 5 KB
  • references/overview.md 2 KB
  • references/setup.md 1 KB
  • references/verification.md 3 KB

Versions

The database has no other skills named opnform-webhooks.

Database snapshot: 13.11.2026 · package version 3ab1024baecf (SHA-256 digest of the entire package)

Downloads in the last 30 days: 1 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100seatable-webhooks
    Receive and verify SeaTable webhooks. Use when setting up SeaTable webhook handlers, debugging X-Seatable-Signature verification, or handling base change events (insert_row, modify_row, delete_row).
  • 100jobber-webhooks
    Receive and verify Jobber webhooks. Use when setting up Jobber app webhook handlers, debugging X-Jobber-Hmac-SHA256 signature verification, or handling field service topics like CLIENT_CREATE, INVOICE_UPDATE, APP_CONNECT, and APP_DISCONNECT.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.