Hi, I have a question about triggering workflows via the API and sending a marketing email template. When I use the webhook action to trigger a workflow (passing in the email address of the contact), the workflow enrollment fires as expected, but the marketing email does not send, and there is no error response or visible flag on the workflow.
For context:
We create the contact as a marketing contact in a prior step.
We have the following subscriptions: Marketing Hub Professional, Sales Hub Professional, Service Hub Enterprise, and Operations Hub Professional.
Can anyone confirm whether this is a platform limitation, or if there’s another configuration needed to enable email sending in this scenario? I’m able to send the email via other services but would like to avoid it if possible.
Can you check the contact itself under Activity (filter by Marketing Emails) to see if it was surpressed? My guess is that the emails are being surpressed due to lack of opt-in of the newly created contact.
Although I didn’t see any activity related to the contact after checking, I ran a test where a contact was manually added to a specific subscription, and the email step was triggered. Your guess was right.
In case it’s helpful for anyone in the future: I managed to now do this programatically, it involved first creating the contact via forms API (which sets marketing contact status), then another request to communication preferences API to add the subscription to the contact, and finally another request to trigger the email workflow on HubSpot. An interesting issue is that I needed to add a delay of 1 min before sending the email to give time for the subscription data to propagate on the backend--otherwise it simply wouldn’t send.
I hadn’t considered the propogation issue but that might have been the original issue and/or contributor to the issue?
Aka you’re sending an email faster than Hubspot could update the records HOWEVER there should have been sometimes where it was successful (due to random chance delays and updates with workflows and Hubspot)? I wonder if you could do your original workflow and simply add a delay before the email send. It is odd that it’s not showing up under the Contact’s activity (which might point to the propagation issue).
Not that I would recommend doing it that way due to anti-spam laws these days. Having the opt-in status is helpful.
Thanks for replying back and providing your solution! Always helpful for others who may run into the same issue.
Based on your setup and the fact that the contact is already marked as a marketing contact, the email should send if everything is properly configured. A few things to double-check:
Email Send Configuration – Ensure the marketing email used in the workflow is published and not in draft. It also needs to be set to send automatically within the workflow.
Subscription Type Matching – Confirm the contact is opted into the correct subscription type that’s associated with the email. If there’s a mismatch, the email won’t be delivered.
Enrollment Criteria & Suppression Lists – Sometimes, even if enrollment fires, contacts can be suppressed due to prior settings (like already completed workflows, recent sends, or suppression lists).
Workflow Settings – Check if the workflow action that sends the email is conditional or delayed. It’s also worth confirming that the email step is actually being reached in the workflow timeline.
Unfortunately, there are some quirks in HubSpot when triggering workflows via API/webhook that aren’t always visible through the UI. You might want to check your HubSpot email logs or contact activity feed to see if the send attempt was registered at all.
If everything checks out and it still doesn’t send, it might be worth raising a support ticket with HubSpot, especially since you’re on Marketing Hub Pro. They can access backend logs to confirm what’s happening behind the scenes.