Webhooks, Make, n8n and custom code
Get a signed message when something happens in your account, and connect it to Make, n8n or your own code.
What webhooks are for
A webhook is a message we send to a web address you choose when something happens in your account, such as a new lead or a finished export. You use it to update another tool without checking LLCDrop yourself. Each message is a signed POST request with a JSON body. Anything that can receive a web request can use it, including Make, n8n and your own server.
Add an endpoint and send a test
- Open Settings, then Developers, then the Webhooks tab. Only account owners and admins can manage webhooks.
- Press Add endpoint.
- Enter the Endpoint URL. It must start with
https://. Addresses on private networks are refused. - Add a description if you like. Under Events, tick the events you want. Leave all unchecked to receive every event.
- Press Add endpoint in the dialog. A window called Copy your signing secret opens. Copy the secret now. It is shown only once. If you lose it, press New secret on the endpoint.
- Press Send test on the endpoint. We send one sample event to your URL right away. The sample is the first event the endpoint listens to, or
lead.createdwhen it listens to every event. Its ids are examples, not real records.
Each endpoint has a Show delivery log button that lists what we sent and whether it arrived. The switch on each endpoint reads On or Paused. A paused endpoint receives nothing, so Send test is turned off while it is paused.
You can also send a test from your own code. Use an API key with the webhooks:manage scope:
curl -X POST https://api.llcdrop.com/v1/webhooks/endpoints/ENDPOINT_ID/test \
-H "Authorization: Bearer $LLCDROP_API_KEY" \
-H "Content-Type: application/json" \
-d '{"event_type": "lead.created"}'
Events
You receive the events you ticked. The data field holds the fields shown here. Fields marked optional are left out when they have no value.
| Event | When it fires | Fields in data |
|---|---|---|
lead.created | A lead entered the account (saved or unlocked). | lead_id, kind, source, external_id |
lead.updated | A lead's stored data changed. | lead_id, kind, source, external_id, changed (optional list) |
lead.status_changed | A lead moved to another pipeline status. | lead_id, from (can be null), to |
list.member_added | A record was added to a list. | list_id, dataset, doc_number |
list.member_removed | A record was removed from a list. | list_id, dataset, doc_number |
contact.revealed | Contact details of a lead were revealed (credits spent). Read them with the API. | lead_id, kind, source, external_id |
contact.relocked | A reveal was reversed (the unlock failed and was refunded): treat the lead's contact details as not revealed. | lead_id, kind, source, external_id |
outreach.sent | An outreach message left our system. | outreach_id, lead_id (optional), channel |
outreach.delivered | An outreach message reached the recipient's provider. | outreach_id, lead_id (optional), channel |
outreach.bounced | An outreach message bounced. | outreach_id, lead_id (optional), channel, reason (optional) |
outreach.replied | The recipient replied. | outreach_id, lead_id (optional), channel |
crm.push.succeeded | A lead was pushed to a connected CRM. | connection_id, lead_id, crm, remote_id (optional, can be null) |
crm.push.failed | Pushing a lead to a connected CRM failed. | connection_id, lead_id, crm, error_code |
export.ready | An export finished. | format, count, delivery, job_id (optional) |
credits.low | The credit balance fell below the low-balance threshold. | balance, threshold |
member.added | A member joined the organization. | user_id, role |
member.removed | A member left or was removed. | user_id |
token.created | An API token was created. The secret is never included. | token_id, name, type, prefix, scopes |
token.revoked | An API token was revoked. | token_id, name (optional), type (optional) |
scan.created | A printed QR code was scanned (open) or its landing form was submitted. | scan_id, lead_id (optional), event_type, campaign (optional) |
share.viewed | A shared page was opened by a recipient (counted views only). | share_link_id, views, first_view |
Events carry ids, not contact details. To read the details of a lead, call the API with the lead_id. We may add new fields to an event later. Ignore fields you do not know.
The envelope
Every event has the same outer shape. Only data changes with the event type.
{
"id": "evt_sample_lead_created",
"type": "lead.created",
"version": 1,
"created_at": "2026-11-01T12:00:00.000Z",
"account_id": "0b7f4a52-6a39-4d0c-9d3e-7c1a2b3c4d5e",
"data": {
"lead_id": "5d8e0c61-33ab-4f6a-8f34-2a9c1e7b6d10",
"kind": "business",
"source": "fl-biz",
"external_id": "biz:1234567"
}
}
idis the event id. A redelivery uses the same id.typeis the event name from the table.versionis the payload version of that event type. Inside a version we only add fields.created_atis when the event happened, in ISO 8601.account_idis the organization the event belongs to.dataholds the event fields.
Check the signature
Anyone who knows your URL can post to it, so check every request. We follow the Standard Webhooks scheme. Each request has three headers:
svix-id: the message id.svix-timestamp: when it was sent, in seconds.svix-signature: one or more signatures, likev1,<base64>, separated by spaces.
The signature is an HMAC-SHA256 of {svix-id}.{svix-timestamp}.{body}, made with your signing secret. The secret starts with whsec_. The part after the prefix is base64.
Rules to follow:
- Verify against the raw request body, exactly as received. Do not parse and re-serialize it first.
- Reject requests whose timestamp is older than 5 minutes.
- A delivery can arrive more than once. Save the event
idand skip ids you have handled. - Answer with a 2xx status quickly and do the slow work after you answer.
If you rotate the secret, the old one is also accepted for 24 hours, so you can switch without losing events.
Recipes
Make
- In Make, create a scenario and add the Webhooks module with Custom webhook.
- Add a webhook and copy its URL.
- In LLCDrop, open Settings, Developers, Webhooks, press Add endpoint and paste the URL.
- In Make, press Run once. Then press Send test on the endpoint in LLCDrop.
- Make shows the structure of the message. Now you can use
typeand the fields indatain later modules. - Add a Filter after the webhook with the condition
typeequal to the event you want, for examplelead.created.
Make's custom webhook does not check signatures. Keep the URL private. If you need verification, use the n8n or custom code recipe.
n8n
- Add a Webhook node. Set HTTP Method to
POST. Under Options, turn on Raw Body. - Copy the production URL of the node and add it as an endpoint in LLCDrop.
- Add a Code node after it and paste the code below. It uses Node's built-in
cryptomodule, which n8n Cloud allows. On a self-hosted n8n, allow it with the settingNODE_FUNCTION_ALLOW_BUILTIN=crypto. - Add an IF node. Set the condition to
typeequal to the event you want.
const crypto = require("crypto");
const secret = "whsec_..."; // your signing secret
const raw = (await this.helpers.getBinaryDataBuffer(0, "data")).toString("utf8");
const h = $input.first().json.headers;
const key = Buffer.from(secret.replace("whsec_", ""), "base64");
const signed = `${h["svix-id"]}.${h["svix-timestamp"]}.${raw}`;
const expected = Buffer.from(crypto.createHmac("sha256", key).update(signed).digest("base64"));
const sent = String(h["svix-signature"]).split(" ").map((s) => Buffer.from(s.split(",")[1] ?? ""));
const match = sent.some((s) => s.length === expected.length && crypto.timingSafeEqual(s, expected));
const fresh = Math.abs(Date.now() / 1000 - Number(h["svix-timestamp"])) < 300;
if (!match || !fresh) throw new Error("Signature check failed");
return [{ json: JSON.parse(raw) }];
Custom code: Node
Install standardwebhooks and express. The route reads the raw body, so no JSON parser runs first.
import express from "express";
import { Webhook } from "standardwebhooks";
const wh = new Webhook(process.env.WEBHOOK_SECRET); // starts with whsec_
const app = express();
app.post("/webhooks/llcdrop", express.raw({ type: "*/*" }), (req, res) => {
const h = req.headers;
const raw = req.body.toString("utf8");
try {
wh.verify(raw, { "webhook-id": h["svix-id"], "webhook-timestamp": h["svix-timestamp"], "webhook-signature": h["svix-signature"] });
} catch {
return res.status(400).end();
}
res.status(200).end();
const event = JSON.parse(raw); // skip event.id values you have seen, then do the work
});
Custom code: Python
Install standardwebhooks and flask.
import json, os
from flask import Flask, request
from standardwebhooks import Webhook
wh = Webhook(os.environ["WEBHOOK_SECRET"]) # starts with whsec_
app = Flask(__name__)
@app.post("/webhooks/llcdrop")
def hook():
h, raw = request.headers, request.get_data()
try:
wh.verify(raw, {"webhook-id": h["svix-id"], "webhook-timestamp": h["svix-timestamp"], "webhook-signature": h["svix-signature"]})
except Exception:
return "", 400
event = json.loads(raw) # skip event["id"] values you have seen, then do the work
return "", 200
Retries and failures
Answer with a 2xx status within 15 seconds. Any other answer, or no answer, counts as a failure and we try again. A message is tried about 8 times over about 27 hours. The delivery log shows each message as Delivered, Retrying, Sending or Failed. Press the replay button on a delivery to send it again.
If an endpoint keeps failing for about 5 days, we pause it and email the account owner. Fix the problem, then switch the endpoint back to On. Do not rely on the order or timing of deliveries. Use created_at if you need to sort events.
Troubleshooting
The signature check fails. Check three things. You must verify the raw body, not parsed JSON. You must use the secret of this endpoint, including the whsec_ prefix. And your server clock must be correct, because timestamps older than 5 minutes are rejected. After you press New secret, update your code too.
I get the same event twice. This is expected. A delivery can repeat, for example when your answer was slow. Save the event id and skip ids you have seen.
My endpoint stopped receiving events. Open the Webhooks tab. If the switch says Paused, the endpoint was paused or disabled after repeated failures. Fix your server and switch it back to On. Then check that the event you want is ticked, or that no events are ticked.
Nothing arrives at all. Check that the URL starts with https:// and is reachable from the internet. Press Send test on the endpoint, then open Show delivery log to see the answer your server gave.
My tool shows no fields. Press Send test once so the tool can read the structure. Then map the fields from data.