Fluxmail

get_email_body

Read a bounded portion of one email body. Use nextOffset to continue.

Read a bounded portion of one email body. Use nextOffset to continue.

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.
messageIdYesstringMinimum length: 1. Maximum length: 512.
bodyFormatYestext or htmlThe body part to read
offsetNointeger or nullMinimum: 0.
maxCharsNointeger or nullMinimum: 1. Maximum: 50000.
{
  "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"
        }
      ]
    },
    "messageId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 512
    },
    "bodyFormat": {
      "type": "string",
      "enum": [
        "text",
        "html"
      ],
      "description": "The body part to read"
    },
    "offset": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0
        },
        {
          "type": "null"
        }
      ]
    },
    "maxChars": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 1,
          "maximum": 50000
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "messageId",
    "bodyFormat"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

Last updated

On this page