gmail.users.threads.get
Retrieve a specific Gmail thread by ID and return its messages as JSON in full, metadata, or minimal format for thread inspection.
Instructions
Gets the specified thread. For more information, see Manage threads [HTTP GET]. Returns the requested resource as JSON — request bodies are built from the typed parameters (typed flags win over the params map), or read whole from body_file Siblings over the same resource: delete, list, modify, trash, untrash.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | [URL path segment] The ID of the thread to retrieve. | |
| query | No | Extra KEY=VALUE query pairs for endpoints whose parameters Discovery does not describe. | |
| format | No | [query parameter] The format to return the messages in. Values: `full` = Returns the full email message data with body content parsed in the `payload` field; the `raw` field is not used. Format cannot be used when accessing the api using the gmail.metadata scope.; `metadata` = Returns only email message IDs, labels, and email headers.; `minimal` = Returns only email message IDs and labels; does not return the email headers, body, or payload.. | full |
| params | No | Parameter map merged into the request; typed parameters win. | |
| userId | Yes | [URL path segment] The user's email address. The special value `me` can be used to indicate the authenticated user. | me |
| dry_run | No | Return the request that would be sent, without sending it. | |
| body_file | No | Read the request body from this file ('-' for stdin) instead of building one from the parameters. | |
| metadataHeaders | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| snippet | No | ||
| messages | No | ||
| historyId | No |