App Logo
mail.google.com

Get Gmail thread

Read a Gmail thread by its hex threadId (as returned by search_emails): subject plus every rendered message's from, fromEmail, to, date, plain-text body and attachment names. In long threads Gmail collapses older messages, so only rendered (expanded) messages are returned.

Input

threadId required

Hex legacy thread id, e.g. "19f2817451c27480". Must belong to the account being read — an id from another mailbox, or a deleted thread, is refused rather than waited out.

account optional

Google account email to act as (authuser=). Without it Gmail picks u/0, which is NOT deterministic when several accounts share the browser's cookie jar.

Output

n required
subject required
messages required
threadId required

Start building not clicking