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.
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
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)"
}
]
}
]
}
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
}
]
}
]
}
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
}
]
}
]
}