I’m having some issues with the single send api:
This is the resonse error message:
<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:
I set up a very basic template and am trying to send it to myself. Here is the python code:
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:
I also tried the CURL example with my email ID and am getting the same response.


