Webhooks push real-time event notifications straight to your HTTP endpoints whenever someone clicks a link, scans a QR code, or generates a new resource. Instead of polling our analytics APIs on a cron schedule, your server gets notified within milliseconds. Typical use cases:
  • Syncing click telemetry directly into internal analytics warehouses (Snowflake, BigQuery).
  • Triggering CRM flows or Slack alerts when a VIP partner link gets clicked.
  • Logging scan events from offline print campaigns or dining table tents.
Webhook subscriptions require an active Business or Enterprise plan. Calling webhook management APIs on lower tiers returns 403 Forbidden. Inside Team Workspaces, webhook CRUD requires webhook tool permissions (view, create, delete) and viewing /webhooks/logs or /webhooks/stats additionally requires the analytics_access capability (filtered by creator when scope: "own").

Supported events

Event NameDispatched when
link.clickedAny visitor clicks one of your short links.
link.clicked.uniqueA visitor clicks a short link for the first time in their session.
link.clicked.utmA visitor clicks a short link containing UTM attribution parameters.
qr.scannedAny user scans one of your QR codes.
qr.scanned.uniqueA user scans a QR code for the first time.
link.createdA new short URL is generated via the dashboard, API, or MCP server.
qr.createdA new QR code is generated.
landing_page.submissionA visitor submits a form on one of your Landing Pages.
lead.capturedA form submission captures an email/lead contact for downstream sync.

Server-side event filtering

You don’t have to receive every click across your entire account at a single URL. When creating a webhook subscription, you can specify filters so our dispatch engine only sends matching events:
Filter FieldTypeDescription
short_codestringComma-separated list of short codes (e.g. promo,spring-sale).
qr_code_idstringComma-separated list of QR code UUIDs.
url_typestring / string[]Link branding style (standard, branded, or subdomain).
branded_domainstring / string[]Filter to events originating from specific custom vanity domains.
subdomainstring / string[]Filter to events on specific *.cnfy.link subdomains.
campaign_idstringFilter dispatches to a specific campaign UUID (or comma-separated list).
is_uniquebooleanTrigger only on unique first-time visitors (true or false).
has_utm_paramsbooleanTrigger only when UTM parameters are present.
is_dynamicbooleanFilter by whether the short URL or QR code has dynamic routing enabled.
custom_aliasbooleanFilter by whether a custom alias is set (true or false).
is_password_protectedbooleanFilter by whether password protection is enabled.
is_expiringbooleanFilter by whether the link has an active expiration timestamp.
tagsstring[]Trigger only if the link or QR code contains all specified tags.

Signature verification (HMAC SHA-256)

To protect your receiver endpoint against spoofing and replay attacks, every outgoing webhook request includes cryptographic signatures and delivery metadata in the headers:
  • x-connextify-signature: Raw 64-character hex HMAC-SHA256 digest computed across the raw JSON body bytes (no sha256= prefix; also echoed in x-cnfy-signature).
  • Connextify-Signature: Timestamped HMAC-SHA256 signature formatted as t=<unix_timestamp>,v1=<signature> for replay attack protection.
  • x-connextify-timestamp: Unix timestamp (seconds) of dispatch.
  • x-connextify-delivery: Unique delivery UUID matching event_id for idempotency.
  • x-connextify-event: Event name (e.g. link.clicked).
The signature is computed using your subscription’s private secret_key.

Option A: Standard Signature Verification (x-connextify-signature)

const crypto = require('crypto');

/**
 * Verify that the incoming webhook payload was sent by Connextify
 * @param {string|Buffer} rawBody - Raw body buffer (before JSON.parse)
 * @param {string} signatureHeader - Value of x-connextify-signature header
 * @param {string} signingSecret - Secret key from subscription
 */
function verifyWebhookSignature(rawBody, signatureHeader, signingSecret) {
  if (!signatureHeader || !signingSecret) return false;

  const expectedSignature = crypto
    .createHmac('sha256', signingSecret)
    .update(rawBody)
    .digest('hex');

  // Use timingSafeEqual to protect against timing attacks
  if (expectedSignature.length !== signatureHeader.length) return false;
  return crypto.timingSafeEqual(
    Buffer.from(expectedSignature, 'utf8'),
    Buffer.from(signatureHeader, 'utf8')
  );
}

Option B: Timestamped Replay Protection (Connextify-Signature)

For maximum security against replay attacks, Connextify sends a timestamped signature in the Connextify-Signature header (e.g. t=1751998500,v1=a38b94f...).
const crypto = require('crypto');

/**
 * Verify Connextify timestamped webhook signature and enforce a 5-minute replay tolerance
 * @param {string|Buffer} rawBody - Raw body buffer (before JSON.parse)
 * @param {string} headerValue - Value of Connextify-Signature header (t=...,v1=...)
 * @param {string} signingSecret - Secret key from subscription
 * @param {number} [toleranceSeconds=300] - Maximum allowed age in seconds (default: 5 minutes)
 */
function verifyTimestampedSignature(rawBody, headerValue, signingSecret, toleranceSeconds = 300) {
  if (!headerValue || !signingSecret) return false;

  const parts = Object.fromEntries(
    headerValue.split(',').map(item => item.split('='))
  );

  const timestamp = parseInt(parts.t, 10);
  const signature = parts.v1;
  if (!timestamp || !signature) return false;

  // Prevent replay attacks (check if timestamp is within tolerance window)
  const currentTimestamp = Math.floor(Date.now() / 1000);
  if (Math.abs(currentTimestamp - timestamp) > toleranceSeconds) {
    return false; // Request too old or from the future
  }

  const signedPayload = `${timestamp}.${rawBody}`;
  const expectedSignature = crypto
    .createHmac('sha256', signingSecret)
    .update(signedPayload)
    .digest('hex');

  if (expectedSignature.length !== signature.length) return false;
  return crypto.timingSafeEqual(
    Buffer.from(expectedSignature, 'utf8'),
    Buffer.from(signature, 'utf8')
  );
}
Important: Always compute the signature against the raw body buffer. If your web framework parses the JSON body first (like Express bodyParser.json()), re-stringifying the object may change whitespace or property ordering, causing signature validation to fail.

Payload envelope

All dispatches arrive in a standardized outer envelope containing event metadata and an idempotency key (event_id):
{
  "event_id": "evt_7d82b01c34a9",
  "event": "link.clicked",
  "subscription_id": "8b51d8b7-83ab-41c3-bb5a-a38f420a32ef",
  "timestamp": "2026-07-05T20:55:00.000Z",
  "data": {
    // Event-specific details
  }
}

Payload examples

{
  "event_id": "evt_7d82b01c34a9",
  "event": "link.clicked",
  "subscription_id": "8b51d8b7-83ab-41c3-bb5a-a38f420a32ef",
  "timestamp": "2026-07-05T20:55:00.000Z",
  "data": {
    "id": "click_1234567890ab",
    "click_id": "click_1234567890ab",
    "short_id": "link_abc123xyz789",
    "short_code": "bfcm-deals",
    "short_url": "https://cnfy.link/bfcm-deals",
    "original_url": "https://yourshop.com/black-friday?utm_source=connextify",
    "language": "en-US",
    "is_unique": true,
    "session_id": "sess_888888888888",
    "geo": {
      "country": "United States",
      "country_code": "US",
      "region": "California",
      "city": "Mountain View",
      "timezone": "America/Los_Angeles"
    },
    "device": {
      "device_type": "mobile",
      "device_brand": "Apple",
      "device_model": "iPhone",
      "browser": "Safari",
      "browser_version": "17.4",
      "os": "iOS",
      "os_version": "17.4"
    },
    "traffic": {
      "traffic_source": "instagram",
      "traffic_medium": "social",
      "referer": "https://instagram.com/",
      "referrer_domain": "instagram.com"
    },
    "utm": {
      "utm_source": "connextify",
      "utm_medium": "social",
      "utm_campaign": "black_friday"
    },
    "clicked_at": "2026-07-09T04:30:00.000Z"
  }
}

2. qr.scanned payload

{
  "event_id": "evt_9a22d8e411b0",
  "event": "qr.scanned",
  "subscription_id": "d04a6015-18ee-449e-ba89-91306ef456fa",
  "timestamp": "2026-07-05T20:55:00.000Z",
  "data": {
    "scan_id": "scan_1234567890ab",
    "qr_code_id": "qr_code_abc123xyz789",
    "qr_code_name": "Restaurant Dinner Menu",
    "content_type": "url",
    "qr_content": "https://menu.yourrestaurant.com/dinner",
    "is_unique": true,
    "geo": {
      "country": "United Kingdom",
      "country_code": "GB",
      "city": "London"
    },
    "device": {
      "device_type": "mobile",
      "browser": "Chrome",
      "os": "Android"
    },
    "scanned_at": "2026-07-09T04:31:12.000Z"
  }
}
{
  "event_id": "evt_418bcda80931",
  "event": "link.created",
  "subscription_id": "a901ff2a-b605-4f4d-8ce8-971c67d98341",
  "timestamp": "2026-07-05T20:55:00.000Z",
  "data": {
    "id": "link_9d916c7e181a",
    "name": "New Product Promo Link",
    "short_code": "new-promo",
    "short_url": "https://yourbrand.link/new-promo",
    "destination_url": "https://yourbrand.com/new-product-launch",
    "created_at": "2026-07-09T04:29:45.000Z"
  }
}

Delivery retries & failure handling

If your server times out (5-second socket timeout) or returns an HTTP 5xx / 429 error, our dispatcher retries up to 5 times over a 24-hour window using exponential backoff:
  1. Initial dispatch: Immediate
  2. Retry 1: 5 minutes later
  3. Retry 2: 15 minutes later
  4. Retry 3: 1 hour later
  5. Retry 4: 4 hours later
  6. Retry 5: 12 hours later

Automatic deactivation

If your server responds with 404 Not Found or 410 Gone, Connextify assumes the endpoint URL has been permanently removed, cancels remaining retries, and deactivates the webhook subscription to prevent wasted traffic.

Idempotency

Because network retries can occasionally result in duplicate receipts, always store the event_id in a database table or cache (like Redis) and ignore dispatches you have already processed.

Next steps

Subscribe Endpoint

Create a new webhook subscription via API →

Webhook Delivery Logs

Inspect recent delivery attempts and response codes →