We are building the Marketo integration with external CMS system, and would like to trigger the email send from the external system. The behavior is that when a user press a button, we will call Schedule Campaign REST API to run the smart campaign to send the email, and would like the campaign can run immediately or within 1 minute. However, if we set the runAt parameter to be shorter than 5 minutes, Marketo still schedules the campaign after 5 minutes, so we have to wait at least 5 minutes for each trigger, and if we make the sequence of calls, we will wait (at least) several 5 minutes for all campaigns running.
And we do not want to use Request Campaign API, because passing lead ID is needed for this, that means we need to make another call to get the recipient list first.
Is it possible to run the campaign via API in shorter time or other alternatives to achieve this?
Thank you in advance.
I think you're expecting more real-time behavior than the platform can reasonably promise, even when initiating sends via the UI.
What is the nature of these emails? Are they more transactional?
Actually, not more real-time behavior than the platform. We just expect to use API to run the campaign like pressing "Run Once" on the UI to send the email. It's not transactional emails, but news notifications.
Run Once and Schedule Campaign aren't really the same command. Run Once and Request Campaign are more aligned, though you've ruled out using Request Campaign above.