List Inbox Drafts
list-inbox-draftsPurpose: List the drafts in one Resend inbox (the messages composed there but not sent), each with its ID.
Instructions
Purpose: List the drafts in one Resend inbox (the messages composed there but not sent), each with its ID.
NOT for: Reading a draft's body (use get-inbox-draft) or sending one (use send-inbox-draft). Not for the messages already in a thread (use get-inbox-thread), and not for sent emails (use list-emails).
Returns: For each draft: id, type ("standalone" or "reply"), to, cc, bcc, subject, snippet, thread_id, reply_to_email_id, attachments, updated_at.
When to use: User asks what drafts an inbox holds, or you need a draft ID. A "reply" draft answers a message in a thread and carries that thread_id; a "standalone" draft is a new message belonging to no thread. Get the inbox ID from list-inboxes, then the draft ID from here for get-inbox-draft, update-inbox-draft, send-inbox-draft, or remove-inbox-draft. This endpoint is paginated: when more drafts exist, pass the last draft's ID back as "after". When paging backward with "before", pass the first draft's ID back as "before".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Draft ID after which to retrieve more (for the next, older page). Cannot be used with "before". An ID that is not an unsent draft on this inbox returns a 404. | |
| limit | No | Number of drafts to retrieve. Default: 20, Max: 100, Min: 1 | |
| before | No | Draft ID before which to retrieve more (for the previous, newer page). Cannot be used with "after". An ID that is not an unsent draft on this inbox returns a 404. | |
| inboxId | Yes | Inbox ID |