Skip to main content

threads

Overview

Namethreads
TypeResource
Idgoogleworkspace.gmail.threads

Fields

NameDatatypeDescription
idstringThe unique ID of the thread.
historyIdstringThe ID of the last history record that modified this thread.
messagesarrayThe list of messages in the thread.
snippetstringA short part of the message text.

Methods

NameAccessible byRequired ParamsDescription
users_threads_getSELECTid, userIdGets the specified thread.
users_threads_listSELECTuserIdLists the threads in the user's mailbox.
users_threads_deleteDELETEid, userIdImmediately and permanently deletes the specified thread. Any messages that belong to the thread are also deleted. This operation cannot be undone. Prefer threads.trash instead.
users_threads_modifyEXECid, userIdModifies the labels applied to the thread. This applies to all messages in the thread.
users_threads_trashEXECid, userIdMoves the specified thread to the trash. Any messages that belong to the thread are also moved to the trash.
users_threads_untrashEXECid, userIdRemoves the specified thread from the trash. Any messages that belong to the thread are also removed from the trash.