Email API: create new email from template


#1

The goal
We have a large database of properties and we send lots of marketing emails about them through hubspot. We would like to automate part of this process since 70% if the info in the email is already in our database. Thus we would like to build a small app that lets us select one of our hubspot email templates and one of the properties from our database and fill in the blanks and saves the draft in hubspot so the marketing team and finish the email and send it from hubspot.

API?
I've looked through the API and I don't see anyway to create a new email with the API. Everything under "Email API" only seems to care about subscriptions and "Email Events API" only comes into play after a email is sent. Are there API endpoints for creating a new email and saving the draft in hubspot?

Thanks!


#2

Hi @Alex_Smith,

There isn't currently an 'Email API' in the sense you're referring to. Batch/automated emails must be scheduled and sent via the HubSpot UI. The only existing method for programmatically sending emails and populating them with values from an external database would be the Transactional Email API: