Integrations
Send replies and events to your CRM with webhooks
A webhook sends an event to a URL of yours the moment something happens in Outsquid: a prospect replies, you label a reply Interested, an email goes out. Point it at Zapier or Make and you can add the lead to HubSpot, Pipedrive, Attio or any other CRM without writing code.
Add a webhook
- Go to Settings → Webhooks and click Add Webhook.
- Give it a name, paste the URL that should receive the events, and pick the events it should get.
- Click the paper-plane button on the webhook's row (Send test event) to check it arrives.
Owners and admins can add and change webhooks; every member can see them. Each project has its own webhooks, so an agency can send each client's replies to that client's CRM.
Events
| Event | Sent when |
|---|---|
reply.received | A prospect replies to a campaign email. Auto-replies and bounces don't count. |
reply.classified | A reply's label changes: someone labels it in the Inbox (Interested, Not Interested, Auto Reply, Out of Office), or sets the prospect to Interested or Not Interested on the Prospects page, which labels their replies too. |
email.sent | A campaign email is sent. |
email.bounced | A campaign email bounces. |
email.opened | A prospect opens a campaign email, when open tracking is on. |
link.clicked | A prospect clicks a link in a campaign email, when click tracking is on. |
prospect.unsubscribed | A prospect unsubscribes. |
campaign.completed | A campaign has finished with every prospect. |
campaign.auto_paused | The bounce guard pauses a campaign. |
mailbox.auto_paused | A mailbox is paused because of its bounce rate. |
For a CRM, reply.classified is usually the one you want: it fires when
someone on your team decides a reply is worth following up, and its
classification says which label they picked (interested,
not_interested, auto_reply, out_of_office or unclassified).
What a delivery contains
Each event is a POST with a JSON body. A reply.classified delivery looks
like this:
{
"event": "reply.classified",
"occurredAt": "2026-11-15T09:30:00.000Z",
"deliveryId": "…",
"campaignId": "…",
"prospectId": "…",
"threadId": "…",
"mailboxId": "…",
"classification": "interested",
"previousClassification": "unclassified",
"campaign": { "id": "…", "name": "Q4 founders" },
"prospect": {
"id": "…",
"email": "[email protected]",
"firstName": "Ana",
"lastName": "Silva",
"company": "Example Co",
"title": "Head of Sales",
"phone": null,
"linkedinUrl": null,
"website": "https://example.com",
"city": "Lisbon",
"state": null,
"country": "Portugal",
"status": "interested",
"customFields": { "industry": "Software" }
},
"mailbox": { "id": "…", "email": "[email protected]", "name": "Your Name" },
"reply": {
"messageId": "…",
"from": "[email protected]",
"subject": "Re: Quick question",
"text": "Sounds interesting. Could you send me more details?",
"receivedAt": "2026-11-15T09:12:00.000Z"
}
}
- Every delivery has
event,occurredAtanddeliveryId. Events from a campaign addcampaign; events about a prospect addprospectwith its fields and custom fields as they were at that moment; events about a mailbox addmailbox. reply.receivedandreply.classifiedcarry thereply. Itstextis what the prospect wrote, without the earlier emails quoted below it.reply.receivedalso hasfoundInSpam: true when the reply was in the mailbox's spam folder rather than its inbox.email.sentcarries theemail: itssubjectand the plain-texttext. It's plain text on purpose: logging the HTML version in a CRM would load the open-tracking image and count an open.- We may add fields over time, so don't reject a body that has fields you don't use.
Send interested replies to HubSpot with Zapier
- In Zapier, create a Zap with Webhooks by Zapier as the trigger and Catch Hook as the event, and copy the webhook URL it gives you. Webhooks by Zapier needs a paid Zapier plan.
- In Outsquid, add a webhook with that URL and the Reply labelled
(
reply.classified) event. - Click Send test event and choose
reply.classified. The test carries sample data with every field a real event has, so Zapier's Test trigger picks all of them up. - Add Filter by Zapier so the Zap only continues when
classificationis exactlyinterested. Once the Zap works, add a second condition, thattestdoes not exist, so later test events stop there. - Add HubSpot with Create or Update Contact, and map the email,
first name, last name, company and job title to the
prospectfields. - If you like, add more HubSpot steps to log
reply.texton the contact or create a deal.
Pipedrive, Attio, Close, Salesforce and most other CRMs have Zapier actions that create or update a contact, so the same Zap works with them: change the last steps.
Do the same with Make
- In Make, create a scenario that starts with Webhooks → Custom webhook, add a webhook and copy its address.
- Add a webhook in Outsquid with that address and the events you want.
- Click Send test event while Make is waiting for data, so it learns the fields from the sample.
- Add a filter on
classification=interested, then your CRM's module.
Check the signature
Zapier and Make accept any request sent to their URL, so keep the URL to yourself. If the webhook points at your own server, check that each request comes from Outsquid. Every delivery has these headers:
x-outsquid-event: the event name;x-outsquid-delivery: the delivery's id, the same asdeliveryIdin the body;x-outsquid-timestamp: when the request was signed, in Unix seconds;x-outsquid-signature:sha256=followed by the HMAC-SHA256, in hex, of the timestamp, a dot and the raw body, keyed with the webhook's signing secret.
In Node.js:
import { createHmac, timingSafeEqual } from "node:crypto";
function isFromOutsquid(rawBody, headers, secret) {
const timestamp = headers["x-outsquid-timestamp"];
const expected =
"sha256=" +
createHmac("sha256", secret).update(`${timestamp}.${rawBody}`).digest("hex");
const received = Buffer.from(headers["x-outsquid-signature"] ?? "");
const wanted = Buffer.from(expected);
const recent = Math.abs(Date.now() / 1000 - Number(timestamp)) < 300;
return (
recent &&
received.length === wanted.length &&
timingSafeEqual(received, wanted)
);
}
Use the body exactly as it arrived: parsing the JSON and turning it back into text can change it and break the signature. Click a webhook's row to see its signing secret; its Rotate signing secret button issues a new one straight away.
Retries
Answer with any 2xx status within 10 seconds. Anything else, or no answer,
is tried again after 1 minute, 5 minutes, 30 minutes, 2 hours and 6 hours. If
the last try fails too, the webhook is marked Failed and gets no more
events until you edit and save it.
A delivery can occasionally arrive twice, so if a duplicate would matter, skip
one whose deliveryId you've already handled. It stays the same when a
delivery is retried, and every event gets its own: labelling a reply
Interested, then Not Interested, then Interested again sends three deliveries
with three ids.
Related