Correct Template Setup for HubSpot Transactional Email API

Hi HubSpot Community,

I want to confirm the correct approach for using HubSpot email templates with the Transactional Email API.

In our Laravel application, we want to trigger emails from our code based on certain actions (for example user creation, contract creation, password setup, etc.).

Our planned approach is:

  1. Create/manage the email template in HubSpot.
  2. Store the HubSpot template/email ID in our application.
  3. From our Laravel code, call the HubSpot API and pass the required dynamic data.
  4. HubSpot sends the email to the user using that template.

Can you please confirm where these templates should be created?

Should we create them under Marketing → Email and use them through the API using the email/template ID?

Or should we create them under CRM → Message Templates?

We would like to understand the recommended approach for this use case.

Thanks,
Vivek

Hey @VGupta39,

To point you in the right direction, I’d recommend checking out the Transactional Email API dev doc, which I believe should cover the recommended setup for your use case:

Also tagging in some of our Top Contributors to see if they have any suggestions around this!

Hey @Josh, @MichaelMa, @Anton -- Do you have any suggestions for @VGupta39?

Thanks in advance!

Best,

Sam