Skip to main content

Build

Confluence Webhooks

HookdeckOfficialCertified

Receive and verify Confluence Data Center webhooks. Use when setting up Confluence admin webhook handlers, debugging X-Hub-Signature verification, or handling events like page_created, page_updated, page_removed, blog_created, comment_created, and space_created. Does not cover Confluence Cloud.

  • New
  • v1.0.2
  • Reviewed Oct 22
  • No reviews yet

Capabilities

  • Verification (core)

    When you set a secret on the webhook, Confluence signs each request with HMAC (default HMAC-SHA256, keyed on…

  • Common Event Types

    The event name is in the JSON body's event field

  • Important Headers

    No event header is documented, so read the event from the body's event field

  • Recommended: webhook-handler-patterns

    We recommend installing the webhook-handler-patterns skill alongside this one for handler sequence…

Getting started

Full instructions

Example command

Local Development

npx hookdeck-cli listen 3000 confluence --path /webhooks/confluence

Instructions: SKILL.mdv1.0.2

Confluence Webhooks

Scope: Confluence Data Center (self-managed) admin webhooks only. Confluence Cloud does not offer these; it uses app (Connect) webhooks authenticated with JWTs, which this skill does not cover.

When to Use This Skill

  • How do I receive Confluence Data Center webhooks?
  • How do I verify the Confluence X-Hub-Signature header?
  • How do I handle page_created, page_updated, or comment_created events?
  • Why is my Confluence webhook signature verification failing?

Verification (core)

When you set a secret on the webhook, Confluence signs each request with HMAC (default HMAC-SHA256, keyed on the secret) over the raw request body and puts the result in the X-Hub-Signature header. The Confluence page only says the header "contains the HMAC"; the sha256=<hex> value format is taken from the identically worded Bitbucket Data Center page. Accept the digest with or without the sha256= prefix.

javascript
const crypto = require('crypto');

function verify(rawBody, signatureHeader, secret) {
  let sig = (signatureHeader || '').trim().toLowerCase();
  const eq = sig.indexOf('=');
  if (eq !== -1) {
    if (sig.slice(0, eq) !== 'sha256') return false; // only sha256 is documented
    sig = sig.slice(eq + 1);
  }
  const expected = crypto.createHmac('sha256', secret).update(rawBody).digest('hex');
  try {
    return crypto.timingSafeEqual(Buffer.from(sig), Buffer.from(expected));
  } catch {
    return false; // length mismatch
  }
}

Read the body as raw bytes before any JSON parsing. In Express use express.raw({ type: '*/*' }) so every content type is verified against the exact bytes sent.

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

Common Event Types

The event name is in the JSON body's event field. Payloads are mostly IDs (e.g. {"timestamp":..., "event":"page_trashed", "userKey":"...", "page":{"id":309264476}}); look details up via the REST API.

Event Triggered when
page_created A page is published for the first time
page_updated A page is edited (when changes are published)
page_removed A page is deleted (sent to the trash)
page_trashed A page is purged from the trash
blog_created A blog post is published
comment_created A page, inline, or file comment is made
space_created A new space is created

See references/overview.md for the full list.

Important Headers

Header Description
X-Hub-Signature HMAC of the raw body, sha256=<hex> (only sent when a secret is set)

No event header is documented, so read the event from the body's event field.

Environment Variables

bash
CONFLUENCE_WEBHOOK_SECRET=your_webhook_secret   # The secret (up to 255 chars) you entered on the webhook

Local Development

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

Reference Materials

  • references/overview.md - Webhook concepts, events, payload, circuit breaking
  • references/setup.md - Creating the webhook in the admin console
  • references/verification.md - Signature verification details and gotchas

We recommend installing the webhook-handler-patterns skill alongside this one for handler sequence, idempotency, error handling, and retry logic. Key references (open on GitHub):

  • Handler sequence — Verify first, parse second, handle idempotently third
  • Idempotency — Prevent duplicate processing
  • Error handling — Return codes, logging, dead letter queues
  • Retry logic — Provider retry schedules, backoff patterns
  • bitbucket-webhooks - Bitbucket webhooks (same X-Hub-Signature: sha256= scheme)
  • jira-webhooks - Jira webhook handling
  • github-webhooks - GitHub repository webhook handling
  • gitlab-webhooks - GitLab repository webhook handling
  • webhook-handler-patterns - Handler sequence, idempotency, error handling, retry logic
  • hookdeck-event-gateway - Webhook infrastructure that replaces your queue — guaranteed delivery, automatic retries, replay, rate limiting, and observability for your webhook handlers

Explore more skills

Browse all
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Signing

SignedSLSA L2
Signed by
skills-hub.ai distributor
Method
Distributor-signed by skills-hub.aiSigned with the skills-hub.ai Ed25519 distributor key over this exact slug, version and content. Check it with `npx @skills-hub-ai/cli verify`.
Key
skills-hub-ed25519-2026-11
Signed

Reviews (0)

More from Hookdeck

View source →
razorpay-webhooksReceive and verify Razorpay webhooks. Use when setting up Razorpay webhook handlers, debugging X-Razorpay-Signature verification, or handling payment events like payment.captured, payment.failed, order.paid, refund.processed, or…3 installsvercel-log-drains-webhooksReceive and verify Vercel Log Drains deliveries. Use when setting up a Vercel log drain HTTP endpoint, debugging x-vercel-signature verification, passing the drain's endpoint test, or processing batched log entries from sources like…1 installsstripe-webhooksReceive and verify Stripe webhooks. Use when setting up Stripe webhook handlers, debugging signature verification, or handling payment events like payment_intent.succeeded, customer.subscription.created, or invoice.paid.1 installsalchemy-webhooksReceive and verify Alchemy Notify webhooks. Use when setting up Alchemy webhook handlers, debugging X-Alchemy-Signature verification, or handling onchain events like ADDRESS_ACTIVITY, NFT_ACTIVITY, or GRAPHQL (Custom Webhook).1 installstiktok-webhooksReceive and verify TikTok for Developers webhooks (Login Kit, Content Posting, Data Portability). Use when setting up TikTok webhook handlers, debugging TikTok-Signature verification, or handling events like authorization.removed,…1 installsfedex-webhooksReceive and verify FedEx Advanced Integrated Visibility (AIV) shipment tracking webhooks. Use when setting up an AIV webhook or "Try this webhook" in the FedEx Developer Portal, verifying the fdx-signature header (base64 HMAC-SHA256 of the…1 installs

Frequently asked questions about confluence-webhooks

What does the confluence-webhooks skill do?

Receive and verify Confluence Data Center webhooks. Use when setting up Confluence admin webhook handlers, debugging X-Hub-Signature verification, or handling events like page_created, page_updated, page_removed, blog_created, comment_created, and space_created. Does not cover Confluence Cloud. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the confluence-webhooks skill?

Run `npx @skills-hub-ai/cli install hookdeck-confluence-webhooks` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/hookdeck-confluence-webhooks/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does confluence-webhooks work with?

confluence-webhooks runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the confluence-webhooks skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use confluence-webhooks after installing it?

In Claude Code, type `/hookdeck-confluence-webhooks` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the confluence-webhooks skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.

Badge for your README

Show that this skill is on Skills Hub. The badge links back to this page and shows the live install count.

Install on Skills Hub badge preview
Markdown
[![Install on Skills Hub](https://skills-hub.ai/api/badges/skill/hookdeck-confluence-webhooks)](https://skills-hub.ai/skills/hookdeck-confluence-webhooks)
HTML
<a href="https://skills-hub.ai/skills/hookdeck-confluence-webhooks"><img src="https://skills-hub.ai/api/badges/skill/hookdeck-confluence-webhooks" alt="Install on Skills Hub"></a>

More options in the badge docs.