Skip to content

feat: add BroadcastListRecipientsAsync method - #145

Merged
dielduarte merged 2 commits into
mainfrom
feat/broadcasts-recipients
Aug 24, 2026
Merged

feat: add BroadcastListRecipientsAsync method#145
dielduarte merged 2 commits into
mainfrom
feat/broadcasts-recipients

Conversation

@dielduarte

@dielduarte dielduarte commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Adds BroadcastListRecipientsAsync for GET /broadcasts/{id}/recipients, plus a matching CLI command.

Spec: resend/resend-openapi#97
Node reference: resend/resend-node#1078

Tests: 192/192. Build clean.


Summary by cubic

Adds an API and CLI to list a broadcast’s recipients by event type. Previously clients couldn’t fetch recipients; now they can paginate and filter by email or bounce type with event-specific details, without breaking existing behavior.

  • Adds BroadcastListRecipientsAsync(Guid broadcastId, BroadcastRecipientEventType type, BroadcastListRecipientsQuery? query) returning PaginatedResult; introduces enums/models for event types, bounce types, clicked links, and per-recipient counts for opened/clicked.
  • Validates bounce-type usage: the client rejects BounceType unless type is Bounced; the CLI enforces the same.
  • Adds CLI subcommand: resend broadcast recipients with --email, --bounce-type, --limit, --before, --after, --json; JSON output is a proper array and table cells are escaped.
  • Extends the fake API server for GET /broadcasts/{id}/recipients (NotFound for Guid.Empty) and covers the endpoint with tests.

Written for commit 234cc5d. Summary will update on new commits.

Review in cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 11 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread tools/Resend.Cli/Broadcast/BroadcastListRecipientsCommand.cs Outdated
Comment thread tools/Resend.Cli/Broadcast/BroadcastListRecipientsCommand.cs Outdated
Comment thread src/Resend/ResendClient.cs
Comment thread tests/Resend.Tests/ResendClientTests.cs

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0 issues found across 3 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.

Re-trigger cubic

@dielduarte
dielduarte marked this pull request as ready for review August 22, 2026 02:08
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.

2 participants