Gmail integration guide
VerifiedHow to connect Gmail to WEXTL and use its 1 trigger and 20 actions in your workflows. About Gmail: Email service from Google to send, read, organize and search messages, threads and drafts.
- 1 trigger
- 6 searches
- 14 actions
- Polling
- Auth: OAuth
AI-assisted documentation8 min read
This documentation is compiled from our integration source code, internal specs for Gmail, its official API documentation and anonymized requests logs we collect from our support team[2].
Requirements
Get your Gmail credentials
You’ll be redirected to sign in and approve access. Your password is never shared with WEXTL.
- Client IDtext
Optional. Your own OAuth Client ID from Google Cloud Console (enable the API, then Credentials → OAuth client). Leave empty to use the platform app.[1]
- Client Secretpassword
Optional. Client Secret for the same OAuth client. Leave empty to use the platform app.[1]
- Additional Scopesarray
Optional. Extra Google OAuth scopes to request on top of the default ones, one full scope URL per item (for example https://www.googleapis.com/auth/drive). Duplicates of the default scopes are ignored. Use this with your own Client ID, and enable the same scopes on its OAuth consent screen.[1]
Integration requests 1 permission:
https://mail.google.com/
Connect Gmail in WEXTL
- Log in to your WEXTL account, add the Gmail node module to your workflow, and click Create new credential.
- Optional: In the Credential name field, enter a name for the credential.
- Enter the authentication credentials you copied from your Gmail account, or follow the on-screen instructions to create the credential.
- If prompted, authenticate your account and confirm access.
- If you want to make changes to your credential in the future, follow the steps in Manage credentials →

Gmail triggers and actions on WEXTL
The list below is a reference of every Gmail node module the integration supports. You will be able to pick any of them on the workflow canvas while building automations.
Open any Gmail node module below to inspect its input parameters, outputs, and connection requirements.
Watch Email Messages
TriggerPolls your mailbox and emits each new email message.
| Field | Type |
|---|---|
| ID | text |
| Thread ID | text |
| Label ids | array |
| Snippet | text |
| History ID | text |
| Internal date | date |
| Payload | object |
| Part ID | text |
| Mime type | text |
| Filename | text |
| Headers | array |
| Body | object |
| Parts | array |
| Size estimate | number |
| Raw | text |
| Classification label values | array |
| Subject | text |
| From | text |
| To | text |
| Cc | text |
| Bcc | text |
| Reply-To | text |
| Date header | text |
| Text content | text |
| HTML content | text |
| Attachments | array |
List Draft Emails
SearchDraft emails narrowed with a Gmail-style search query.
| Field | Type |
|---|---|
| Query | text |
| Include Spam and Trash | boolean |
| Limit | number |
| Field | Type |
|---|---|
| ID | text |
| Message | object |
| ID | text |
| Thread ID | text |
| Label ids | array |
| Snippet | text |
| History ID | text |
| Internal date | date |
| Payload | object |
| Size estimate | number |
| Raw | text |
| Classification label values | array |
List Messages
SearchMailbox messages filtered by a search query or labels.
| Field | Type |
|---|---|
| Query | text |
| Label IDs | choice |
| Include Spam and Trash | boolean |
| Limit | number |
| Field | Type |
|---|---|
| ID | text |
| Thread ID | text |
| Label ids | array |
| Snippet | text |
| History ID | text |
| Internal date | date |
| Payload | object |
| Part ID | text |
| Mime type | text |
| Filename | text |
| Headers | array |
| Body | object |
| Parts | array |
| Size estimate | number |
| Raw | text |
| Classification label values | array |
List Threads
SearchThreads with a snippet and the messages inside each.
| Field | Type |
|---|---|
| Query | text |
| Label IDs | choice |
| Include Spam and Trash | boolean |
| Limit | number |
| Field | Type |
|---|---|
| ID | text |
| Snippet | text |
| History ID | text |
| Messages | array |
Retrieve a Draft Email
ActionDraft email returned in your chosen format.
| Field | Type |
|---|---|
IDRequired | choice |
FormatRequired | choice |
| Field | Type |
|---|---|
| ID | text |
| Message | object |
| ID | text |
| Thread ID | text |
| Label ids | array |
| Snippet | text |
| History ID | text |
| Internal date | date |
| Payload | object |
| Size estimate | number |
| Raw | text |
| Classification label values | array |
Retrieve a Thread
ActionConversation thread that lists its snippet and messages.
| Field | Type |
|---|---|
IDRequired | choice |
FormatRequired | choice |
| Field | Type |
|---|---|
| ID | text |
| Snippet | text |
| History ID | text |
| Messages | array |
Retrieve an Email Message
ActionThe headers, body text and attachments of a message in one record.
| Field | Type |
|---|---|
IDRequired | choice |
| Field | Type |
|---|---|
| ID | text |
| Thread ID | text |
| Label ids | array |
| Snippet | text |
| History ID | text |
| Internal date | date |
| Payload | object |
| Part ID | text |
| Mime type | text |
| Filename | text |
| Headers | array |
| Body | object |
| Parts | array |
| Size estimate | number |
| Raw | text |
| Classification label values | array |
| Subject | text |
| From | text |
| To | text |
| Cc | text |
| Bcc | text |
| Reply-To | text |
| Date header | text |
| Text content | text |
| HTML content | text |
| Attachments | array |
Batch Delete Email Messages
ActionRemoves several email messages by ID in one request.
| Field | Type |
|---|---|
Message IDsRequired | choice |
Create a Draft Email
ActionSaves an email draft and returns its ID and message.
| Field | Type |
|---|---|
Email ContentRequired | text |
Recipient EmailRequired | |
Sender EmailRequired | |
Email SubjectRequired | text |
| Field | Type |
|---|---|
| ID | text |
| Message | object |
| ID | text |
| Thread ID | text |
| Label ids | array |
| Snippet | text |
| History ID | text |
| Internal date | date |
| Payload | object |
| Size estimate | number |
| Raw | text |
| Classification label values | array |
Delete a Draft Email
ActionRemoves a single draft email from your mailbox.
| Field | Type |
|---|---|
IDRequired | choice |
Delete a Thread
ActionRemoves a conversation from your mailbox.
| Field | Type |
|---|---|
IDRequired | choice |
Delete an Email Message
ActionRemoves one message from your mailbox by its ID.
| Field | Type |
|---|---|
IDRequired | choice |
Make an API Call
universalCustom Gmail REST API request.
| Field | Type |
|---|---|
URLRequired | text |
MethodRequired | choice |
| Headers | array |
| Header | object |
| Query String | array |
| Parameter | object |
| Body | text |
| Field | Type |
|---|---|
| Body | text |
| Headers | object |
| Status code | number |
Send a Draft Email
ActionSends a saved draft and returns the message it created.
| Field | Type |
|---|---|
IDRequired | choice |
| Field | Type |
|---|---|
| ID | text |
| Thread ID | text |
| Label ids | array |
| Snippet | text |
| History ID | text |
| Internal date | date |
| Payload | object |
| Part ID | text |
| Mime type | text |
| Filename | text |
| Headers | array |
| Body | object |
| Parts | array |
| Size estimate | number |
| Raw | text |
| Classification label values | array |
Send an Email Message
ActionComposes a new email and sends it right away.
| Field | Type |
|---|---|
ToRequired | |
FromRequired | |
SubjectRequired | text |
Email ContentRequired | text |
| Field | Type |
|---|---|
| ID | text |
| Thread ID | text |
| Label ids | array |
| Snippet | text |
| History ID | text |
| Internal date | date |
| Payload | object |
| Part ID | text |
| Mime type | text |
| Filename | text |
| Headers | array |
| Body | object |
| Parts | array |
| Size estimate | number |
| Raw | text |
| Classification label values | array |
Trash a Message
ActionPuts an email message into the trash.
| Field | Type |
|---|---|
IDRequired | choice |
| Field | Type |
|---|---|
| ID | text |
| Thread ID | text |
| Label ids | array |
| Snippet | text |
| History ID | text |
| Internal date | date |
| Payload | object |
| Part ID | text |
| Mime type | text |
| Filename | text |
| Headers | array |
| Body | object |
| Parts | array |
| Size estimate | number |
| Raw | text |
| Classification label values | array |
Trash a Thread
ActionMoves an entire thread to the trash in one step.
| Field | Type |
|---|---|
IDRequired | choice |
| Field | Type |
|---|---|
| ID | text |
| Snippet | text |
| History ID | text |
| Messages | array |
Untrash a Message
ActionReverses a trash action on one email message.
| Field | Type |
|---|---|
IDRequired | choice |
| Field | Type |
|---|---|
| ID | text |
| Thread ID | text |
| Label ids | array |
| Snippet | text |
| History ID | text |
| Internal date | date |
| Payload | object |
| Part ID | text |
| Mime type | text |
| Filename | text |
| Headers | array |
| Body | object |
| Parts | array |
| Size estimate | number |
| Raw | text |
| Classification label values | array |
Untrash a Thread
ActionClears one conversation from the trash.
| Field | Type |
|---|---|
IDRequired | choice |
| Field | Type |
|---|---|
| ID | text |
| Snippet | text |
| History ID | text |
| Messages | array |
Update a Draft Email
ActionRewrites an existing draft email using new address, subject and body values.
| Field | Type |
|---|---|
IDRequired | choice |
| Raw Message | text |
Recipient EmailRequired | |
Sender EmailRequired | |
Email SubjectRequired | text |
Email ContentRequired | text |
| Field | Type |
|---|---|
| ID | text |
| Message | object |
| ID | text |
| Thread ID | text |
| Label ids | array |
| Snippet | text |
| History ID | text |
| Internal date | date |
| Payload | object |
| Size estimate | number |
| Raw | text |
| Classification label values | array |
Templates
Look for Gmail templates in the WEXTL template library.
Browse templates →Other communication integrations on WEXTL
Cisco Webex[2]Cisco Webex Messaging and Meetings, with rooms, messages, teams, people, meetings, recordings, transcripts and registrants.
BlueskyOpen social network built on the AT Protocol.
AircallBusiness phone system for teams, with calls, messages, and AI notes.
AWS SQSSend, receive, and manage messages on Amazon SQS queues.
ClickSendSend SMS, email, and voice messages through ClickSend.
References
- WEXTL® Gmail Source Code connector implementation.
- Our users use cases and automations.
- Official API Documentation for Gmail.
- WEXTL® visual workflow builder data.
Last updated: Nov 29, 2026 17:02
How we write our apps documentation
How we compile these docs: sources, the role of AI, and how we verify.




















