Agent skill

Certn Webhooks Skill

Receive and verify Certn (CertnCentric) webhooks. Use when setting up Certn background check webhook handlers, answering Certn's GET challenge, debugging X-Signature verification, or handling CASE_STATUS_CHANGED, CHECK_STATUS_CHANGED, CASE_REPORT_READY and CASE_INPUT_CLAIMS_AUTOMATICALLY_GENERATED events.

Install this skill

npx skills add hookdeck/webhook-skills --skill certn-webhooks


These are CertnCentric webhooks. Certn's legacy API (docs.certn.co/api, the Certn-Signature header and applicant-object payloads) stopped working on August 5, 2026, and its webhooks no longer send anything. Webhook URLs don't migrate: set them up again in CertnCentric.

When to Use This Skill

  • How do I receive Certn webhooks?
  • How do I pass Certn's endpoint verification (the GET ?challenge= request)?
  • How do I verify the X-Signature header?
  • Why did Certn disable my webhook?
  • How do I handle CHECK_STATUS_CHANGED when a check needs client action?

Essential Code (USE THIS)

Certn checks your URL before it sends events, and keeps checking it:

  1. Endpoint verification (required). When you add the URL, Certn sends GET <your URL>?challenge=<value>. Return 200 with the challenge value as the body within 10 seconds. Certn re-verifies periodically; if a check fails, it disables the webhook and emails you.
  2. Signature (recommended). Every event is a POST with an X-Signature header: the lowercase hex HMAC-SHA256 of the raw request body, keyed with the signing key Certn gives you when you create the webhook. There's no timestamp or prefix.

Challenge (Node.js / Express)

app.get('/webhooks/certn', (req, res) => {
  const { challenge } = req.query;
  if (typeof challenge !== 'string') return res.status(400).send('Missing challenge');
  res.status(200)
    .set({ 'Content-Type': 'text/plain', 'X-Content-Type-Options': 'nosniff' })
    .send(challenge);
});

Verification (Node.js)

const crypto = require('crypto');

// rawBody: Buffer of the exact request bytes (express.raw({ type: '*/*' }), not express.json)
function verifyCertn(rawBody, signature, secret) {
  if (!secret || typeof signature !== 'string') return false;
  if (!/^[0-9a-f]{64}$/i.test(signature)) return false; // 64 hex chars before comparing
  const expected = crypto.createHmac('sha256', secret).update(rawBody).digest('hex');
  return crypto.timingSafeEqual(Buffer.from(signature.toLowerCase()), Buffer.from(expected));
}

Verification (Python)

import hashlib, hmac, re

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

Run the signature check on POST only. Certn doesn't say the challenge GET is signed, and middleware that rejects it gets the webhook disabled.

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

Events

The body's event_type names the event. Every documented event is about a case: object_type is CASE, object_id is the case ID, and case_status is the case's rollup status at the time of delivery (retries included).

event_typeWhen
CASE_STATUS_CHANGEDA case's overall status changes
CHECK_STATUS_CHANGEDOne check changes status; triggered_check has its id, type and status
CASE_REPORT_READYA case report you requested is ready to retrieve
CASE_INPUT_CLAIMS_AUTOMATICALLY_GENERATEDCertn generated new input claims for a case (some quickscreen checks only)

When triggered_check.status is CLIENT_ACTION_REQUIRED, triggered_check.action_required_resolution lists the API calls that resolve the check. Follow steps[] in ascending step order. Certn adds keys over time and omits ones that don't apply, so check for a key before you use it. See references/overview.md.

Delivery

  • Return 200 within 10 seconds and do slow work in a background job.
  • Failed deliveries are retried with exponential backoff (30s, 90s, 270s and so on) for about two hours.
  • Retries can deliver events out of order. Compare created, or fetch the case from the API, before you overwrite newer state.
  • Deduplicate on event_id.

Setup

In the CertnCentric Client Portal, open the Integrations area and add your webhook URL. Have the GET handler running first, because Certn sends the challenge straight away. Copy the signing key into CERTN_WEBHOOK_SECRET. Webhook configurations are per region (CA, UK, AU), so add one in each region you order cases in. When you receive Certn webhooks through Hookdeck, create a Certn source and paste the signing key. See references/setup.md.

Important Headers

HeaderDescription
X-SignatureLowercase hex HMAC-SHA256 of the raw body, keyed with the webhook's signing key

Environment Variables

CERTN_WEBHOOK_SECRET=your_certn_signing_key   # shown when you create the webhook in the Client Portal

Local Development

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

Reference Materials


Repository

hookdeck/webhook-skills

v0.2.0 · MIT · Updated Nov 6, 2026

View on GitHub →