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
| Event | When |
|---|---|
email.sent | A campaign email was sent |
email.opened | A recipient opened an email (when open tracking is on) |
email.clicked | A recipient clicked a tracked link |
email.replied | A lead replied |
email.bounced | An email bounced |
lead.created | A lead was added to the workspace |
lead.status_changed | A lead's status changed in a campaign, e.g. CONTACTED → INTERESTED |
campaign.started | A campaign started sending |
campaign.paused | A campaign paused; reason is user, or high_bounce_rate when the bounce guard paused it |
campaign.completed | A campaign finished |
account.connected | A sending account was connected |
account.disconnected | A sending account was disconnected |
account.error | A sending account failed, e.g. its login stopped working |
warmup.started | Warmup started on an account |
warmup.health_changed | An 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:
| Header | Meaning |
|---|---|
Coldvenue-Signature | t=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>"> |
Coldvenue-Delivery-Id | The same on every retry of this delivery. Deduplicate on it |
Coldvenue-Event | The event type |
Coldvenue-Attempt | 1 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 usecreatedAtto order them.