<?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: Can I query a non-HubSpot API to pull data into a HubSpot email? in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Can-I-query-a-non-HubSpot-API-to-pull-data-into-a-HubSpot-email/m-p/926027#M71228</link>
    <description>&lt;P&gt;So is that a yes or a no?&lt;/P&gt;</description>
    <pubDate>Tue, 20 Feb 2024 23:44:01 GMT</pubDate>
    <dc:creator>jkupczak</dc:creator>
    <dc:date>2024-02-20T23:44:01Z</dc:date>
    <item>
      <title>Can I query a non-HubSpot API to pull data into a HubSpot email?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Can-I-query-a-non-HubSpot-API-to-pull-data-into-a-HubSpot-email/m-p/925842#M71209</link>
      <description>&lt;DIV class=""&gt;I’m getting pushback from my developers in regards to pushing some of our product data into a custom object in HubSpot. So they wanted me to look into if either of these alternatives are viable for pulling data into a HubSpot email.&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;OL class=""&gt;&lt;LI&gt;My company builds online courses and we want an email to go out monthly with the most recently published ones. We already have our own API that we are able to query to pull data on those courses.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Can a HubSpot email pull data from a third party API?&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;My team is also open to building out the data as an RSS feed.&lt;/LI&gt;&lt;/OL&gt;&lt;DIV class=""&gt;If either option is available, what does it look like if a call to them ends with an error because our site is down? Does an email get sent by HubSpot with no data in it? Or does HubSpot keep trying until it retrieves data?&lt;/DIV&gt;</description>
      <pubDate>Tue, 20 Feb 2024 19:47:38 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Can-I-query-a-non-HubSpot-API-to-pull-data-into-a-HubSpot-email/m-p/925842#M71209</guid>
      <dc:creator>jkupczak</dc:creator>
      <dc:date>2024-02-20T19:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: Can I query a non-HubSpot API to pull data into a HubSpot email?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Can-I-query-a-non-HubSpot-API-to-pull-data-into-a-HubSpot-email/m-p/925916#M71214</link>
      <description>&lt;P&gt;Hi - I hope that you are Doing good !!&lt;/P&gt;&lt;P&gt;Try to pull data from a third-party API into a HubSpot email.&lt;/P&gt;&lt;P&gt;HubSpot allows you to use custom HTML and HubL in your emails,&lt;BR /&gt;Give that the flexibility in integrating external data sources&lt;/P&gt;&lt;P&gt;HubSpot is not going to make automati retry fetching the data.&lt;/P&gt;&lt;P&gt;Try to implement error handling mechanisms within your code to deal with it&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Thank you very much and have a fantastic day!&lt;BR /&gt;Warm regards&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 21:02:06 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Can-I-query-a-non-HubSpot-API-to-pull-data-into-a-HubSpot-email/m-p/925916#M71214</guid>
      <dc:creator>Humashankar</dc:creator>
      <dc:date>2024-02-20T21:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can I query a non-HubSpot API to pull data into a HubSpot email?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Can-I-query-a-non-HubSpot-API-to-pull-data-into-a-HubSpot-email/m-p/926027#M71228</link>
      <description>&lt;P&gt;So is that a yes or a no?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 23:44:01 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Can-I-query-a-non-HubSpot-API-to-pull-data-into-a-HubSpot-email/m-p/926027#M71228</guid>
      <dc:creator>jkupczak</dc:creator>
      <dc:date>2024-02-20T23:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can I query a non-HubSpot API to pull data into a HubSpot email?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Can-I-query-a-non-HubSpot-API-to-pull-data-into-a-HubSpot-email/m-p/926444#M71252</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/630095"&gt;@jkupczak&lt;/a&gt;, if you have Marketing Hub Enterprise and Operations Hub Pro, you could try using the &lt;A href="https://developers.hubspot.com/docs/api/marketing/single-send-api" target="_blank" rel="noopener"&gt;Marketing Single Send API&lt;/A&gt;&amp;nbsp;and a custom code action. The marketing single send api is currently in beta so you will need to enroll before you can use it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could create a workflow for all course update subscribers. In that workflow you would have a custom code action that retireves your course data through your api. Then, you would include that course data in a single send api call to send the email to the contact. The course data is included in the call through an object like below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
  "emailId": 4126643121,
  "message": {
    "to": "jdoe@hubspot.com"
    "sendId": "6"
  },
  "customProperties": {
    "purchaseUrl": "https://example.com/link-to-product",
    "productName": "vanilla"
  } 
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And the custom properties can be included in your email template with HubL like below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;!doctype html&amp;gt;
&amp;lt;html&amp;gt;
  &amp;lt;p&amp;gt;
    Congrats on purchasing some of the best ice cream around.
  &amp;lt;/p&amp;gt;
  &amp;lt;a href={{custom.purchaseUrl}}&amp;gt;{{custom.productName}}&amp;lt;/a&amp;gt;
&amp;lt;/html&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't have experience formatting the api call so hopefully &lt;A href="https://developers.hubspot.com/docs/api/marketing/single-send-api" target="_blank" rel="noopener"&gt;the api documentation&lt;/A&gt; is adequate in that regard.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't have Ops Hub and custom code actions, you could still perform this call through a separate platform that your developers could configure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 14:53:26 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Can-I-query-a-non-HubSpot-API-to-pull-data-into-a-HubSpot-email/m-p/926444#M71252</guid>
      <dc:creator>JTBuys</dc:creator>
      <dc:date>2024-02-21T14:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: Can I query a non-HubSpot API to pull data into a HubSpot email?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Can-I-query-a-non-HubSpot-API-to-pull-data-into-a-HubSpot-email/m-p/926499#M71259</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/630095"&gt;@jkupczak&lt;/a&gt;, if you have Marketing Hub Enterprise and Operations Hub Pro, then you could use the &lt;A href="https://developers.hubspot.com/docs/api/marketing/single-send-api" target="_blank" rel="noopener"&gt;Marketing Single Send API&lt;/A&gt; and a custom code action. The Single Send API is in beta so you will need to enroll in that first before creating the solution. This API allows you to send marketing emails and include custom properties that are not available on the contact record. If you do not have Operation Hub Pro, you could still use this API through another platform that your developers could configure.&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;To implement this you would create a workflow to enroll all course update subscribers. Then you would use a custom code action to retrieve the course data through your API and the single send endpoint to include it in your email. The custom properties are set in an object in the api call.&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;The call body also includes an email id that references a marketing email you have already created. Then, you would include your custom properties in the email using HubL tags.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;BR /&gt;I don't have experience configuring this call in Node or Python, so hopefully&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/api/marketing/single-send-api" target="_blank" rel="noopener"&gt;the api endpoint documentation&lt;/A&gt;&amp;nbsp;is adequate.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 15:57:18 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Can-I-query-a-non-HubSpot-API-to-pull-data-into-a-HubSpot-email/m-p/926499#M71259</guid>
      <dc:creator>JTBuys</dc:creator>
      <dc:date>2024-02-21T15:57:18Z</dc:date>
    </item>
  </channel>
</rss>

