Is there a way to automate creating HubSpot email templates from raw HTML generated by Unlayer?

Hi everyone,

I’m using Unlayer’s template builder to create marketing email templates, which outputs raw HTML. I want to automate the process of saving this raw HTML as a HubSpot email template.

From what I’ve researched, HubSpot doesn’t seem to provide a direct API or built-in solution to automate email template creation using raw HTML.

Has anyone found a way or workaround to automate this flow? Any tips or advice would be greatly appreciated!

Thanks in advance!

Hi @Zahoor_Ilahi

HubSpot doesn’t have a single built-in “upload HTML → create email” button, but you can automate it in two ways:

  1. Unlayer → HubSpot push – sends your design directly into HubSpot as a draft. Unlayer HubSpot Export Guide
  2. (HubSpot Marketing Emails API) is straightforward if you can make API calls, export HTML from Unlayer and send it to HubSpot as the email body in a draft. HubSpot Marketing Emails API Docs
    Hope this helps!