Creating legacy public apps and project-based apps is temporarily unavailable for new HubSpot accounts.
Learn more in our Trust Center.
curl --request POST \
--url https://api.hubapi.com/email/public/v1/singleEmail/send \
--header 'Content-Type: application/json' \
--data '
{
"emailId": 123,
"message": {
"to": "<string>",
"from": "<string>",
"sendId": "<string>",
"replyTo": "<string>",
"replyToList": [
"<string>"
],
"cc": [
"<string>"
],
"bcc": [
"<string>"
]
},
"contactProperties": [
{
"name": "<string>",
"value": "<string>"
}
],
"customProperties": [
{
"name": "<string>",
"value": "<string>"
}
]
}
'{
"sendResult": "SENT",
"message": "<string>",
"eventId": {
"id": "<string>",
"created": 123
}
}This method is used to send an email designed in the marketing email tool. After you design and publish a transactional email in your HubSpot account, you can use this API to include customization options to the email, then send it to the intended recipient.
curl --request POST \
--url https://api.hubapi.com/email/public/v1/singleEmail/send \
--header 'Content-Type: application/json' \
--data '
{
"emailId": 123,
"message": {
"to": "<string>",
"from": "<string>",
"sendId": "<string>",
"replyTo": "<string>",
"replyToList": [
"<string>"
],
"cc": [
"<string>"
],
"bcc": [
"<string>"
]
},
"contactProperties": [
{
"name": "<string>",
"value": "<string>"
}
],
"customProperties": [
{
"name": "<string>",
"value": "<string>"
}
]
}
'{
"sendResult": "SENT",
"message": "<string>",
"eventId": {
"id": "<string>",
"created": 123
}
}Scope requirements
The ID of the email to send. This is content ID for the transactional email, which can be found in email tool UI.
Show child attributes
A list of JSON objects representing contact property values to set when sending the email.
Show child attributes
A list of JSON objects representing property values to set when sending the email. Useful if you have context in the email you don't want to set on the contact record.
Show child attributes
Email send request processed
The result of the send operation
SENT, QUEUED, PORTAL_SUSPENDED, INVALID_TO_ADDRESS, BLOCKED_DOMAIN, PREVIOUSLY_BOUNCED, PREVIOUS_SPAM, INVALID_FROM_ADDRESS, MISSING_CONTENT, MISSING_TEMPLATE_PROPERTIES A description of the send result details
If sent, the id and created timestamp of the sent event
Show child attributes
Was this page helpful?