[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2024-09-05 UTC。"],[[["Lists all threads in a user's mailbox, including those in SPAM and TRASH if specified."],["Allows filtering threads by labels, search queries, and maximum results returned."],["Supports pagination for retrieving large lists of threads via `pageToken`."],["Requires authorization with specific Gmail scopes for access."],["Provides an estimate of the total number of results and thread details via the API response."]]],["This outlines how to list threads in a user's Gmail mailbox using the Gmail API. It uses a `GET` request to `https://gmail.googleapis.com/gmail/v1/users/{userId}/threads`. Required path parameter: `userId`. Optional query parameters: `maxResults`, `pageToken`, `q`, `labelIds[]`, `includeSpamTrash`. The request body is empty. The response includes a list of `threads`, `nextPageToken` for pagination, and `resultSizeEstimate`. Access requires specific authorization scopes.\n"]]