Repository navigation
feat(inboxes): accept path attachments on drafts - #141
Merged
dielduarte merged 1 commit intoOct 30, 2026
Merged
Conversation
dielduarte
marked this pull request as ready for review
October 30, 2026 16:40
vcapretz
approved these changes
Oct 30, 2026
dielduarte
deleted the
feature/dev-2418-update-openapi-spec-resend-openapi
branch
October 30, 2026 16:56
This was referenced Oct 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
POST /inboxes/{inbox_id}/draftsandPATCH /inboxes/{inbox_id}/drafts/{draft_id}now acceptpathattachments, likePOST /emails. They used to return a 422. API change: resend/resend-monorepo#13475 (live in prod).Changes
InboxDraftAttachmentInput:filenameis required now.contentis required withoutpath, andpathis required withoutcontent.pathproperty.content_typeis required withcontent. Withpath, it defaults to the downloaded file's content type.The create/update
attachmentsdescriptions and the create-draft operation description now say that apathfile is downloaded when the request is made (not when the draft is sent). They also give the 422 cases:paththat doesn't start withhttp/https, or can't be downloadedVerification
yq eval . resend.yamlparses.redocly lintgives 184 warnings and 0 errors, the same as main.path+filename→ 201, and the content type comes from the downloadpathwithoutfilename→ 422contentwithoutcontent_type→ 422ftp://path → 422path→ 200content+path→contentwinsLinear: DEV-2418