Gmail Integration

Gmail API Operations

Browse all 62 operations available for Gmail workflow automation.

communication

62 operations
ActionGMAIL_BATCH_DELETE_MESSAGES

Batch delete Gmail messages

Tool to permanently delete multiple Gmail messages in bulk, bypassing Trash with no recovery possible.

2 input
ActionGMAIL_BATCH_MODIFY_MESSAGES

Batch modify Gmail messages

Modify labels on multiple Gmail messages in one efficient API call.

4 input
ActionGMAIL_CREATE_FILTER

Create Gmail filter

Tool to create a new Gmail filter with specified criteria and actions.

3 input
ActionGMAIL_CREATE_PROMPT_POST

Create Prompt Post

Send a one-shot prompt to the Sanity Content Agent.

5 input
ActionGMAIL_CREATE_EMAIL_DRAFT

Create email draft

Creates a Gmail email draft.

10 input
ActionGMAIL_CREATE_LABEL

Create label

Creates a new label with a unique name in the specified user's Gmail account.

6 input
ActionGMAIL_DELETE_DRAFT

Delete Draft

Permanently deletes a specific Gmail draft using its ID with no recovery possible; verify the correct draftid and obtain explicit user confirmation before…

2 input
ActionGMAIL_DELETE_FILTER

Delete Gmail filter

Tool to permanently delete a Gmail filter by its ID.

2 input
ActionGMAIL_DELETE_LABEL

Delete label from account (permanent)

Permanently DELETES a user-created Gmail label from the account (not from a message).

2 input
ActionGMAIL_DELETE_MESSAGE

Delete message

Permanently deletes a specific email message by its ID from a Gmail mailbox; for userid, use 'me' for the authenticated user or an email address to which the…

2 input
ActionGMAIL_DELETE_THREAD

Delete thread

Tool to immediately and permanently delete a specified thread and all its messages.

2 input
ActionGMAIL_FETCH_MESSAGE_BY_THREAD_ID

Fetch Message by Thread ID

Retrieves messages from a Gmail thread using its threadid, where the thread must be accessible by the specified userid.

3 input
ActionGMAIL_FETCH_EMAILS

Fetch emails

Fetches a list of email messages from a Gmail account, supporting filtering, pagination, and optional full content retrieval.

9 input
ActionGMAIL_FETCH_MESSAGE_BY_MESSAGE_ID

Fetch message by message ID

Fetches a specific email message by its ID, provided the messageid exists and is accessible to the authenticated userid.

3 input
ActionGMAIL_FORWARD_MESSAGE

Forward email message

Forward an existing Gmail message to specified recipients, preserving original body and attachments.

6 input
ActionGMAIL_GET_AUTO_FORWARDING

Get Auto-Forwarding Settings

Tool to get the auto-forwarding setting for the specified account.

1 input
ActionGMAIL_GET_DRAFT

Get Draft

Retrieves a single Gmail draft by its ID.

3 input
ActionGMAIL_GET_ATTACHMENT

Get Gmail attachment

Retrieves a specific attachment by ID from a message in a user's Gmail mailbox, requiring valid message and attachment IDs.

4 input
ActionGMAIL_GET_FILTER

Get Gmail filter

Tool to retrieve a specific Gmail filter by its ID.

2 input
ActionGMAIL_SETTINGS_GET_IMAP

Get IMAP Settings

Retrieves the IMAP settings for a Gmail user account, including whether IMAP is enabled, auto-expunge behavior, expunge behavior, and maximum folder size.

1 input
ActionGMAIL_GET_LANGUAGE_SETTINGS

Get Language Settings

Tool to retrieve the language settings for a Gmail user.

1 input
ActionGMAIL_SETTINGS_GET_POP

Get POP settings

Tool to retrieve POP settings for a Gmail account.

1 input
ActionGMAIL_GET_PEOPLE

Get People

Retrieves either a specific person's details (using resourcename) or lists 'Other Contacts' (if othercontacts is true), with personfields specifying the data…

7 input
ActionGMAIL_GET_PROFILE

Get Profile

Retrieves Gmail profile information (email address, aggregate messagesTotal/threadsTotal, historyId) for a user.

1 input
ActionGMAIL_GET_VACATION_SETTINGS

Get Vacation Settings

Tool to retrieve vacation responder settings for a Gmail user.

1 input
ActionGMAIL_GET_CONTACTS

Get contacts

Fetches contacts (connections) for the authenticated Google account, allowing selection of specific data fields and pagination.

4 input
ActionGMAIL_GET_LABEL

Get label details

Gets details for a specified Gmail label.

2 input
ActionGMAIL_SETTINGS_SEND_AS_GET

Get send-as alias

Tool to retrieve a specific send-as alias configuration for a Gmail user.

2 input
ActionGMAIL_IMPORT_MESSAGE

Import message

Tool to import a message into the user's mailbox with standard email delivery scanning and classification.

6 input
ActionGMAIL_INSERT_MESSAGE

Insert message into mailbox

Tool to insert a message into the user's mailbox similar to IMAP APPEND.

4 input
ActionGMAIL_LIST_CSE_IDENTITIES

List CSE identities

Tool to list client-side encrypted identities for an authenticated user.

3 input
ActionGMAIL_LIST_CSE_KEYPAIRS

List CSE key pairs

Tool to list client-side encryption key pairs for an authenticated user.

3 input
ActionGMAIL_LIST_DRAFTS

List Drafts

Retrieves a paginated list of email drafts from a user's Gmail account.

4 input
ActionGMAIL_LIST_FILTERS

List Gmail filters

Tool to list all Gmail filters (rules) in the mailbox.

1 input
ActionGMAIL_LIST_HISTORY

List Gmail history

Tool to list Gmail mailbox change history since a known startHistoryId.

6 input
ActionGMAIL_LIST_LABELS

List Gmail labels

Retrieves all system and user-created labels for a Gmail account in a single unpaginated response.

2 input
ActionGMAIL_LIST_MESSAGES

List Gmail messages (Deprecated)

DEPRECATED: Use GMAILFETCHEMAILS instead.

6 input
ActionGMAIL_LIST_SMIME_INFO

List S/MIME configs

Lists S/MIME configs for the specified send-as alias.

2 input
ActionGMAIL_LIST_FORWARDING_ADDRESSES

List forwarding addresses

Tool to list all forwarding addresses for the specified Gmail account.

1 input
ActionGMAIL_LIST_SEND_AS

List send-as aliases

Lists the send-as aliases for a Gmail account, including the primary address and custom 'from' aliases.

1 input
ActionGMAIL_LIST_THREADS

List threads

Retrieves a list of email threads from a Gmail account, identified by userid (email address or 'me'), supporting filtering and pagination.

5 input
ActionGMAIL_ADD_LABEL_TO_EMAIL

Modify email labels

Adds and/or removes specified Gmail labels for a message; ensure messageid and all labelids are valid (use 'listLabels' for custom label IDs).

4 input
ActionGMAIL_MODIFY_THREAD_LABELS

Modify thread labels

Adds or removes specified existing label IDs from a Gmail thread, affecting all its messages; ensure the thread ID is valid.

4 input
ActionGMAIL_MOVE_TO_TRASH

Move to Trash

Moves an existing, non-deleted email message to the trash for the specified user.

2 input
ActionGMAIL_PATCH_LABEL

Patch Label

Patches the specified user-created label.

6 input
ActionGMAIL_PATCH_SEND_AS

Patch send-as alias

Tool to patch the specified send-as alias for a Gmail user.

8 input
ActionGMAIL_REPLY_TO_THREAD

Reply to email thread

Sends a reply within a specific Gmail thread using the original thread's subject; do not provide a custom subject as it will start a new conversation instead…

9 input
ActionGMAIL_SEARCH_PEOPLE

Search People

Searches contacts by matching the query against names, nicknames, emails, phone numbers, and organizations, optionally including 'Other Contacts'.

4 input
ActionGMAIL_SEND_DRAFT

Send Draft

Sends an existing draft email AS-IS to recipients already defined within the draft.

2 input
ActionGMAIL_SEND_EMAIL

Send Email

Sends an email via Gmail API using the authenticated user's Google profile display name.

10 input
ActionGMAIL_STOP_WATCH

Stop watch notifications

Tool to stop receiving push notifications for a Gmail mailbox.

1 input
ActionGMAIL_MOVE_THREAD_TO_TRASH

Trash thread

Moves the specified thread to the trash.

2 input
ActionGMAIL_UNTRASH_MESSAGE

Untrash Message

Tool to remove a message from trash in Gmail.

2 input
ActionGMAIL_UNTRASH_THREAD

Untrash thread

Tool to remove a thread from trash in Gmail.

2 input
ActionGMAIL_UPDATE_IMAP_SETTINGS

Update IMAP settings

Tool to update IMAP settings for a Gmail account.

5 input
ActionGMAIL_UPDATE_LABEL

Update Label

Tool to update the properties of an existing Gmail label.

6 input
ActionGMAIL_UPDATE_LANGUAGE_SETTINGS

Update Language Settings

Tool to update the language settings for a Gmail user.

2 input
ActionGMAIL_UPDATE_POP_SETTINGS

Update POP settings

Tool to update POP settings for a Gmail account.

3 input
ActionGMAIL_UPDATE_USER_ATTRIBUTES_VALUES

Update User Attributes Values

Update user attribute values for a resource.

4 input
ActionGMAIL_UPDATE_VACATION_SETTINGS

Update Vacation Settings

Tool to update vacation responder settings for a Gmail user.

9 input
ActionGMAIL_UPDATE_DRAFT

Update draft

Updates (replaces) an existing Gmail draft's content in-place by draft ID.

11 input
ActionGMAIL_UPDATE_SEND_AS

Update send-as alias

Tool to update a send-as alias for a Gmail user.

8 input

See Gmail in action: Trello

Where Gmail is used