feat: add BroadcastCancelAsync method - #136
Merged
Merged
Conversation
Cancels a queued or scheduled broadcast via POST /broadcasts/:id/cancel, mirroring EmailCancelAsync's shape (no body). Adds the CLI subcommand and fake-server route to match the existing broadcast operations. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
There was a problem hiding this comment.
No issues found across 6 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Requires human review: Adds a new public API method and CLI command for cancelling broadcasts, expanding the client's public contract and surface area; a human should review the API design and semantics.
Re-trigger cubic
4 tasks
dielduarte
marked this pull request as ready for review
August 11, 2026 12:08
This was referenced Aug 11, 2026
felipefreitag
approved these changes
Aug 11, 2026
This was referenced Aug 18, 2026
This was referenced Aug 26, 2026
This was referenced Sep 4, 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.
Summary
IResend.BroadcastCancelAsync(broadcastId), callingPOST /broadcasts/:id/cancelto cancel a queued or scheduled broadcast, mirroringEmailCancelAsync's shape (no body).resend broadcast cancel <id>CLI subcommand, matching the existingbroadcast delete/broadcast sendcommands.Resend.ApiServertest server and aBroadcastCanceltest inResendClientTests.Part of the broadcast cancel rollout: resend/resend-monorepo#8126, resend/resend-openapi#85, resend/resend-node#1059, resend/resend-docs#1722, resend/resend-go#144, resend/resend-java#122, resend/resend-php#135, resend/resend-python#250, resend/resend-ruby#216, resend/resend-rust#91.
Test plan
dotnet test tests/Resend.Tests— 8/8 broadcast tests passing, including newBroadcastCanceldotnet build resend-dotnet.sln -warnaserror:CS1591(full 18-project solution, including CLI) — clean🤖 Generated with Claude Code
Summary by cubic
Adds broadcast cancel support so users can stop a queued or scheduled broadcast before it sends. Includes a new client method and a matching CLI command.
IResend.BroadcastCancelAsync(broadcastId)calling POST/broadcasts/:id/cancel(no body), mirroringEmailCancelAsync.resend broadcast cancel <id>.BroadcastCanceltest.Written for commit 244e833. Summary will update on new commits.