Short answer: Subscribe an HTTPS address to Outlevo events, check the Outlevo-Signature header (a timestamp and an HMAC-SHA256 of the body with your secret) on every request, skip events you have already processed, then upsert the CRM record. Build and test with a test key against the sandbox before using a live key. [[1]](#sources) [[2]](#sources)
Who this is for
This guide is for engineers who want reply events to land in a CRM they control, through code they own. You have a server that can accept an HTTPS POST. You have a CRM with an API. You want the two joined without a polling loop.
You may not need to write any of this. Outlevo has a native HubSpot sync that reads companies, deals and owners, and writes its status, fit score and next step to company fields it owns. [[3]](#sources) It never edits your standard HubSpot fields, and it writes nothing until an owner or admin approves the field mapping. [[3]](#sources) If that covers your case, connect it and stop here. The same page says it can also write a note, a task and the booked meeting on the company, each one switchable in the mapping. [[3]](#sources)
The Salesforce integration works differently. Salesforce sends no webhooks to Outlevo, and a rep's Accept or Reject on the Account is read by the 15-minute sync. [[4]](#sources)
If you would rather not host a server, workflow tools can catch the same events. Outlevo events such as lead.classified can go to a workflow's webhook address in n8n, Zapier, Make or Clay. [[5]](#sources) Zapier has no Outlevo app, so you use Webhooks by Zapier to catch events and to call the API. [[6]](#sources) The rest of this guide assumes you run your own endpoint.
Steps
The flow has five parts:
- Outlevo delivers an event to your HTTPS address.
- Your endpoint verifies the signature.
- Your endpoint stores the event and answers right away.
- A worker reads stored events, skips ones it has seen and updates the CRM.
- Failed deliveries come back on a schedule, so the worker has to tolerate repeats.
Outlevo's webhooks cover jobs, companies, contacts, revenue actions, handoffs, campaigns, leads, meetings and usage. [[1]](#sources) Pick the families you need for your routing. For the thinking behind what to do with a reply once you have it, see cold email replies: classify, route, respond.
Where a step describes what Outlevo does, it says so with a citation. The rest is general engineering practice for any webhook receiver.
1. Create a test key and build against the sandbox
Start with a test key. An owner, admin or developer creates API keys. [[2]](#sources) Test keys act on a sandbox with 100 fake companies, so you can build without sending anything or spending credits. [[2]](#sources) Test keys are not charged. [[7]](#sources)
The public API v1 shipped with scoped test and live keys, idempotency keys, rate limits and signed webhooks. [[8]](#sources) Subscribing a webhook needs an owner or admin, or an API key with the webhooks:manage scope. [[1]](#sources)
Keep the key and the webhook secret out of source control. Put both in your secret store and read them at startup. If you call the API from a workflow tool, the key goes in the header credential as a Bearer token. [[6]](#sources)
2. Stand up the endpoint
Write the receiver before you subscribe. It needs three properties:
- It is reachable over HTTPS, because you subscribe an HTTPS address. [[1]](#sources)
- It has the request body available for the signature check. Each delivery carries an Outlevo-Signature header with a timestamp and an HMAC-SHA256 of the body, computed with your secret. [[1]](#sources)
- It does almost nothing before it answers. Verify, store, respond. Do the CRM work later.
Here is a sketch in TypeScript. The helper names are placeholders for your own code.
import { timingSafeEqual } from "node:crypto";
export async function handleWebhook(req: Request): Promise<Response> {
const body = Buffer.from(await req.arrayBuffer());
const header = req.headers.get("Outlevo-Signature");
if (!header) return new Response("missing signature", { status: 400 });
// Placeholders: split the header into its timestamp and signature, and
// compute the HMAC-SHA256 of the body with your secret.
const received = parseSignatureHeader(header);
const expected = computeExpectedSignature(
process.env.OUTLEVO_WEBHOOK_SECRET!,
body
);
if (!safeEqual(expected, received.signature)) {
return new Response("bad signature", { status: 401 });
}
await enqueue(body); // durable store, not the CRM call
return new Response("ok", { status: 200 });
}
function safeEqual(a: string, b: string): boolean {
const x = Buffer.from(a);
const y = Buffer.from(b);
return x.length === y.length && timingSafeEqual(x, y);
}
The helpers are yours to write. Build them from what the header carries: a timestamp and an HMAC-SHA256 of the body, computed with your secret. [[1]](#sources) For the exact format, read the webhooks page.
3. Verify the signature properly
Verification is the part people skip when they are in a hurry. Do these things:
- Compare in constant time. Use
timingSafeEqualor your language's equivalent, as in the sketch. An ordinary string comparison can leak how many characters matched. - Reject before you use the body. If the signature fails, do not read the body as data. Return a 4xx and log the source address.
Test the failure paths as well as the happy one. Send a request with no header, one with a wrong signature and one with a body changed by a single byte. All three should be rejected.
4. Make retries safe
Outlevo retries a failed delivery after 1 minute, 5 minutes, 30 minutes, 2 hours and 12 hours, and a delivery is retried for up to 12 hours. [[1]](#sources) Plan for the same event arriving more than once, and design for that from the start.
There are two different idempotency problems here, and they are easy to mix up.
Inbound repeats. Your receiver gets the same event again. Pick a field in the payload that identifies the event, and record it in a table with a unique constraint. Insert the identifier before you do any work. If the insert fails because the row exists, answer success and stop. This turns a repeat into a no-op.
Outbound writes. Your worker calls Outlevo's API, for example to add a company through POST /v1/companies. [[9]](#sources) Every write to the REST API takes an Idempotency-Key, so a retried request never runs twice. [[2]](#sources) Generate the key once per unit of work, store it, and send the same key on every retry of that unit. A new random key per attempt defeats the purpose. A stable key derived from the event identifier works well.
For the CRM write itself, prefer an upsert over a create. GoHighLevel's push shows the pattern: a contact is created or updated by email address, so a second push updates the same contact instead of adding one. [[10]](#sources) Whatever CRM you use, match on a stable natural key such as the email address or the company domain, and your worker stays safe even if the dedupe table is lost.
5. Map events to CRM updates
Keep the mapping in one table that anyone can read, not scattered through code. A reasonable starting shape for a reply-routing setup:
| Event | CRM change |
|---|---|
| A reply event | Upsert the contact, set a status field, create a task for the owner |
| A booked meeting | Add the meeting to the company, move the deal stage |
| A handoff to sales | Assign the record to the right rep |
Write to fields your integration owns, and leave the fields your team edits by hand alone. Outlevo's own HubSpot sync follows that rule: every write goes to an Outlevo property, and standard HubSpot fields are never edited. [[3]](#sources) Copy that habit. A custom property named for the integration is easy to find and easy to clear if something goes wrong.
Order matters. A late retry can arrive after a newer event for the same record, so do not blindly overwrite a status with an older change.
Log and acknowledge event types you do not act on, so your endpoint only does work for the events in your mapping table.
6. Subscribe and test
With the receiver running, subscribe your HTTPS address. An owner or admin, or an API key with the webhooks:manage scope, can do it. [[1]](#sources) Failed attempts and test pings are free. [[1]](#sources)
Then break things on purpose. Make your handler fail for one event and see whether a retry arrives and your dedupe table absorbs it. The first retry comes after 1 minute. [[1]](#sources) Check that the CRM record ends up with one update, not two.
7. Go live
Switch to a live key. Delivered events are billed at 1 credit each. [[1]](#sources) The pricing page lists the same line as "webhook delivered" at 1 credit. [[11]](#sources) On the Builder plan, 320 credits a month cover 320 delivered events if nothing else spends credits. [[11]](#sources) On Growth, 3000 credits a month. [[11]](#sources) Subscribe only to the events you act on, so you do not pay for deliveries you throw away.
Reads are free, while metered calls quote their credit cost first and run only when confirmed. [[2]](#sources) Your worker should treat a quoted cost as a prompt to stop and check, not something to confirm automatically.
What to check
Run through this list before the first live event:
- Signature: a request with a missing, wrong or altered signature is rejected, and the check runs before you use any of the body.
- Secrets: the API key and webhook secret are in a secret store, and the key carries only the scopes it needs.
- Acknowledgment: the endpoint stores the event and answers before any CRM call.
- Dedupe: a repeated event produces one CRM change. You tested it with a forced failure.
- Idempotency-Key: every write your worker sends to Outlevo reuses its key on retry.
- Upserts: CRM writes match on a stable key, so a lost dedupe table does not create duplicate contacts.
- Ordering: an older event cannot overwrite a newer status.
- Bounces: Smartlead's sent, reply, bounce, unsubscribe and category-change events come back to Outlevo by webhook. [[12]](#sources)
- Unknown events: logged and acknowledged, not treated as errors.
- Credits: you know how many delivered events a normal week produces and what that costs.
- Alerting: you are told when the dedupe table, the queue or the CRM client starts failing, so the 12-hour retry window does not run out unnoticed. [[1]](#sources)
One more habit helps: keep a dead-letter table for events your worker could not apply, with the raw body and the error. When the CRM is down for a day, you can replay from it.
Next step
Create a test key and subscribe a tunnel or staging URL. Everything in the sandbox is fake, so you can run the whole path from signature check to CRM upsert without touching a real contact. Start on the developer hub, and read the webhooks page and the REST API page.
If you are still deciding how much of this to build yourself, read build outbound on an API or buy a platform. If you sell to engineers, outbound for developer tools covers the messaging side.