Latest API and SDK updates. Subscribe via RSS · Discord
Summary
Introducing the Drafts API – compose and manage email drafts before sending. Create drafts, update them over time, schedule send times, and send when ready. Perfect for agents that need to build messages incrementally, support reply threading, or queue emails for later delivery.
What’s new?
New endpoints:
GET /drafts- List all drafts (with optional filters)GET /drafts/{draft_id}- Get a draftPOST /inboxes/{inbox_id}/drafts- Create a draft in an inboxPATCH /inboxes/{inbox_id}/drafts/{draft_id}- Update a draftPOST /inboxes/{inbox_id}/drafts/{draft_id}/send- Send a draftDELETE /inboxes/{inbox_id}/drafts/{draft_id}- Delete a draft
Draft features:
- Compose with to, cc, bcc, subject, plain text, and HTML body
- Reply threading via
in_reply_toandreferences - Schedule send with
send_atfor delayed delivery - Attachments and labels
- List and filter drafts by inbox, labels, or time range
Use cases
Build agents that:
- Compose multi-step replies before sending
- Schedule follow-up emails for optimal delivery
- Queue outbound messages and send in batches
- Edit drafts based on new context or user feedback
- Maintain proper email threads with
in_reply_to
Learn more about composing and sending in our Drafts documentation.
