Namespace: hs/transactionalEmails

hs/transactionalEmails

A collection of methods related to the Transactional Emails API

Methods

hs/transactionalEmails.singleSend (emailId, message, contactProperties, customProperties)Promise asyncstatic

Send an email designed and maintained in the HubSpot marketing Email Tool.
See the developer docs for full spec.

Name Type Description
emailId int

The ID of the email to send, from the Email Tool when viewing a transactional email.

message string

A JSON object holding the recipient (in its to field) as well as other customizations that can be made on the fly.

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.

Returns:
Type Description
Promise
Example
const hs = new HubspotClient(props);
hs.transactionalEmails.singleSend(emailId, message, contactProperties, customProperties).then(response => console.log(response));