Skip to Content
ColdVenue API

Webhooks

Get workspace events pushed to your server, and verify they came from ColdVenue.

Add an endpoint

In the app, open Settings → Webhooks, or call Create a webhook endpoint with { url, events, description? }. The response holds the endpoint's signing secret. It is shown once: store it with your other secrets. Webhook management needs the API access plan feature.

Events

EventWhen
email.sentA campaign email was sent
email.openedA recipient opened an email (when open tracking is on)
email.clickedA recipient clicked a tracked link
email.repliedA lead replied
email.bouncedAn email bounced
lead.createdA lead was added to the workspace
lead.status_changedA lead's status changed in a campaign, e.g. CONTACTED → INTERESTED
campaign.startedA campaign started sending
campaign.pausedA campaign paused; reason is user, or high_bounce_rate when the bounce guard paused it
campaign.completedA campaign finished
account.connectedA sending account was connected
account.disconnectedA sending account was disconnected
account.errorA sending account failed, e.g. its login stopped working
warmup.startedWarmup started on an account
warmup.health_changedAn account's warmup health changed

There is no email.delivered event: SMTP and Gmail don't report delivery.

Payload

Each delivery is a POST with a JSON body:

{
  "id": "…",
  "type": "lead.status_changed",
  "createdAt": "2026-10-14T09:30:00.000Z",
  "workspaceId": "…",
  "data": { "leadId": "…", "campaignId": "…", "from": "CONTACTED", "to": "INTERESTED" }
}

and these headers:

HeaderMeaning
Coldvenue-Signaturet=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>">
Coldvenue-Delivery-IdThe same on every retry of this delivery. Deduplicate on it
Coldvenue-EventThe event type
Coldvenue-Attempt1 for the first try, then 2, 3, …

Verify the signature

Check every request before you trust it. Compute the HMAC over the raw request body, before any JSON parsing, and reject timestamps older than five minutes.

import { createHmac, timingSafeEqual } from 'node:crypto';

export function verifyColdvenueSignature(rawBody, header, secret, toleranceSeconds = 300) {
  const parts = Object.fromEntries(header.split(',').map((part) => part.split('=')));
  const timestamp = Number(parts.t);
  if (!timestamp || Math.abs(Date.now() / 1000 - timestamp) > toleranceSeconds) return false;
  const expected = createHmac('sha256', secret).update(`${parts.t}.${rawBody}`).digest('hex');
  const given = Buffer.from(parts.v1 ?? '');
  return given.length === expected.length && timingSafeEqual(Buffer.from(expected), given);
}

Retries

Answer with any 2xx within 10 seconds, then do the work in the background. Anything else, including a timeout, is retried after about 1, 3, 9 and 27 minutes, then 1.4, 4 and 12 hours. After 8 failed attempts the delivery is marked failed.

  • Inspect and redeliver attempts from the endpoint's delivery log. Logs are kept for 30 days.
  • Answering 410 Gone, or failing 100 times in a row, disables the endpoint until you enable it again.
  • Events can arrive more than once and out of order: deduplicate on Coldvenue-Delivery-Id, and use createdAt to order them.

On this page