Repository navigation
feat(inboxes): accept the inbox email address in every inbox method - #1162
Conversation
`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]>
Co-authored-by: Bu Kinoshita <[email protected]>
commit: |
There was a problem hiding this comment.
All reported issues were addressed across 33 files
Reply with feedback, questions, or to request a fix.
View guided diff | Re-trigger cubic
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]>
There was a problem hiding this comment.
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]>
There was a problem hiding this comment.
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
|
Verified working on the endpoints:
|
Uh oh!
There was an error while loading. Please reload this page.