Receive real-time HTTP POST notifications on link clicks, QR scans, and resource events
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").
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 Field
Type
Description
short_code
string
Comma-separated list of short codes (e.g. promo,spring-sale).
qr_code_id
string
Comma-separated list of QR code UUIDs.
url_type
string / string[]
Link branding style (standard, branded, or subdomain).
branded_domain
string / string[]
Filter to events originating from specific custom vanity domains.
subdomain
string / string[]
Filter to events on specific *.cnfy.link subdomains.
campaign_id
string
Filter dispatches to a specific campaign UUID (or comma-separated list).
is_unique
boolean
Trigger only on unique first-time visitors (true or false).
has_utm_params
boolean
Trigger only when UTM parameters are present.
is_dynamic
boolean
Filter by whether the short URL or QR code has dynamic routing enabled.
custom_alias
boolean
Filter by whether a custom alias is set (true or false).
is_password_protected
boolean
Filter by whether password protection is enabled.
is_expiring
boolean
Filter by whether the link has an active expiration timestamp.
tags
string[]
Trigger only if the link or QR code contains all specified tags.
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.
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.
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:
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.
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.