feat: add Emails.share method - #221
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
No issues found across 2 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Auto-approved: Adds Resend::Emails.share to create a shareable email link via POST /emails/{id}/share. It's a minimal, well-tested, non-breaking addition with no auth/config/security impact.
Re-trigger cubic
Approval not submitted
This repository is configured to approve as @klotty, but that approval identity is unavailable.
The refresh token passed is incorrect or expired.
cubic left this as a normal review comment instead of falling back to a Cubic App approval.
dielduarte
marked this pull request as ready for review
August 20, 2026 15:04
gabrielmfern
approved these changes
Aug 20, 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.
Adds
Resend::Emails.share(email_id, params = {}), calling the newPOST /emails/{id}/shareendpoint that creates a shareable link for a sent or received email. See the spec PR resend/resend-openapi#92.params[:expires_in]is an optional human-readable duration (e.g.10m,2 hours,1 day; server defaults to48h, capped at 48h).Summary by cubic
Add
Resend::Emails.shareto create a shareable link for a sent or received email viaPOST /emails/{id}/share. Previously you could not generate share links; now you can optionally setexpires_inwith a human-readable duration. The server defaults to 48h and caps at 48h.emails/{id}/share; includes a body only whenexpires_inis provided.idandurl. Maps validation and not found responses to existingResend::Errorclasses.expires_in("10m"), invalid durations (>48h), and missing email (404).Written for commit a5f2467. Summary will update on new commits.