Skip to content

Conversation

@lucasfcosta
Copy link
Contributor

@lucasfcosta lucasfcosta commented Sep 30, 2025

Summary by cubic

Adds v0 inbound email retrieval and attachment APIs to the SDK. Lets users fetch inbound email content/metadata and get or list attachments with clean, camelCase fields.

  • New Features
    • Added resend.inbound.get(id) to fetch inbound email details (subject, to/from, html/text, cc/bcc/replyTo, attachments metadata).
    • Added resend.attachments.get({ emailId, id }) and resend.attachments.list({ emailId }) to access attachment content (base64) and metadata, including inline vs attachment.
    • Responses use camelCase; errors return as ErrorResponse.
    • Exposed new modules via Resend class (resend.inbound, resend.attachments) and package exports.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Sep 30, 2025

Open in StackBlitz

npm i https://pkg.pr.new/resend/resend-node/resend@641

commit: c4bd313

});

const result = await resend.attachments.get({
emailId: '61cda979-919d-4b9d-9638-c148b93ff410',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the spirit of keeping everything isolated during the alpha testing, and not causing confusion with outbound, how about we rename emailId to inboundId?

@lucasfcosta lucasfcosta force-pushed the feat/get-inbound-emails-v0 branch from 413146a to c4bd313 Compare September 30, 2025 14:44
@lucasfcosta lucasfcosta marked this pull request as ready for review September 30, 2025 14:44
@lucasfcosta lucasfcosta requested a review from a team as a code owner September 30, 2025 14:44
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 13 files

@lucasfcosta lucasfcosta merged commit 6d6b2ae into canary Sep 30, 2025
12 checks passed
@lucasfcosta lucasfcosta deleted the feat/get-inbound-emails-v0 branch September 30, 2025 14:52
gabrielmfern pushed a commit that referenced this pull request Oct 1, 2025
Cisneiros pushed a commit that referenced this pull request Oct 14, 2025
gabrielmfern pushed a commit that referenced this pull request Oct 16, 2025
gabrielmfern pushed a commit that referenced this pull request Oct 17, 2025
lucasfcosta added a commit that referenced this pull request Oct 17, 2025
gabrielmfern pushed a commit that referenced this pull request Oct 21, 2025
gabrielmfern pushed a commit that referenced this pull request Oct 21, 2025
lucasfcosta added a commit that referenced this pull request Oct 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants