Move email message

org.intentschema.communication.email.message.move.v1

JSON: bare · @sha256:edc5c972b91e…
Hash: sha256:edc5c972b91ec36cca8f3002c2d43518a6858f435bfc42b4c2cc9f6b23753230

Moves an email message to a different folder (IMAP/Outlook) or changes its label set (Gmail).

Payload

FieldTypeDescription
target *Target (required: external_id)
object *object
idempotency_keystring
object
FieldTypeDescription
destinationstringProvider-specific folder identifier or label. Service profiles refine this (e.g., Gmail labelIds, Outlook folderId).
add_labelsstring[]
remove_labelsstring[]

Result

FieldTypeDescription
external_idstring
updated_atstring (date-time)

Examples

Gmail label add/remove

{
  "target": {
    "system": "gmail",
    "external_id": "msg_abc123"
  },
  "object": {
    "add_labels": [
      "Label_5"
    ],
    "remove_labels": [
      "INBOX"
    ]
  }
}

Outlook folder move

{
  "target": {
    "system": "ms_graph",
    "external_id": "AAMk..."
  },
  "object": {
    "destination": "archive"
  }
}

Profiles