Skip to Content
Fluxmail

get_thread

Read a page of messages in an email thread, with at most 50,000 body characters per page. In an IMAP mailbox, finding the replies means searching each folder. When that search runs out of time, the result has the messages found so far and incomplete is true.

Read a page of messages in an email thread, with at most 50,000 body characters per page. In an IMAP mailbox, finding the replies means searching each folder. When that search runs out of time, the result has the messages found so far and incomplete is true.

Permissions

Required capabilities: mail.read.

Inputs

NameRequiredTypeDetails
accountIdNostring or nullAccount to operate on. Optional when exactly one account is connected. Minimum length: 1. Maximum length: 512.
threadIdYesstringMinimum length: 1. Maximum length: 512.
pageSizeNointeger or nullMinimum: 1. Maximum: 25.
pageTokenNostring or nullMinimum length: 1. Maximum length: 1024.
bodyFormatNotext or html or both or none or nullNone
orderNooldest or newest or nulloldest (default) starts with the first message; newest starts with the latest message and pages back in time
{
  "type": "object",
  "properties": {
    "accountId": {
      "description": "Account to operate on. Optional when exactly one account is connected.",
      "anyOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 512
        },
        {
          "type": "null"
        }
      ]
    },
    "threadId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 512
    },
    "pageSize": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 1,
          "maximum": 25
        },
        {
          "type": "null"
        }
      ]
    },
    "pageToken": {
      "anyOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 1024
        },
        {
          "type": "null"
        }
      ]
    },
    "bodyFormat": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "text",
            "html",
            "both",
            "none"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "order": {
      "description": "oldest (default) starts with the first message; newest starts with the latest message and pages back in time",
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "oldest",
            "newest"
          ]
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "threadId"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Last updated

On this page