Resend icon

Resend

Send emails, manage contacts, create broadcasts, handle templates, domains, segments, topics, and webhooks using the Resend email platform

Inbox Thread → Search

AI-generated

Summary

Search inbox threads within a specified inbox by querying their subject, body, sender, recipients, and attachment names, using various optional filters to refine the search results.

Inputs

  • Authentication — Choose between API Key or OAuth2 authentication for accessing the Resend API.
  • Inbox (required) — Select or specify the inbox ID or email address to search threads within.
  • Query — Enter free text to search in subject, body, sender, recipients, and attachment names; supports multiple words, exact phrases with double quotes, and exclusion with the - prefix.
  • Return All — Decide whether to return all matching results or limit the output to a specified count.
  • Limit — Maximum number of threads to return when 'Return All' is false.
  • Filters — Optional parameters allowing filtering by BCC, CC, start and end dates, folders (e.g., Inbox, Archive, Sent, Spam, Trash), sender, recipient, attachment presence, labels, and read state.

Output shape

a list of inbox threads matching the search criteria

The results include thread metadata matching the query and applied filters. Pagination is handled internally if 'Return All' is enabled; otherwise, results are limited by the 'Limit' parameter.

Examples

Example 1: Search within the 'inbox1' inbox for threads that mention 'invoice' but exclude drafts, returning up to 20 threads

Inbox set to 'inbox1', Query set to 'invoice -draft', Return All set to false, Limit set to 20

Links

Discussion