The Engine webhooks
Last updated: November 30, 2026
What webhooks do
A webhook notifies your tool as soon as an event happens on your The Engine account: a new lead, a reply, a published post. The Engine sends the event to the URL of your choice, the one Zapier, Make, n8n, or your own server gives you. Your CRM, your Slack, or your Google Sheet updates without you lifting a finger.
Add a webhook
In the app, open Settings, then Webhooks, and click Add a webhook:
- paste the URL: it must be https and resolve to a public internet address;
- check the events you want to receive;
- if needed, limit a prospect's events to certain sequences, or replies to each person's first message;
- copy the signing secret shown, then click Send a test.
An account can have up to 10 webhooks. Claude, with the The Engine connector, can also create, edit, and test them, and read their log.
Events
Each event has its own JSON schema, which describes all of its fields. An account that has entrusted its management to someone else only subscribes to the events for that role.
Prospecting
Available to the account and to a setter who manages it.
- New lead found
lead.created: Someone becomes a lead: they liked or commented on a post (yours, a competitor's, or a tracked post), visited your profile, invited you, or followed you. JSON schema - Invitation sent
invitation.sent: An invitation goes out, from a sequence or at your request. JSON schema - Invitation accepted
invitation.accepted: The person accepts an invitation that The Engine sent them. JSON schema - Invitation withdrawn
invitation.withdrawn: An invitation left unanswered is withdrawn. JSON schema - Message sent
message.sent: A message goes out from your LinkedIn account to someone. JSON schema - Prospect reply
message.received: Someone writes to you. The is_first_reply field tells you whether it's their first message in the conversation. JSON schema - Sequence finished
sequence.completed: Someone leaves a sequence: they replied, received the last message, or were stopped. JSON schema - Card moved
pipeline.card_moved: A card moves to a different column in your pipeline. JSON schema - Tag added
prospect.tag_added: A tag is applied to someone. JSON schema - Tag removed
prospect.tag_removed: A tag is removed from someone. JSON schema - Import finished
prospect_list.import_completed: A prospect import into a list or a sequence finishes. JSON schema
Posts
Available to the account and to a ghostwriter or community manager who manages it.
- Post published
post.published: One of your posts goes out on LinkedIn. JSON schema - Comment published
comment.published: A comment goes out on LinkedIn, under someone else's post or under yours. JSON schema
LinkedIn account
Available to the account and to anyone who manages it.
- Account disconnected
account.disconnected: Your LinkedIn account disconnects from The Engine. The reason field gives the cause. JSON schema - Limit reached
account.limit_reached: A cap on invitations or messages has been reached for the day or the week, or LinkedIn is blocking sends. JSON schema
Test
Sent by the "Send a test" button, to any webhook.
- Test
webhook.test: Checks your URL and your signing code. It goes out immediately, only once, and doesn't appear in the log. JSON schema
The format of a delivery
Each event arrives as a POST, in JSON, with three fields: type, the event name; timestamp, the time it occurred; data, its content. data.account_id and data.account tell you which account it comes from: a single URL can serve several accounts. A prospect's events include the person with the email, phone number, and tags the account has on them, and the sequence when there is one.
POST /votre-url HTTP/1.1
content-type: application/json
webhook-id: 6b1f0c52-3a4e-4d8b-9f2a-0d6c1e7a9b34
webhook-timestamp: 1796040000
webhook-signature: v1,K5oZfzN95Z9UVu1EsfQmfVNQhnkZ2pj9o9NDN/H/pI4=
{
"type": "lead.created",
"timestamp": "2026-11-30T09:20:00.000Z",
"data": {
"account_id": "0c7d3a8e-5b1f-4e2a-9c6d-8f4b2a1e7d90",
"account": { "id": "0c7d3a8e-5b1f-4e2a-9c6d-8f4b2a1e7d90", "name": "Léa Martin", "linkedin_url": "https://www.linkedin.com/in/lea-martin" },
"lead_id": "a2e4c6f8-1b3d-4e5f-8a7b-9c0d1e2f3a4b",
"source": "post_comment",
"created_at": "2026-11-30T09:19:58.000Z",
"sequence_id": null,
"sequence": null,
"prospect": {
"linkedin_id": "ACoAAB1x2y3",
"linkedin_url": "https://www.linkedin.com/in/camille-durand",
"full_name": "Camille Durand",
"first_name": "Camille",
"last_name": "Durand",
"headline": "DRH chez Acme",
"company": "Acme",
"position": "DRH",
"location": "Lyon",
"email": null,
"phone": null,
"tags": ["Salon RH"]
}
}
}Verify the signature
The signature proves that the request came from The Engine and that no one has tampered with it. It follows the Standard Webhooks specification, with three headers:
webhook-id: the ID of the delivery, the same on every retry;webhook-timestamp: the time of the attempt, in seconds since 1970;webhook-signature:v1,followed by the base64 HMAC-SHA256 ofwebhook-id.webhook-timestamp.body, computed with your secret, base64-decoded after itswhsec_prefix.
Compute the signature on the raw request body, before parsing its JSON, and reject any timestamp older than 5 minutes. Standard Webhooks libraries do this for you; in Node, with no dependencies:
import crypto from "node:crypto";
// body: the request's raw body, as received, before any JSON parsing.
function isFromTheEngine(secret, headers, body) {
const id = headers["webhook-id"];
const timestamp = headers["webhook-timestamp"];
// Older than 5 minutes: possibly a replayed request.
if (Math.abs(Date.now() / 1000 - Number(timestamp)) > 300) return false;
const key = Buffer.from(secret.replace(/^whsec_/, ""), "base64");
const expected = crypto
.createHmac("sha256", key)
.update(`${id}.${timestamp}.${body}`)
.digest("base64");
return headers["webhook-signature"]
.split(" ")
.map((signature) => signature.split(",")[1] ?? "")
.some(
(signature) =>
signature.length === expected.length &&
crypto.timingSafeEqual(Buffer.from(signature), Buffer.from(expected)),
);
}The Generate a new secret button, in the webhook settings, replaces the old one immediately: paste the new one into your tool right away.
Responses and retries
- Respond with a 2xx code within 10 seconds: the delivery is complete. A redirect isn't followed and counts as a failure.
- A failed delivery is retried up to 5 times: after 1 minute, 5 minutes, 30 minutes, 2 hours, then 8 hours. The
webhook-idstays the same: use it to ignore duplicates. - Arrival order isn't guaranteed: sort on
timestampif order matters. - A webhook that keeps failing for 24 hours straight is disabled, and The Engine notifies you. Re-enable it in the settings once your URL is fixed.
- Each webhook's delivery log shows the sends from the last 48 hours: date, event, status, response, and number of attempts.
Address security
The Engine only sends over https, on port 443, to a domain name: a raw IP address, credentials in the URL, or a .local or .internal name will be rejected. The name must resolve to a public internet address, never to a private network, the machine itself, or a cloud provider's internal address. The Engine checks this on every send, not just when you add the webhook. A server on your own premises works as long as it's reachable from the internet under a domain name.
Format changes
A published event only ever grows: new fields may be added, but none is renamed, retyped, or removed. Ignore any fields you don't recognize. A change that would break your integration would ship under a new event, like lead.created.v2, alongside the old one.
Support
Questions or problems: write to support.