- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization Scopes
- Try it!
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: This function doesn't trigger forwarding rules or filters set up by the user.
- Upload URI, for media upload requests:
- Metadata URI, for metadata-only requests:
The URL uses gRPC Transcoding syntax.
The user's email address. The special value
Source for Gmail's internal date of the message.
Ignore the Gmail spam classifier decision and never mark this email as SPAM in the mailbox.
Process calendar invites in the email and add any extracted meetings to the Google Calendar for this user.
Mark the email as permanently deleted (not TRASH) and only visible in Google Vault to a Vault administrator. Only used for Google Workspace accounts.
The request body contains an instance of
If successful, the response body contains an instance of
Requires one of the following OAuth scopes:
For more information, see the OAuth 2.0 Overview.