Webhook for Openclaw

A comprehensive guide and implementation framework for building secure, reliable, and idempotent webhook systems for both sending and receiving event data.

ivangdavila
v1.0.0
Feb 10, 2026
7
4.9k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install webhook

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install webhook using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Webhook?

This skill provides a robust blueprint for managing webhooks within your software ecosystem. By leveraging Openclaw Skills, developers can implement industrial-grade signature verification using HMAC-SHA256, prevent replay attacks via timestamp validation, and ensure system reliability through asynchronous processing. It covers the full lifecycle of a webhook, from initial dispatch to delivery tracking and error handling, ensuring that your event-driven architecture is both secure and performant.

The framework emphasizes the importance of idempotency and fast response times to prevent the common pitfalls of duplicate processing and sender timeouts. Whether you are building a listener for third-party services or a dispatcher for your own internal events, this skill provides the technical standards required for high-availability production environments.

Webhook Use Cases

  • Implementing secure payment notifications from third-party processors like Stripe or PayPal.
  • Synchronizing data between disparate microservices in real-time without polling.
  • Automating CI/CD triggers based on repository events from GitHub or GitLab.
  • Sending real-time alerts and notifications to external monitoring dashboards.
  • Managing transactional status updates for high-volume ecommerce or logistics systems.

How Webhook Works

  1. Validates incoming requests using HMAC-SHA256 signature verification to ensure the payload has not been forged.
  2. Performs replay prevention by checking timestamps in the payload or headers against a 5-minute validity window.
  3. Implements idempotency by checking unique event IDs against a local cache (e.g., Redis) before processing logic.
  4. Returns an immediate 200/202 HTTP status code to the sender while offloading the heavy lifting to a background queue.
  5. Executes outgoing webhooks with an exponential backoff strategy, recording every delivery attempt for auditing purposes.
  6. Monitors delivery health through a dedicated dashboard that allows for manual retries and log analysis.

Webhook Setup

To integrate this skill into your environment, ensure your endpoint is served over HTTPS and follow these configuration steps:

# Install essential dependencies for signature verification
npm install crypto express body-parser

# Set your webhook secret environment variable
export WEBHOOK_SECRET="your_secure_signing_secret"

Configure your firewall to allow traffic from your provider's IP ranges if applicable, and initialize your database to store processed event IDs for idempotency tracking as recommended by Openclaw Skills documentation.

Webhook Data Schema & Taxonomy

The skill utilizes a structured event format to ensure compatibility across different consumers and versions:

Property Type Description
type String The event identifier (e.g., order.created).
timestamp ISO 8601 The exact time the event was generated.
payload Object The core resource data or resource ID.
api_version String Used to manage breaking changes in the schema.
signature Header HMAC-SHA256 hash for verification.
id UUID/String A unique identifier used for deduplication.

Webhook Advanced Features

  • Multi-version signature support to enable zero-downtime secret rotation processes.
  • Configurable idempotency windows (typically 24-72 hours) to balance storage costs with data integrity.
  • Custom retry logic with configurable maximum attempts and exponential backoff caps.
  • Integrated delivery tracking dashboards with real-time status updates and manual retry hooks.
  • Per-endpoint rate limiting to prevent a single slow receiver from degrading the performance of the entire notification system.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*