Skip to main content

Our Front workflow involves generating emails and scheduling their sends on a daily basis. Our current flow is:

  1. Generate the email text and attachments programmatically. The email content includes a blurb about the time the email should be scheduled (roughly based on the local time of the recipient)
  2. Send a POST to `/drafts` with the email content and attachments
  3. On success, open the link to the draft
  4. Manually schedule the send according the the email content’s scheduled send blurb, and delete the blurb in the email.

The only manual part of this flow is that we need to manually schedule the send (and delete the blurb saying the send time, but that’s a byproduct), which is a hassle.

 

I haven’t been able to find a way to programmatically schedule sending via the API but that would allow us to do this whole flow programmatically. It doesn’t look like there’s anything in the Messages or Drafts APIs. Does this functionality exist? If not, I’m curious why and if it might ever be on the roadmap.

Hi,

If no manual interaction is required in the draft authoring process, an alternative approach to consider is just using a delayed job processing service on your side to send the messages later. Tools like Trigger.dev and Inngest are good examples managed providers who can help with this. 

If you’d like to see this behavior supported natively in the Front API, I’d encourage you to share a feature suggest via our product ideas portal


Reply