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

KeyDatatypeRequiredDescription
includeSpamTrashbooleanWhether or not to include threads from SPAM and TRASH folders in the results.
labelIdsstringOnly return threads with message labels that match all of the specified label IDs in this query parameter.
maxResultsstringMaximum number of threads to return. It defaults to 50. The maximum allowed value for this parameter is 500.
pageTokenstringPage token to retrieve a specific page of results in the list.
qstringOnly return threads matching the specified elastic search query.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

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;}