Setting custom properties with single send API


How can I set custom properties which will populate within the email via the API call? We’re using the single send API (transactional email) and would like to establish the custom property (note: custom property not contact property) as shown within the example here.


Hi @smarsalisi,

Just to make sure that we’re on the same page, are you asking how you should send the property in the request? Or how you should format the token in the email body in HubSpot to include the custom property? The doc you linked to has an example of what the JSON should look like when including custom properties. In the email body in HubSpot, you’ll use the following format: {{ custom.NAME }} where NAME is replaced by the name of the custom property you’d like to print.