We have an application that sends multiple types of email where some are things like login alerts and others are more analagous to marketing emails, but still sent from our same system with the same transactional email api. We also send email to these same user directly from within Hubspot (not using the API) and a user may choose to unsubscribe from a certain type of email. How can email sent via the transactional email API respect that unsubscription data?
Reading the docs here https://knowledge.hubspot.com/articles/kcs_article/email/can-opted-out-contacts-still-receive-some-types-of-email it sounds like the email will bypass that data and always be sent. In our case this is undesired, as we would be sending email to the user against their wishes.