Skip to content

Integrations

Google resource: gmail users messages (2026-10-27)

11 Google SDK operations with complete input and response references.

Get started · Contract 2026-10-27

OperationTypeScriptPython
Deletes many messages by message ID. Provides no guarantees that messages were not already deleted or even existed at all.gmailUsersMessages.gmailUsersMessagesBatchDeletegmail_users_messages.gmail_users_messages_batch_delete
Modifies the labels and the Classification Label values on the specified messages. For administrators modifying messages for users in their organization, requests require authorization with a [service account](https://developers.google.com/identity/protocols/OAuth2ServiceAccount) that has [domain-wide delegation authority](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority) to impersonate users with the `https://www.googleapis.com/auth/gmail.modify.restricted` scope.gmailUsersMessages.gmailUsersMessagesBatchModifygmail_users_messages.gmail_users_messages_batch_modify
Immediately and permanently deletes the specified message. This operation cannot be undone. Prefer `messages.trash` instead.gmailUsersMessages.gmailUsersMessagesDeletegmail_users_messages.gmail_users_messages_delete
Gets the specified message.gmailUsersMessages.gmailUsersMessagesGetgmail_users_messages.gmail_users_messages_get
Imports a message into only this user’s mailbox, with standard email delivery scanning and classification similar to receiving via SMTP. This method doesn’t perform SPF checks, so it might not work for some spam messages, such as those attempting to perform domain spoofing. This method does not send a message. Note that the maximum size of the message is 150 MB.gmailUsersMessages.gmailUsersMessagesImportgmail_users_messages.gmail_users_messages_import
Directly inserts a message into only this user’s mailbox similar to `IMAP APPEND`, bypassing most scanning and classification. Does not send a message. For more information, see [Create and send email messages](https://developers.google.com/workspace/gmail/api/guides/sending).gmailUsersMessages.gmailUsersMessagesInsertgmail_users_messages.gmail_users_messages_insert
Lists the messages in the user’s mailbox. For more information, see [List Gmail messages](https://developers.google.com/workspace/gmail/api/guides/list-messages).gmailUsersMessages.gmailUsersMessagesListgmail_users_messages.gmail_users_messages_list
Modifies the labels and the Classification Label values on the specified message. For administrators modifying message for users in their organization, requests require authorization with a [service account](https://developers.google.com/identity/protocols/OAuth2ServiceAccount) that has [domain-wide delegation authority](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority) to impersonate users with the `https://www.googleapis.com/auth/gmail.modify.restricted` scope.gmailUsersMessages.gmailUsersMessagesModifygmail_users_messages.gmail_users_messages_modify
Sends the specified message to the recipients in the `To`, `Cc`, and `Bcc` headers. For more information, see [Create and send email messages](https://developers.google.com/workspace/gmail/api/guides/sending).gmailUsersMessages.gmailUsersMessagesSendgmail_users_messages.gmail_users_messages_send
Moves the specified message to the trash.gmailUsersMessages.gmailUsersMessagesTrashgmail_users_messages.gmail_users_messages_trash
Removes the specified message from the trash.gmailUsersMessages.gmailUsersMessagesUntrashgmail_users_messages.gmail_users_messages_untrash

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.