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
| Field | Type | Description |
target * | Target (required: external_id) | |
object * | object | |
idempotency_key | string | |
object
| Field | Type | Description |
destination | string | Provider-specific folder identifier or label. Service profiles refine this (e.g., Gmail labelIds, Outlook folderId). |
add_labels | string[] | |
remove_labels | string[] | |
Result
| Field | Type | Description |
external_id | string | |
updated_at | string (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