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 |
|
Immediately and permanently deletes the specified thread. |
|
Gets the specified thread. |
|
Lists the threads in the user's mailbox. |
|
Modifies the labels applied to the thread. |
|
Moves the specified thread to the trash. |
|
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 2024-09-04 UTC.
[null,null,["Last updated 2024-09-04 UTC."],[[["A Thread is a collection of messages forming a conversation, identified by a unique ID and containing a snippet of the message text."],["Threads contain metadata such as `snippet`, `historyId`, and a list of messages."],["You can manage Threads using methods like `delete`, `get`, `list`, `modify`, `trash`, and `untrash` to perform actions such as retrieving, modifying, or deleting them."]]],["Threads represent message collections in a conversation. Key details include a unique `id`, a `snippet` of text, the `historyId` of modifications, and an array of `messages`. Threads can be managed via methods to get thread information, list all threads, modify labels, and delete, trash, or untrash them. The thread's JSON representation shows the structure of the information, with string fields for identification and metadata and an array of messages.\n"]]