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

Merged
IS
3d ago
+80-9

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.