AgentMail icon

AgentMail

Email API for AI Agents - Create inboxes, send/receive emails, and more

Actions13

Thread → List

AI-generated

Summary

Lists email threads in the selected AgentMail inbox, returning each thread as an n8n item. Choose whether to fetch all available results or cap the result count.

Inputs

  • Inbox Name or ID (required) — Select an inbox or provide its ID using an expression.
  • Return All — When enabled, fetches threads across pages, up to 100 pages. When disabled, returns up to the specified Limit.
  • Limit — Maximum number of threads to return when Return All is disabled; defaults to 50.

Output shape

A list of items, one per thread, containing the thread data returned by the API.

Fetches pages of up to 100 threads from the selected inbox. Return All stops when there are no more pages or after 100 pages; otherwise the list is capped at Limit.

Links

Discussion