feat(receiving): filter listed received emails by recipient and date
Merged
IS
3d ago+80+80+01234567890123456789-9-9-0123456789
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,
})
totakes up to 20 addresses and matches any of them exactly (case-sensitive). It is sent as one comma-joinedtoparam.start_dateandend_datetake an ISO 8601 date or timestamp (UTC without an offset). A bareend_datecovers 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.
toaccepts up to 20 addresses, matches any of them exactly and case-sensitively, and is sent as a single comma-joined parameter.start_dateandend_dateaccept ISO 8601 dates or UTC timestamps; a bare date forend_datecovers the whole day.- Query building now reuses
build_inbox_query_pathfromresend.inboxes._query, mirroringInboxes.Threads.search. Pagination (limit,after,before) behaves as before, and unset filters are omitted from the request.