Fluxmail

Trash emails

Move messages to the trash, where they can be restored until the provider empties it.

trash_emails

Move messages to the trash, where they can be restored until the provider empties it.

Permissions

Required capabilities: mail.trash.

Inputs

NameRequiredTypeDetails
accountIdNostring or nullAccount to operate on. Optional when exactly one account is connected. Minimum length: 1.
messageIdsYesarray of stringMessages to change, up to 100 distinct IDs
{
  "type": "object",
  "properties": {
    "accountId": {
      "anyOf": [
        {
          "type": "string",
          "minLength": 1
        },
        {
          "type": "null"
        }
      ],
      "description": "Account to operate on. Optional when exactly one account is connected."
    },
    "messageIds": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      },
      "minItems": 1,
      "description": "Messages to change, up to 100 distinct IDs"
    }
  },
  "required": [
    "messageIds"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Last updated

On this page