Skip to main content

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​

InputTypeRequiredDefaultWhat it is
Access tokenCredentialYesGoogle OAuth access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token.
Message IDStringYesGmail message id from List Gmail messages.
Add labelsAnyNoLabel name(s) or id(s) to add: text separated by , or a List.
Remove labelsAnyNoINBOXLabel name(s) or id(s) to remove; INBOX by default, which archives the message.
Keep other labelsBooleanNotrueWhen false, every label except the added ones and the read, starred and important marks is removed.
Endpoint addressStringNoReplaces https://*.googleapis.com for testing or a proxy; leave empty normally.

Outputs​

OutputTypeWhat it is
labelsListLabel ids the message has afterwards.