Label email message

org.intentschema.communication.email.message.label.v1

JSON: bare · @sha256:29dabbdfe1b0…
Hash: sha256:29dabbdfe1b0858957e52ccbc025c906a208480dd9adedae07f1d1ae6a2036eb

Adds or removes labels (Gmail) or categories (Outlook) on an existing email message. Label identifiers are provider-specific strings.

Payload

FieldTypeDescription
target *Target (required: external_id)
object *object
idempotency_keystring
object
FieldTypeDescription
addstring[]Label identifiers to add.
removestring[]Label identifiers to remove.

Result

FieldTypeDescription
external_idstring
labelsstring[]Label set after the operation.
updated_atstring (date-time)

Examples

add one label

{
  "target": {
    "system": "gmail",
    "external_id": "msg_abc123"
  },
  "object": {
    "add": [
      "Label_9"
    ]
  }
}

add and remove labels

{
  "target": {
    "system": "gmail",
    "external_id": "msg_abc123"
  },
  "object": {
    "add": [
      "Label_5"
    ],
    "remove": [
      "Label_2"
    ]
  }
}

Profiles