gmail.untrashMessages restores messages still present in Trash.
Example
Restore up to 100 trashed messages from a trusted sender:Inputs
Inputs accept compatible signals.
Output
Returns aSignal<Array<{ messageId: string; threadId: string; historyId?: string; labelIds: string[] }>> with each message’s updated metadata in input order.
The returned
labelIds are the source of truth for the message’s placement after Gmail restores it. The action can’t recover a message that Gmail has already deleted permanently.