Actions137
- Account Actions
- Automation Actions
- Broadcast Actions
- Contact Actions
- Contact Property Actions
- Domain Actions
- Email Actions
- Event Actions
- Inbox Actions
- Inbox Draft Actions
- Inbox Thread Actions
- Log Actions
- Receiving Email Actions
- Segment Actions
- Suppression Actions
- Template Actions
- Topic Actions
- Webhook Actions
Inbox Draft → Create
AI-generatedSummary
Create a new email draft in a specified inbox using Resend. You can include recipients, subject, plain text and HTML bodies, attachments (supporting both binary data and remote URLs), idempotency key to prevent duplicate drafts, and thread reply information.
Inputs
- Authentication (required) — Choose between 'API Key' or 'OAuth2' to authenticate with Resend API.
- Inbox (required) — Specify the target inbox by selecting from a list or directly entering its ID or email address.
- Draft Fields — Set draft attributes including To, CC, BCC recipients (comma-separated), Subject (max 2000 chars), plain text and HTML bodies, attachments which can be files with filename and content type from binary data or downloaded from a URL (total size max 25 MB), Idempotency Key to prevent duplicate drafts on retries, Reply To Email ID and Thread ID to reply to an existing thread.
Output shape
a single record representing the created draft object as returned by the Resend API
The output includes all metadata of the created draft. If Reply To Email ID and Thread ID are specified and a draft already exists for that unsent reply, the operation returns the existing draft with updated attachments instead of creating a new one. Attachments can now include remote URLs which are downloaded when the draft is stored. The size and type restrictions apply including a 25 MB total size limit and restrictions on file type and download protocols. Idempotency key affects duplicate creation and conflict handling.