REST Resource: users.threads

Resource: Thread

A collection of messages representing a conversation.

JSON representation
{
 "id": string,
 "snippet": string,
 "historyId": string,
 "messages": [
 {
 object (Message )
 }
 ]
}
Fields
id

string

The unique ID of the thread.

snippet

string

A short part of the message text.

historyId

string

The ID of the last history record that modified this thread.

messages[]

object (Message )

The list of messages in the thread.

Methods

delete

Immediately and permanently deletes the specified thread.

get

Gets the specified thread.

list

Lists the threads in the user's mailbox.

modify

Modifies the labels applied to the thread.

trash

Moves the specified thread to the trash.

untrash

Removes the specified thread from the trash.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年03月24日 UTC.