feat(broadcasts): add duplicate endpoint - #160
Merged
dielduarte merged 3 commits intoSep 14, 2026
Merged
Conversation
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
There was a problem hiding this comment.
1 issue found across 8 files
Confidence score: 4/5
src/Resend/IResend.csadds a duplicate-operation API call whose production authorization requirements are not yet confirmed; broadcast API keys may be rejected at runtime if they lack permission for the endpoint—verify the required key permissions and restrictions before merging.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="src/Resend/IResend.cs">
<violation number="1" location="src/Resend/IResend.cs:864">
P2: Custom agent: **API Key Permission Check SDK Methods**
This adds a new Resend API operation. Confirm that the production API keys used for broadcasts have permission to call the duplicate endpoint, including any restricted keys, before release.</violation>
</file>
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
gabrielmfern
marked this pull request as ready for review
September 11, 2026 19:18
felipefreitag
approved these changes
Sep 11, 2026
This was referenced Sep 15, 2026
Closed
Closed
This was referenced Sep 22, 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.
This ports
resend.broadcasts.duplicate(id)from the Node SDK asBroadcastDuplicateAsync, for thePOST /broadcasts/{id}/duplicateendpoint added in resend/resend-openapi#115, plus abroadcast duplicatecommand in the deprecated CLI. It is a hand port, since thetools/dotnet-gengenerator refuses Broadcasts. The release carries 0.18.0.Claude called the new method against staging from a scratch console app and ran the CLI command once, then deleted both copies with httpie. The test keeps
Assert.NotEqual( broadcastId, resp.Content )on purpose: it is the assertion that separates a duplicate from an update against the fake server.🤖 Generated with Claude Code
Summary by cubic
Adds the ability to duplicate a broadcast through the .NET SDK and the deprecated CLI, porting the Node SDK's
resend.broadcasts.duplicate(id).Changes
BroadcastDuplicateAsynctoIResendandResendClient, callingPOST /broadcasts/{id}/duplicate.broadcast duplicateCLI command.Written for commit c8c6332. Summary will update on new commits.