APIs & Integrations

YQin
Member

creating reusable sequence email templates using API

SOLVE

Hello,

I'm looking for an API to create an email template that I can use under Automations -> Sequences -> Create Sequence -> Email. Is this possible?

Basically, I hope my API-created email can show up in the panel below.

Screenshot 2024-10-08 at 12.36.44 PM.png

0 Upvotes
1 Accepted solution
evaldas
Solution
Key Advisor | Platinum Partner
Key Advisor | Platinum Partner

creating reusable sequence email templates using API

SOLVE

That's strange. I thought I saw a successful test last week but I am also getting the same error. It's possible those templates got "locked" because it was not supposed to be available. Unfortunately, I don't have the results saved from those tests, so I can't claim it was for sure available for sequence templates. It's also possible I used an ID of a marketing email template by accident (which still works).

 

In either case, it appears that now the only way to create templates for sequences is through the HubSpot UI. However, I does not look like there are any options to convert emails into templates as the sequence email has very basic editing options and you will likely have to use the good old copy/paste for that. 

 

Apologies for any confusion.

 

✔️ Did this post help answer your query? Help the community by marking it as a solution.

View solution in original post

0 Upvotes
6 Replies 6
YQin
Member

creating reusable sequence email templates using API

SOLVE

Hi @evaldas, Thanks for the reply! I created an email template in "Library > Templates." But when I tried to GET the template using GET Template, it gave me the error "Unable to find model with id 70409380." Did I do anything wrong?

0 Upvotes
evaldas
Solution
Key Advisor | Platinum Partner
Key Advisor | Platinum Partner

creating reusable sequence email templates using API

SOLVE

That's strange. I thought I saw a successful test last week but I am also getting the same error. It's possible those templates got "locked" because it was not supposed to be available. Unfortunately, I don't have the results saved from those tests, so I can't claim it was for sure available for sequence templates. It's also possible I used an ID of a marketing email template by accident (which still works).

 

In either case, it appears that now the only way to create templates for sequences is through the HubSpot UI. However, I does not look like there are any options to convert emails into templates as the sequence email has very basic editing options and you will likely have to use the good old copy/paste for that. 

 

Apologies for any confusion.

 

✔️ Did this post help answer your query? Help the community by marking it as a solution.

0 Upvotes
YQin
Member

creating reusable sequence email templates using API

SOLVE

Got it. Thanks for all the details @evaldas!

Jaycee_Lewis
Community Manager
Community Manager

creating reusable sequence email templates using API

SOLVE

Hey, @YQin 👋 Unfortunately, there is not a Sequence-related API. There is not an endpoint or way to do what you are asking programmatically. I understand why this would be useful. 

 

I hope this helps get you moving forward.

 

Best,

Jaycee. 





loop


Loop Marketing is a new four-stage approach that combines AI efficiency and human authenticity to drive growth.

Learn More




0 Upvotes
YQin
Member

creating reusable sequence email templates using API

SOLVE

Hi @Jaycee_Lewis, thanks for the response! As I'm thinking about the workaround: Is there any easy way to convert an email into a template that can be used in sequence, either using the HubSpot website or programmatically?

0 Upvotes
evaldas
Key Advisor | Platinum Partner
Key Advisor | Platinum Partner

creating reusable sequence email templates using API

SOLVE

Hi @YQin,

 

What you could do is create a sample template when creating the sequence. That template will then be available in "Library > Templates" in the left sidebar navigation.

 

At that point you can either manually clone it through the HubSpot UI or utilize the API to fetch that template, make edits and upload a copy to your portal (recent community post with some information on the API approach).

 

Hope this helps!

✔️ Did this post help answer your query? Help the community by marking it as a solution.

0 Upvotes