/gmail/v1/users/{userId}/messages
POST
/gmail/v1/users/{userId}/messagesDirectly inserts a message into only this user's mailbox similar to IMAP APPEND
, bypassing most scanning and classification. Does not send a message.
Request
Path Params
userId
string
required
The user's email address. The special value me
can be used to indicate the authenticated user.
Query Params
deleted
string
optional
Mark the email as permanently deleted (not TRASH) and only visible in Google Vault to a Vault administrator. Only used for Google Workspace accounts.
internalDateSource
string
optional
Source for Gmail's internal date of the message.
Body Params text/plain
Request samples
Responses
Successful response(200)
Successful response
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
No schema defined
Example
Not configured
Last modified: a year ago