Skip to content

feat(receiving): filter listed received emails by recipient and date - #325

Merged
isabellaaquino merged 1 commit into
mainfrom
feature/mes-2916-sdks-add-to-start_date-end_date-filters-to
Nov 25, 2026
Merged

isabellaaquino merged 1 commit into
mainfrom
feature/mes-2916-sdks-add-to-start_date-end_date-filters-to

Conversation

@isabellaaquino

@isabellaaquino isabellaaquino commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Adds optional to, start_date and end_date filters to resend.Emails.Receiving.list and list_async.

emails = resend.Emails.Receiving.list({
    "to": ["support@acme.com", "billing@acme.com"],
    "start_date": "2026-11-01",
    "end_date": "2026-11-15T12:00:00Z",
    "limit": 25,
})
  • to takes up to 20 addresses and matches any of them exactly (case-sensitive). It is sent as one comma-joined to param.
  • start_date and end_date take an ISO 8601 date or timestamp (UTC without an offset). A bare end_date covers the whole day. Pagination (limit, after, before) works as before.
  • Mirrors the naming, typing and query building of Inboxes.Threads.search.

API: resend/resend-monorepo#13763 and resend/resend-monorepo#14432 (behind the api-filtering team flag)
Node SDK: resend/resend-node#1202
Linear: MES-2916


Summary by cubic

Adds optional to, start_date, and end_date filters to resend.Emails.Receiving.list and list_async, implementing the query params added to the API behind the api-filtering flag (MES-2916), and bumps the version to 2.56.0.

  • to accepts up to 20 addresses, matches any of them exactly and case-sensitively, and is sent as a single comma-joined parameter.
  • start_date and end_date accept ISO 8601 dates or UTC timestamps; a bare date for end_date covers the whole day.
  • Query building now reuses build_inbox_query_path from resend.inboxes._query, mirroring Inboxes.Threads.search. Pagination (limit, after, before) behaves as before, and unset filters are omitted from the request.

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

View guided diff

@klotty klotty 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.

cubic analysis

No issues found across 3 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Linked issue analysis

Linked issue: MES-2916: SDKs: add to, start_date, end_date filters to emails.receiving.list

Status Acceptance criteria Notes
✅ Add optional recipient and date filters to receiving lists ListParams includes all three filters, and both list methods pass them to the shared query builder.
✅ Serialize filters using the specified query parameter names Tests verify the comma-joined to value and the start_date and end_date parameters in sync and async requests.

Auto-approved: Adds optional recipient/date filters to Emails.Receiving.list/list_async by reusing the existing query-path builder; unset filters are omitted and tests pin the new query strings. The change is additive and preserves existing pagination behavior.

View guided diff | Re-trigger cubic

@isabellaaquino
isabellaaquino force-pushed the feature/mes-2916-sdks-add-to-start_date-end_date-filters-to branch from 14128a8 to e70a882 Compare November 25, 2026 21:34

@klotty klotty 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 1 file (changes from recent commits).

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Auto-approved: Adds optional recipient and date filters to Emails.Receiving.list/list_async by reusing the existing inbox query-path builder; tests pin the new query strings and unset filters are omitted, keeping pagination unchanged.

View guided diff | Re-trigger cubic

@isabellaaquino
isabellaaquino merged commit 704b382 into main Nov 25, 2026
25 checks passed
@isabellaaquino
isabellaaquino deleted the feature/mes-2916-sdks-add-to-start_date-end_date-filters-to branch November 25, 2026 22:41
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.

3 participants