Help center

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

  1. Go to Settings → Webhooks and click Add Webhook.
  2. Give it a name, paste the URL that should receive the events, and pick the events it should get.
  3. 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

EventSent when
reply.receivedA prospect replies to a campaign email. Auto-replies and bounces don't count.
reply.classifiedA 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.sentA campaign email is sent.
email.bouncedA campaign email bounces.
email.openedA prospect opens a campaign email, when open tracking is on.
link.clickedA prospect clicks a link in a campaign email, when click tracking is on.
prospect.unsubscribedA prospect unsubscribes.
campaign.completedA campaign has finished with every prospect.
campaign.auto_pausedThe bounce guard pauses a campaign.
mailbox.auto_pausedA 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, occurredAt and deliveryId. Events from a campaign add campaign; events about a prospect add prospect with its fields and custom fields as they were at that moment; events about a mailbox add mailbox.
  • reply.received and reply.classified carry the reply. Its text is what the prospect wrote, without the earlier emails quoted below it. reply.received also has foundInSpam: true when the reply was in the mailbox's spam folder rather than its inbox.
  • email.sent carries the email: its subject and the plain-text text. 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

  1. 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.
  2. In Outsquid, add a webhook with that URL and the Reply labelled (reply.classified) event.
  3. 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.
  4. Add Filter by Zapier so the Zap only continues when classification is exactly interested. Once the Zap works, add a second condition, that test does not exist, so later test events stop there.
  5. Add HubSpot with Create or Update Contact, and map the email, first name, last name, company and job title to the prospect fields.
  6. If you like, add more HubSpot steps to log reply.text on 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

  1. In Make, create a scenario that starts with Webhooks → Custom webhook, add a webhook and copy its address.
  2. Add a webhook in Outsquid with that address and the events you want.
  3. Click Send test event while Make is waiting for data, so it learns the fields from the sample.
  4. 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 as deliveryId in 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

Last updated 2026-11-15Still stuck? Contact support