How To Integrate With Hubspot Using Zapier - Detailed Guides

Integrate Smartlead With Hubspot seamlessly using Zapier

We've created a series of hyper detailed videos and guides on how to integrate with Smartlead and Hubspot using Zapier or any API infra you'd like.

This is independent of the native hubspot integration Smartlead has to offer, and can be used if you'd like hyper flexibility in your setup.

1) How To Create New Leads In Hubspot From Smartlead


2) How To Push Qualified / Positive Leads To Hubspot


3) How To Log Replies And Sent Emails to Hubspot

Required Data & Guides For Sent And Reply Tracking

Here's the guide for creating your Private App from which you'll get your header token, you'll use in the above video

Hubspot Document for CRM EMAIL API

Data for Fetching Contact Info From Hubspot

Method: POST

URL: https://api.hubapi.com/crm/v3/objects/contacts/search

Headers: Authorization Bearer <YOUR PRIVATE KEY>

Headers: Content-Type application/json

{
  "filterGroups": [
    {
      "filters": [
        {
          "propertyName": "email",
          "operator": "EQ",
          "value": "(INSERT_HUBSPOT_VARIABLE_HERE)"
        }
      ]
    }
  ]
}

Data for Pushing Sent Emails From Smartlead To Hubspot

Method: POST

URL: https://api.hubapi.com/crm/v3/objects/emails

Headers: Authorization Bearer <YOUR PRIVATE KEY>

Headers: Content-Type application/json

{
  "properties": {
    "hs_timestamp": "(INSERT_HUBSPOT_VARIABLE_HERE)",
    "hs_email_direction": "EMAIL",
    "hs_email_status": "SENT",
    "hs_email_subject": "(INSERT_HUBSPOT_VARIABLE_HERE)",
    "hs_email_text": "(INSERT_HUBSPOT_VARIABLE_HERE)",
    "hs_email_headers": {
      "from": {
        "email": "(INSERT_HUBSPOT_VARIABLE_HERE)"
      },
      "to": [
        {
          "email": "(INSERT_HUBSPOT_VARIABLE_HERE)",
          "firstName": "(INSERT_HUBSPOT_VARIABLE_HERE)",
          "lastName": "(INSERT_HUBSPOT_VARIABLE_HERE)"
        }
      ]
    }
  },
  "associations": [
    {
      "to": {
        "id": (INSERT_HUBSPOT_VARIABLE_HERE)
      },
      "types": [
        {
          "associationCategory": "HUBSPOT_DEFINED",
          "associationTypeId": 198
        }
      ]
    }
  ]
}

Data for Pushing Replies From Smartlead To Hubspot

Method: POST

URL: https://api.hubapi.com/crm/v3/objects/emails

Headers: Authorization Bearer <YOUR PRIVATE KEY>

Headers: Content-Type application/json

{
  "properties": {
    "hs_timestamp": "(INSERT_HUBSPOT_VARIABLE_HERE)",
    "hs_email_direction": "INCOMING_EMAIL",
    "hs_email_status": "SENT",
    "hs_email_subject": "(INSERT_HUBSPOT_VARIABLE_HERE)",
    "hs_email_text": "(INSERT_HUBSPOT_VARIABLE_HERE)",
    "hs_email_headers": {
      "from": {
        "email": "(INSERT_HUBSPOT_VARIABLE_HERE)"
      },
      "to": [
        {
          "email": "(INSERT_HUBSPOT_VARIABLE_HERE)",
          "firstName": "(INSERT_HUBSPOT_VARIABLE_HERE)",
          "lastName": "(INSERT_HUBSPOT_VARIABLE_HERE)"
        }
      ]
    }
  },
  "associations": [
    {
      "to": {
        "id": (INSERT_HUBSPOT_VARIABLE_HERE)
      },
      "types": [
        {
          "associationCategory": "HUBSPOT_DEFINED",
          "associationTypeId": 198
        }
      ]
    }
  ]
}

Did this answer your question?
😞
😐
😁