Developers
CRM recipes
se.quenc.es does not ship CRM connectors. It ships a signed webhook for everything that happens to an address, an API to push contacts and suppressions in, and a payload that always names the contact and the campaign. Every CRM below is reachable with those, usually through Zapier, Make or n8n without writing code.
The two directions
Out of se.quenc.es: bounces, complaints, unsubscribes, deliveries and form signups arrive at your URL as a POST. Use them to keep the CRM honest: a hard bounce or a complaint should set the CRM's own opt-out flag so no other tool emails that person either.
Into se.quenc.es: when the CRM learns someone opted in, add the contact with a consent source; when it learns someone opted out, add a suppression. Suppressions are per organization and win over everything.
curl -X POST https://se.quenc.es/api/v1/suppressions \
-H "Authorization: Bearer sqk_..." -H "Content-Type: application/json" \
-d '{"email":"ann@example.com","reason":"unsubscribe","source":"HubSpot opt-out"}'curl -X POST https://se.quenc.es/api/v1/contacts \
-H "Authorization: Bearer sqk_..." -H "Content-Type: application/json" \
-d '{"email":"ann@example.com","first_name":"Ann","consent_source":"HubSpot form 2026-11-01","list_id":"<list uuid>","attributes":{"crm_id":"12345"}}'What every webhook carries
Every event has the same envelope. contact is present whenever we know the address (null id means the address was never a contact). campaign is present for anything that happened to a campaign email, with the step number and A/B variant letter; it is null for transactional sends and form signups. identity is the sending identity the event belongs to; endpoints set up on an identity only ever receive that identity's events. The raw event fields stay under data.
{
"type": "bounce",
"organization_id": "03f0…",
"occurred_at": "2026-11-05T17:03:12.000Z",
"contact": {
"id": "7c52…", "email": "ann@example.com",
"first_name": "Ann", "last_name": "Lee",
"attributes": { "company": "Example Co", "city": "Denver" }
},
"campaign": {
"id": "66da…", "name": "Agencies: own-SES outreach",
"step": 2, "step_name": "What the client does", "variant": "B"
},
"identity": { "id": "b81e…", "identity": "mail.example.com" },
"data": { "severity": "permanent", "ses_message_id": "0100…", "details": { … } }
}| type | When | What to do in the CRM |
|---|---|---|
bounce | SES reported a bounce. data.severity is permanent or transient. | Permanent: flag the record as bounced and stop emailing from every tool. Transient: ignore, or note it. |
complaint | The recipient marked it as spam. | Opt the record out everywhere. We already suppressed them; the CRM should match. |
unsubscribe | They clicked unsubscribe or used one-click unsubscribe. | Opt out in the CRM. |
delivery | SES delivered the message to their mail server. | Optional activity. Not an open; we do not pretend otherwise. |
delivery_delay, reject | Temporary failure, or SES refused to send. | Usually ignore. Rejects are worth a look if they cluster. |
subscribe | A signup form confirmed (double opt-in). data.form and data.list_id say which. | Create or update the record; record the consent source and date. |
Deliveries are signed. Verify X-Sequences-Signature before trusting anything; the snippet is on the developers page. Match CRM records by contact.email, or by contact.attributes.crm_id if you set it when importing.
Zapier, Make, n8n
The pattern is the same everywhere: a "Catch webhook" trigger, a filter on type, a "Find record by email" step in the CRM, then an update. One zap or scenario per event type keeps them readable. For the inbound direction, use the CRM's own trigger and a "Webhooks by Zapier" or HTTP step that calls our API with your bearer key. Keep the key in the automation tool's secret store, not in a field.
HubSpot
The most common CRM at agencies. Use a HubSpot workflow with a webhook action to push contacts in, and Zapier or Make to receive our events; HubSpot has no inbound webhook receiver of its own on lower tiers.
Into se.quenc.es
- Workflow trigger: contact enrolls in a list or a property changes. Action: "Send webhook" (Operations Hub) or a Zapier step. Call POST /contacts with email, first and last name, a consent_source such as "HubSpot form <name> <date>", and the HubSpot contact id in attributes.crm_id.
- Workflow trigger: "Unsubscribed from all email" becomes true. Call POST /suppressions with reason "unsubscribe" so the address is never sent to here either.
Out of se.quenc.es
- bounce (data.severity = "permanent"): set the HubSpot contact property "Email bounced" (or a custom one) and remove from marketing lists.
- complaint: mark as "Unsubscribed from all email". Treat it as final.
- unsubscribe: same as complaint, with a note.
- subscribe (from a signup form): create or update the contact, set lifecycle stage to Subscriber, add to the list named in data.form.
Field mapping
| Webhook field | HubSpot field |
|---|---|
contact.email | Email (the identifier) |
contact.first_name / last_name | First name / Last name |
contact.attributes.crm_id | HubSpot contact id, if you set it on import |
campaign.name + campaign.step | Timeline note: "Email 2 of Agencies outreach bounced" |
campaign.variant | Custom property if you report A/B results in HubSpot |
Salesforce
Receive with a Flow that has an HTTP callout, or an Apex REST endpoint; most teams route through Zapier, Make or n8n instead and keep Salesforce config untouched.
Into se.quenc.es
- Flow: when a Lead or Contact has "HasOptedOutOfEmail" set, POST /suppressions with reason "unsubscribe".
- Nightly: export a report of leads who opted in (with the opt-in date as consent_source) and POST /contacts in batches of up to 500 as {"contacts":[…]}.
Out of se.quenc.es
- bounce with data.severity = "permanent": set EmailBouncedReason and EmailBouncedDate on the Lead or Contact, matched by email.
- complaint or unsubscribe: set HasOptedOutOfEmail = true.
- delivery: optional; most teams do not log successful deliveries in Salesforce.
Field mapping
| Webhook field | Salesforce field |
|---|---|
contact.email | |
campaign.name | Campaign (create one Salesforce Campaign per sequence) and add a CampaignMember with status from type |
data.ses_message_id | Store on the activity for support lookups |
Pipedrive
Pipedrive Automations can call a webhook on person changes; events come back through Zapier or Make, or directly to your own small receiver.
Into se.quenc.es
- Automation: person created or label set to "Newsletter" → POST /contacts with the person id in attributes.crm_id and the label as consent_source.
- Automation: custom field "Do not email" set → POST /suppressions.
Out of se.quenc.es
- bounce (permanent): add a note to the person and set a custom "Email status" field to "bounced".
- complaint, unsubscribe: set "Email status" to "opted out" and remove the Newsletter label.
- subscribe: create the person with the form name as the lead source.
Field mapping
| Webhook field | Pipedrive field |
|---|---|
contact.attributes.crm_id | Person id (fastest lookup); fall back to email search |
campaign.name, campaign.step | Note text |
occurred_at | Note date |
Zoho CRM
Zoho Flow or Zoho CRM workflow webhooks on both sides.
Into se.quenc.es
- Workflow rule on Leads: "Email Opt Out" checked → POST /suppressions.
- Zoho Flow: new Lead with a consent field → POST /contacts.
Out of se.quenc.es
- bounce (permanent): update the Lead or Contact, set "Email Opt Out" = true and a note "Hard bounce on <campaign.name>".
- complaint, unsubscribe: "Email Opt Out" = true.
Field mapping
| Webhook field | Zoho CRM field |
|---|---|
contact.email | |
campaign.name | Description or a custom "Last campaign" field |
GoHighLevel
Common at agencies that white-label. Workflows have both a webhook trigger and a webhook action.
Into se.quenc.es
- Workflow: contact tag "newsletter" added → webhook action to POST /contacts (tag name as consent_source, contact id in attributes.crm_id).
- Workflow: tag "unsubscribed" added or DND set → POST /suppressions.
Out of se.quenc.es
- Point a GHL inbound webhook trigger at an endpoint of ours. On bounce (permanent) or complaint: set DND for email and add a tag "sq-bounced" or "sq-complaint".
- subscribe: create the contact and add the tag named after data.form.
Field mapping
| Webhook field | GoHighLevel field |
|---|---|
contact.email | |
campaign.name | Tag "campaign:<name>" if you report per campaign |
GoHighLevel sub-accounts map one-to-one to clients; add a webhook endpoint on each client's sending identity, pointed at that client's sub-account, so each client only receives its own events, each with its own signing secret.
Close
Close has a native webhook subscription API and custom activities; a small receiver or Zapier does the rest.
Into se.quenc.es
- Close webhook on lead.status_change or contact.updated → POST /contacts with the Close lead id in attributes.crm_id.
- Close "Unsubscribed" custom field → POST /suppressions.
Out of se.quenc.es
- bounce (permanent): create a custom activity "Email bounced" on the lead found by email; set the contact's email to unsubscribed.
- complaint, unsubscribe: mark the email as unsubscribed in Close.
Field mapping
| Webhook field | Close field |
|---|---|
contact.attributes.crm_id | Lead id |
campaign.name, campaign.step, campaign.variant | Custom activity fields |
ActiveCampaign (as a CRM)
If a client runs their pipeline in ActiveCampaign but sends through se.quenc.es, use its automation webhooks.
Into se.quenc.es
- Automation: tag "send-via-ses" added → webhook action to POST /contacts.
- Automation: contact unsubscribes → POST /suppressions.
Out of se.quenc.es
- bounce (permanent) and complaint: tag the contact "sq-bounced" / "sq-complaint" and unsubscribe from the matching list.
Field mapping
| Webhook field | ActiveCampaign (as a CRM) field |
|---|---|
contact.email | |
campaign.name | Tag |
Something else
Any system with a webhook trigger and an HTTP action fits the same pattern. If a CRM you use has neither, a 30-line receiver on a serverless function that verifies the signature and calls the CRM's API is the usual answer. Write to hello@se.quenc.es if you want a recipe added here.