Skip to content

feat: add idempotencyKey support to emails.receiving.forward()#997

Merged
felipefreitag merged 1 commit into
canaryfrom
feat-forward-idempotency-key
Jul 2, 2026
Merged

feat: add idempotencyKey support to emails.receiving.forward()#997
felipefreitag merged 1 commit into
canaryfrom
feat-forward-idempotency-key

Conversation

@felipefreitag

@felipefreitag felipefreitag commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Accept a second request options argument, matching emails.send/create, and pass it to the internal POST /emails call so forwarded emails can be safely retried without duplicates.

Closes #967


Summary by cubic

Adds optional request options to emails.receiving.forward() with idempotencyKey support, so forwards can be retried without duplicates. Aligns the method with emails.send/emails.create and closes #967.

  • New Features
    • Adds a second argument requestOptions (ForwardReceivingEmailRequestOptions) with idempotencyKey and other PostOptions.
    • Applies options only to the internal POST /emails in both passthrough and wrapped modes; Idempotency-Key is not sent on the initial GET. Tests cover both cases.

Written for commit 93d1f8d. Summary will update on new commits.

Review in cubic

Accept a second request options argument, matching emails.send/create,
and pass it to the internal POST /emails call so forwarded emails can
be safely retried without duplicates.

Closes #967
@felipefreitag felipefreitag requested a review from a team as a code owner July 2, 2026 21:07
@pkg-pr-new

pkg-pr-new Bot commented Jul 2, 2026

Copy link
Copy Markdown

Open in StackBlitz

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

commit: 93d1f8d

@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.

No issues found across 3 files

Confidence score: 5/5

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

Re-trigger cubic

@felipefreitag felipefreitag merged commit 0f14dc8 into canary Jul 2, 2026
13 of 14 checks passed
@felipefreitag felipefreitag deleted the feat-forward-idempotency-key branch July 2, 2026 21:42
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.

Add idempotencyKey support to emails.receiving.forward()

2 participants