apicheats.dev Cheat sheet Raw .md
PATCH

Try PATCH /inboxes/{inbox_id}/drafts/{draft_id} — Resend API

Resend playground

Update an existing 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

7 body fields
  • to · required · string — The recipients. For multiple addresses, send an array of strings. Each value can include a friendly name. Pass `null` to clear. Each address is `[email protected]` or `Name <[email protected]>`. An address that is not valid returns a 422.
  • cc · optional · string — The CC recipients. Pass `null` or `[]` to clear. Each address is `[email protected]` or `Name <[email protected]>`. An address that is not valid returns a 422.
  • bcc · optional · string — The BCC recipients. Pass `null` or `[]` to clear. 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. Cannot be only whitespace or contain a line break. Pass `null` to clear.
  • html · optional · string — The HTML body. Pass `null` to clear.
  • text · optional · string — The plain text body. Pass `null` to clear.
  • 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. Sending the field replaces every attachment on the draft. Send `[]` to remove them all. `null` also removes them all.