Skip to main content
POST
/
email
/
public
/
v1
/
singleEmail
/
send
Send a single transactional email
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
  }
}

Required Scopes

This API requires one of the following scopes:
  • transactional-email

Body

application/json
emailId
integer
required

The ID of the email to send. This is content ID for the transactional email, which can be found in email tool UI.

message
object
required
contactProperties
object[]

A list of JSON objects representing contact property values to set when sending the email.

customProperties
object[]

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.

Response

Email send request processed

sendResult
enum<string>

The result of the send operation

Available options:
SENT,
QUEUED,
PORTAL_SUSPENDED,
INVALID_TO_ADDRESS,
BLOCKED_DOMAIN,
PREVIOUSLY_BOUNCED,
PREVIOUS_SPAM,
INVALID_FROM_ADDRESS,
MISSING_CONTENT,
MISSING_TEMPLATE_PROPERTIES
message
string

A description of the send result details

eventId
object

If sent, the id and created timestamp of the sent event