Learn how to create, update, and retrieve data for your emails using the Marketing Emails v3 API.
/publish
and /unpublish
endpoints, you must have a Marketing Hub Enterprise account or the transactional email add-on.contactLists
parameter is no longer supported. Instead, you should provide the ILS list IDs using the contactIlsLists
parameter when creating an email. Learn more on the HubSpot Developer Changelog.POST
request to /marketing/v3/emails
and include the following fields in the body of your request:
businessUnitId
field, which you should include in the request body if you purchased the Brands add-on. Be aware that business units is the former name for brands, but this change does not impact the API. The field name you specify in the request body should still be businessUnitId
. You can get a list of brands in your account using the brands API.GET
request to /marketing/v3/emails/{emailId}
GET
request to /marketing/v3/emails
, and include any filters as query parameters in your request (e.g., add createdAfter
and a date in ISO8601 format to get all emails created after a specific date).