# Single Send API - ERROR "Could not find email"

**URL:** <https://community.hubspot.com/t/single-send-api-error-could-not-find-email/107889>\
**Category:** APIs & Integrations\
**Tags:** email\
**Created:** [May 23, 2024, 9:50pm UTC](https://community.hubspot.com/t/single-send-api-error-could-not-find-email/107889 "2024-05-23T21:50:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![COtani](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@COtani](https://community.hubspot.com/u/COtani)\
**Post date:** [May 23, 2024, 9:50pm UTC](https://community.hubspot.com/t/single-send-api-error-could-not-find-email/107889/1 "2024-05-23T21:50:42Z")

</div>

I’m having some issues with the single send api:

> **[Accounts Dashboard | HubSpot](https://app.hubspot.com/myaccounts?next=developerdocs&redirect=%2Fapi-reference%2Fmarketing-single-send-v4%2Fguide)**

This is the resonse error message:

```lia-code-sample
<Response [400]>

{'status': 'error', 'message': 'Could not find email -- portalId: 7222820, emailId: 168327023110', 'correlationId': 'a792e01a-ed3e-4dac-a06d-616618bdfa4b', 'sendResult': 'MISSING_CONTENT'}

```

It looks like the email\_id is wrong. I copied it from the URL of the template email:

> **[Design Manager | HubSpot](https://app.hubspot.com/design-manager/7222820/code/168327023110)**

I set up a very basic template and am trying to send it to myself. Here is the python code:

```lia-code-sample
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)

```

template:

 ![COtani_1-1716500302086.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/2X/7/73a507be2f3924d62941bf5b5c361158a07df1cd.jpeg)

I also tried the CURL example with my email ID and am getting the same response.

---

<div class="post-metadata">

**Author:** ![AHernandez60](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ahernandez60/32/106407_2.png) [@AHernandez60](https://community.hubspot.com/u/AHernandez60)\
**Post date:** [May 24, 2024, 7:39am UTC](https://community.hubspot.com/t/single-send-api-error-could-not-find-email/107889/2 "2024-05-24T07:39:45Z")

</div>

Hello!

It is possible that your error is because you are providing the template ID and not an email ID.

Try creating a new email using this template and once designed, save it as a one-time email (in the actions within the editor).

If you need any additional screenshots or help, don’t hesitate to contact me.  
Also you can [contact me here](https://tiralineas.digital/meetings/alvaro-jubete/reunion-ander-alvaro).  
Regards

---

<div class="post-metadata">

**Author:** ![Teun](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/teun/32/28739_2.png) [@Teun](https://community.hubspot.com/u/Teun)\
**Post date:** [May 24, 2024, 7:58pm UTC](https://community.hubspot.com/t/single-send-api-error-could-not-find-email/107889/3 "2024-05-24T19:58:57Z")

</div>

This is indeed the correct answer.

 ![Schermafbeelding 2024-05-24 om 21.58.34.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/f/2/f272405603b3d0413b6620b636c5196b17179437.jpeg)

---

<div class="post-metadata">

**Author:** ![COtani](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@COtani](https://community.hubspot.com/u/COtani)\
**Post date:** [May 24, 2024, 8:26pm UTC](https://community.hubspot.com/t/single-send-api-error-could-not-find-email/107889/4 "2024-05-24T20:26:45Z")

</div>

Thnk you. That was the main issue. There is also an action to convert the email to single-send which was also needed.

 ![COtani_0-1716582354786.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/4/4cef7ad5eff186fdabb412bcbb88d352f5d5842d.png)
