List email threads from the mailbox

GET {{baseUrl}}/emails/mailboxes/:email/threads?includeSpamTrash=false&labelIds=<string>&maxResults=<string>&pageToken=<string>&q=<string>

Lists the threads in the mailbox.

Scopes: mail:read

Rate Limit Label : MEDIUM

Not supported in Gov cluster

Request Params

| Key | Datatype | Required | Description | | includeSpamTrash | boolean | | Whether or not to include threads from SPAM and TRASH folders in the results. | | labelIds | string | | Only return threads with message labels that match all of the specified label IDs in this query parameter. | | maxResults | string | | Maximum number of threads to return. It defaults to 50. The maximum allowed value for this parameter is 500. | | pageToken | string | | Page token to retrieve a specific page of results in the list. | | q | string | | Only return threads matching the specified elastic search query. |

HEADERS

| Key | Datatype | Required | Description | | Accept | string | | |

RESPONSES

status: OK

{&quot;threads&quot;:[{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;snippet&quot;:&quot;\u003cstring\u003e&quot;,&quot;historyId&quot;:&quot;\u003cstring\u003e&quot;,&quot;threadName&quot;:&quot;\u003cstring\u003e&quot;,&quot;status&quot;:&quot;normal&quot;},{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;snippet&quot;:&quot;\u003cstring\u003e&quot;,&quot;historyId&quot;:&quot;\u003cstring\u003e&quot;,&quot;threadName&quot;:&quot;\u003cstring\u003e&quot;,&quot;status&quot;:&quot;normal&quot;}],&quot;nextPageToken&quot;:&quot;\u003cstring\u003e&quot;,&quot;resultSizeEstimate&quot;:&quot;\u003cinteger\u003e&quot;}