A collection of methods related to the Transactional Emails API
Methods
-
Send an email designed and maintained in the HubSpot marketing Email Tool.
See the developer docs for full spec.Name Type Description emailIdint The ID of the email to send, from the Email Tool when viewing a transactional email.
messagestring A JSON object holding the recipient (in its to field) as well as other customizations that can be made on the fly.
contactPropertiesobject A list of JSON objects representing contact property values to set when sending the email.
customPropertiesobject 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));