<?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: Single Send API - ERROR &amp;quot;Could not find email&amp;quot; in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Single-Send-API-ERROR-quot-Could-not-find-email-quot/m-p/982014#M73901</link>
    <description>&lt;P&gt;Thnk you. That was the main issue. There is also an action to convert the email to single-send which was also needed.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="COtani_0-1716582354786.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/118266i793383D9B389C088/image-size/medium?v=v2&amp;amp;px=400" role="button" title="COtani_0-1716582354786.png" alt="COtani_0-1716582354786.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 24 May 2024 20:26:45 GMT</pubDate>
    <dc:creator>COtani</dc:creator>
    <dc:date>2024-05-24T20:26:45Z</dc:date>
    <item>
      <title>Single Send API - ERROR "Could not find email"</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Single-Send-API-ERROR-quot-Could-not-find-email-quot/m-p/981483#M73862</link>
      <description>&lt;P&gt;I’m having some issues with the single send api:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.hubspot.com/docs/api/marketing/single-send-api" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/api/marketing/single-send-api&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the resonse error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;&amp;lt;Response [400]&amp;gt;

{'status': 'error', 'message': 'Could not find email -- portalId: 7222820, emailId: 168327023110', 'correlationId': 'a792e01a-ed3e-4dac-a06d-616618bdfa4b', 'sendResult': 'MISSING_CONTENT'}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like the email_id is wrong. I copied it from the URL of the template email:&lt;/P&gt;&lt;P&gt;&lt;A href="https://app.hubspot.com/design-manager/7222820/code/168327023110" target="_blank" rel="noopener"&gt;https://app.hubspot.com/design-manager/7222820/code/168327023110&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I set up a very basic template and am trying to send it to myself. Here is the python code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import requests



auth_token = ******

email_id = 168327023110

url = 'https://api.hubapi.com/marketing/v4/email/single-send'



data = {

    "emailId": email_id,

    "message": {"to": "redacted@redacted.com", }

}

headers = {'Authorization': f'Bearer {auth_token}',

           'Content-Type': 'application/json'}

response = requests.post(url,  json=data, headers=headers)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;template:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="COtani_1-1716500302086.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/118188i2D32ACCE2CB73C43/image-size/large?v=v2&amp;amp;px=999" role="button" title="COtani_1-1716500302086.png" alt="COtani_1-1716500302086.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried the CURL example with my email ID and am getting the same response.&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 21:53:02 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Single-Send-API-ERROR-quot-Could-not-find-email-quot/m-p/981483#M73862</guid>
      <dc:creator>COtani</dc:creator>
      <dc:date>2024-05-23T21:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Single Send API - ERROR "Could not find email"</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Single-Send-API-ERROR-quot-Could-not-find-email-quot/m-p/981608#M73870</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is possible that your error is because you are providing the template ID and not an email ID.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Try creating a new email using this template and once designed, save it as a one-time email (in the actions within the editor).&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If you need any additional screenshots or help, don't hesitate to contact me.&lt;BR /&gt;Also you can &lt;A title="New Meet" href="https://tiralineas.digital/meetings/alvaro-jubete/reunion-ander-alvaro" target="_blank" rel="noopener"&gt;contact me here&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 07:39:45 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Single-Send-API-ERROR-quot-Could-not-find-email-quot/m-p/981608#M73870</guid>
      <dc:creator>AHernández60</dc:creator>
      <dc:date>2024-05-24T07:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Single Send API - ERROR "Could not find email"</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Single-Send-API-ERROR-quot-Could-not-find-email-quot/m-p/981989#M73898</link>
      <description>&lt;P&gt;This is indeed the correct answer.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Schermafbeelding 2024-05-24 om 21.58.34.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/118263i0C91B3672C68E44E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Schermafbeelding 2024-05-24 om 21.58.34.png" alt="Schermafbeelding 2024-05-24 om 21.58.34.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 19:58:57 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Single-Send-API-ERROR-quot-Could-not-find-email-quot/m-p/981989#M73898</guid>
      <dc:creator>Teun</dc:creator>
      <dc:date>2024-05-24T19:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: Single Send API - ERROR "Could not find email"</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Single-Send-API-ERROR-quot-Could-not-find-email-quot/m-p/982014#M73901</link>
      <description>&lt;P&gt;Thnk you. That was the main issue. There is also an action to convert the email to single-send which was also needed.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="COtani_0-1716582354786.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/118266i793383D9B389C088/image-size/medium?v=v2&amp;amp;px=400" role="button" title="COtani_0-1716582354786.png" alt="COtani_0-1716582354786.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 20:26:45 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Single-Send-API-ERROR-quot-Could-not-find-email-quot/m-p/982014#M73901</guid>
      <dc:creator>COtani</dc:creator>
      <dc:date>2024-05-24T20:26:45Z</dc:date>
    </item>
  </channel>
</rss>

