apicheats.dev Cheat sheet Raw .md
POST

Try POST /inboxes/{inbox_id}/drafts — Resend API

Resend playground

Create a draft

Credentials

Kept in this tab only. Requests go through apicheats.dev's same-origin proxy straight to api.resend.com; the proxy stores and logs nothing about them.

Headers

Path

Body application/json

9 body fields
  • to · optional · string — The recipients. For multiple addresses, send an array of strings. Each value can include a friendly name, for example `Ada Lovelace <[email protected]>`. Each address is `[email protected]` or `Name <[email protected]>`. An address that is not valid returns a 422.
  • cc · optional · string — The CC recipients. For multiple addresses, send an array of strings. Each address is `[email protected]` or `Name <[email protected]>`. An address that is not valid returns a 422.
  • bcc · optional · string — The BCC recipients. For multiple addresses, send an array of strings. Each address is `[email protected]` or `Name <[email protected]>`. An address that is not valid returns a 422.
  • subject · optional · string — The subject. Max 2000 characters. A string that is only whitespace, or that contains a line break, is rejected.
  • html · optional · string — The HTML body.
  • text · optional · string — The plain text body.
  • attachments · optional · object[] — Files to store on the draft. Each one needs `content`, `filename` and `content_type`. A `path` without `content` returns a 422, and when both are sent, `path` is ignored. A `content_id` returns a 422. The files on a draft can total at most 25 MB. An empty file or a blocked file type returns a 422.
  • thread_id · optional · string — The Thread ID to reply in. Must be sent with `reply_to_email_id`.
  • reply_to_email_id · optional · string — The Email ID to reply to, as returned in `data[].id` by the list thread emails endpoint. Must be sent with `thread_id`.