Skip to content

feat(inboxes): accept the inbox email address in every inbox method - #1162

Merged
Cisneiros merged 6 commits into
inboxes-releasefrom
fix/inboxes-accept-id-or-email-c5c1
Oct 16, 2026
Merged

Cisneiros merged 6 commits into
inboxes-releasefrom
fix/inboxes-accept-id-or-email-c5c1

Conversation

@bukinoshita

@bukinoshita bukinoshita commented Oct 16, 2026 •

Copy link
Copy Markdown
Member
Open in Web Open in Cursor 

cursoragent and others added 3 commits October 16, 2026 00:32
`resend.inboxes.update` and `resend.inboxes.remove` now take the inbox ID
or the inbox email address, like `resend.inboxes.get`. The value is URL
encoded, so an address such as `[email protected]` reaches the
right inbox.

Co-authored-by: Bu Kinoshita <[email protected]>
… and agent methods

Every inbox sub-resource method now takes either `inboxId` or `email`,
the same way contact segments take `contactId` or `email`. The new
`InboxSelector` type makes the two fields mutually exclusive, and the
email address is URL encoded in the path.

Without `inboxId` or `email`, the methods return a
`missing_required_field` error and send no request. Draft create and
update keep the selector out of the request body.

Co-authored-by: Bu Kinoshita <[email protected]>
@pkg-pr-new

pkg-pr-new Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/resend@1162

commit: edf0570

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All reported issues were addressed across 33 files

Reply with feedback, questions, or to request a fix.

View guided diff | Re-trigger cubic

Comment thread src/inboxes/labels/labels.ts Resolved
Comment thread src/inboxes/build-inbox-path.ts Resolved
cursoragent and others added 2 commits October 16, 2026 00:42
The field that targets an inbox by its address is now `emailAddress`,
the same name `resend.inboxes.create` uses for the address of a new
inbox. Within inbox methods it sits next to fields such as `emailId`
and `to`, and `emailAddress` makes clear that it names the inbox.

Co-authored-by: Bu Kinoshita <[email protected]>
…e omitted

JavaScript calls such as `resend.inboxes.labels.list()` threw a
TypeError while reading `inboxId` from the missing options. The inbox
path now reads the selector with optional access, so these calls
return the `missing_required_field` error and send no request.

Co-authored-by: Bu Kinoshita <[email protected]>

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

0 issues found across 7 files (changes from recent commits).

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Requires human review: Auto-approval blocked by 2 unresolved issues from previous reviews.

View guided diff | Re-trigger cubic

With both fields, an empty `inboxId` fell back to `emailAddress`, so
JavaScript code with an empty ID and an unrelated `emailAddress` key
could act on another inbox. The email address is now used only when
`inboxId` is undefined or null. An empty `inboxId` returns the
`missing_required_field` error and sends no request.

Co-authored-by: Bu Kinoshita <[email protected]>

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

0 issues found across 2 files (changes from recent commits).

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Requires human review: Adds emailAddress as an alternative to inboxId across inbox SDK methods and encodes path segments; this changes the public API contract and relies on unverified backend support.

View guided diff | Re-trigger cubic

@bukinoshita
bukinoshita marked this pull request as ready for review October 16, 2026 01:03
@bukinoshita
bukinoshita requested a review from a team as a code owner October 16, 2026 01:03
@bukinoshita
bukinoshita requested a review from matt-gilb October 16, 2026 01:03
@isabellaaquino
isabellaaquino changed the base branch from canary to inboxes-release October 16, 2026 13:11
@Cisneiros

Copy link
Copy Markdown
Member

Verified working on the endpoints:

  • Inboxes: get and update by email, plus create and remove of a throwaway inbox by email.
  • Threads: list, list with the address upper-cased, search, get, update read, update with a label, and remove.
  • Thread emails: list, get, reply, forward.
  • Labels: create, list, update, remove.
  • Drafts: create, get, update, list, send, and remove of a second draft.
  • Agent: get and update.

@Cisneiros
Cisneiros merged commit dd6abae into inboxes-release Oct 16, 2026
14 checks passed
@Cisneiros
Cisneiros deleted the fix/inboxes-accept-id-or-email-c5c1 branch October 16, 2026 14:03
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.

3 participants