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.