Trash Message

gmail.trash
ActionEmailconnection required

Calls the Gmail API messages.trash.

Move a Gmail message to the trash (recoverable for 30 days).

Connection

Required
Yes — the node will not save without one
Auth type
OAuth 2.0
Providers
Gmail
Secret shape
{"client_id", "client_secret", "refresh_token"}
Resolved by
config.connection_id, else node.connection_id

Configuration

1 field, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
message_id
Gmail message id. Supports {{ }}.
stringYes———

Output

One shape.

message

FieldTypeExample
ok
boolean—
message_id
string—
label_ids
Labels after the move (includes TRASH).
array—
{
  "label_ids": [],
  "message_id": "",
  "ok": false
}

See Trash Message run in a workflow.

In a technical demo we add the Gmail connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.