Move email
Move a Gmail message between labels, e.g. add Processed and remove INBOX.
Command in the Google Workspace toolkit · id ooa.google/gmail_move_message · 6 inputs (2 required), 1 output
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Access token | Credential | Yes | Google OAuth access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token. | |
| Message ID | String | Yes | Gmail message id from List Gmail messages. | |
| Add labels | Any | No | Label name(s) or id(s) to add: text separated by , or a List. | |
| Remove labels | Any | No | INBOX | Label name(s) or id(s) to remove; INBOX by default, which archives the message. |
| Keep other labels | Boolean | No | true | When false, every label except the added ones and the read, starred and important marks is removed. |
| Endpoint address | String | No | Replaces https://*.googleapis.com for testing or a proxy; leave empty normally. |
Outputs
| Output | Type | What it is |
|---|---|---|
| labels | List | Label ids the message has afterwards. |