<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Creating Emails via API in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Creating-Emails-via-API/m-p/1221218#M85299</link>
    <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/480538"&gt;@boostmyemail&lt;/a&gt;&amp;nbsp;, always refer to the official HS docs, the templateid you are referring must be an AI slop. The Marketing Email and Single Send APIs don't accept template IDs. You basically construct the entire email content structure in the request body as JSON based on the format in the API docs.&lt;BR /&gt;&lt;BR /&gt;Marketing Email:&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/api-reference/marketing-marketing-emails-v3/marketing-emails/post-marketing-v3-emails-" target="_blank"&gt;https://developers.hubspot.com/docs/api-reference/marketing-marketing-emails-v3/marketing-emails/post-marketing-v3-emails-&lt;/A&gt;&lt;BR /&gt;Single Send:&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/api-reference/marketing-single-send-v4/single-send/post-marketing-v4-email-single-send" target="_blank"&gt;https://developers.hubspot.com/docs/api-reference/marketing-single-send-v4/single-send/post-marketing-v4-email-single-send&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Nov 2025 06:54:17 GMT</pubDate>
    <dc:creator>Christensen</dc:creator>
    <dc:date>2025-11-07T06:54:17Z</dc:date>
    <item>
      <title>Creating Emails via API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Creating-Emails-via-API/m-p/1221076#M85295</link>
      <description>&lt;P&gt;I'm getting conflicting information from both HS docs and AI as I try and find this answer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I use drag and drop templates as templates that create emails via the API? We have a lot of templates in there, and I would like to more programmatically create emails, however when I used the templateid long with individual modules within that template, nothing matched up. An email was created, but no content filled any modules and it did not inherit the modules of the drag and drop template.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Nov 2025 23:14:30 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Creating-Emails-via-API/m-p/1221076#M85295</guid>
      <dc:creator>boostmyemail</dc:creator>
      <dc:date>2025-11-06T23:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Emails via API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Creating-Emails-via-API/m-p/1221094#M85297</link>
      <description>&lt;P&gt;Hey &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/480538"&gt;@boostmyemail&lt;/a&gt;&lt;/SPAN&gt; - thanks for posting in the Community!&lt;BR /&gt;&lt;BR /&gt;I'd like to tag in some API experts to see what insight they may have for us! &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/111325"&gt;@karstenkoehler&lt;/a&gt;&lt;/SPAN&gt;, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/123775"&gt;@danmoyle&lt;/a&gt;&lt;/SPAN&gt;, and &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/87451"&gt;@Ben_M&lt;/a&gt;&lt;/SPAN&gt; - any thoughts for &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/480538"&gt;@boostmyemail&lt;/a&gt;&lt;/SPAN&gt; ?&lt;BR /&gt;&lt;BR /&gt;Shane, Senior Community Moderator&lt;/P&gt;</description>
      <pubDate>Fri, 07 Nov 2025 00:18:22 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Creating-Emails-via-API/m-p/1221094#M85297</guid>
      <dc:creator>STierney</dc:creator>
      <dc:date>2025-11-07T00:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Emails via API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Creating-Emails-via-API/m-p/1221218#M85299</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/480538"&gt;@boostmyemail&lt;/a&gt;&amp;nbsp;, always refer to the official HS docs, the templateid you are referring must be an AI slop. The Marketing Email and Single Send APIs don't accept template IDs. You basically construct the entire email content structure in the request body as JSON based on the format in the API docs.&lt;BR /&gt;&lt;BR /&gt;Marketing Email:&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/api-reference/marketing-marketing-emails-v3/marketing-emails/post-marketing-v3-emails-" target="_blank"&gt;https://developers.hubspot.com/docs/api-reference/marketing-marketing-emails-v3/marketing-emails/post-marketing-v3-emails-&lt;/A&gt;&lt;BR /&gt;Single Send:&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/api-reference/marketing-single-send-v4/single-send/post-marketing-v4-email-single-send" target="_blank"&gt;https://developers.hubspot.com/docs/api-reference/marketing-single-send-v4/single-send/post-marketing-v4-email-single-send&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Nov 2025 06:54:17 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Creating-Emails-via-API/m-p/1221218#M85299</guid>
      <dc:creator>Christensen</dc:creator>
      <dc:date>2025-11-07T06:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Emails via API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Creating-Emails-via-API/m-p/1221531#M85312</link>
      <description>&lt;P&gt;Agree with what&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/1007207"&gt;@Christensen&lt;/a&gt;&amp;nbsp;is saying.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, you can create an email through the HubSpot UI and then pull it via the GET /marketing/v3/emails/{email-id} endpoint. This will provide the JSON that you can refer to and use to create the marketing emails via the POST&amp;nbsp;/marketing/v3/emails/ endpoint.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Nov 2025 17:59:54 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Creating-Emails-via-API/m-p/1221531#M85312</guid>
      <dc:creator>evaldas</dc:creator>
      <dc:date>2025-11-07T17:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Emails via API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Creating-Emails-via-API/m-p/1229462#M85826</link>
      <description>&lt;P data-start="0" data-end="587"&gt;Hi &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/480538"&gt;@boostmyemail&lt;/a&gt;&amp;nbsp;, thanks for raising this, the docs and AI can definitely send mixed signals here.&lt;/P&gt;
&lt;P data-start="0" data-end="587"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="0" data-end="587"&gt;The short answer is no, you cannot pass a drag and drop templateId and expect the Marketing Email or Single Send APIs to “apply” that template automatically. Those endpoints ignore template IDs and expect you to send the full email structure as JSON in the request body, including all modules and their contents (&lt;A href="https://developers.hubspot.com/docs/api-reference/marketing-marketing-emails-v3/guide" target="_blank"&gt;https://developers.hubspot.com/docs/api-reference/marketing-marketing-emails-v3/guide&lt;/A&gt; )&lt;/P&gt;
&lt;P data-start="0" data-end="587"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="0" data-end="587"&gt;That is why your email was created but did not inherit modules or content from the drag and drop template.&lt;/P&gt;
&lt;P data-start="589" data-end="1291"&gt;The safest pattern is to treat your drag and drop templates as authoring tools, not API primitives. Build one email in the UI using the drag and drop template you like, publish or save it, then fetch it via GET /marketing/v3/emails/{emailId}.&lt;/P&gt;
&lt;P data-start="589" data-end="1291"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="589" data-end="1291"&gt;The JSON you get back is your “real” template for the API: you can inspect the modules, copy that structure, and then create new emails by POST /marketing/v3/emails with the same layout and only swapping texts, images, or personalization tokens. It is a bit more verbose at first, but once you have that base payload, it becomes very straightforward to generate emails programmatically.&lt;/P&gt;
&lt;P data-start="589" data-end="1291"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="1293" data-end="1550"&gt;If the bigger goal here is to send highly personalized emails based on data that lives in another system, Stacksync keeps HubSpot and your source database in two-way sync so the right fields and statuses are always there when your API-created emails go out.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Nov 2025 19:33:50 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Creating-Emails-via-API/m-p/1229462#M85826</guid>
      <dc:creator>RubenBurdin</dc:creator>
      <dc:date>2025-11-28T19:33:50Z</dc:date>
    </item>
  </channel>
</rss>

