Skip to content

feat(broadcasts): add recipients command - #369

Draft
dielduarte wants to merge 1 commit into
mainfrom
feat/broadcasts-recipients
Draft

feat(broadcasts): add recipients command#369
dielduarte wants to merge 1 commit into
mainfrom
feat/broadcasts-recipients

Conversation

@dielduarte

@dielduarte dielduarte commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Adds `resend broadcasts recipients ` for GET /broadcasts/{id}/recipients.

Tests: 1114 passed. Lint/typecheck clean.


Summary by cubic

Adds a new CLI command to list a broadcast’s recipients by event type. Previously you couldn’t inspect recipients from the CLI; now resend broadcasts recipients <id> fetches recipients with filters and pagination, using resend 6.22.0.

  • Requires --type (one of: sent, delivered, opened, clicked, bounced, complained, unsubscribed, suppressed); optional --email filter and --bounce-type (only for bounced).
  • Supports --limit (1–100, default 20), --after, and --before. Interactive mode prints a table and pagination hints; non-interactive outputs the JSON list.
  • Documents the command in skills/resend-cli/references/broadcasts.md and adds tests for flag validation, pagination, and SDK error handling.
  • Notes: responses may be cached for up to 15 minutes; upgrade to resend 6.22.0 enables broadcasts.recipients().

Written for commit e89e9d9. Summary will update on new commits.

Review in cubic

List a broadcast's recipients filtered by event type (sent, delivered,
opened, clicked, bounced, complained, unsubscribed, suppressed), with
optional email substring and bounce-type filters plus cursor pagination.

Bumps the resend dependency to 6.22.0, which introduces
broadcasts.recipients().
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.

1 participant