users
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.
post/gmail/v1/users/{userId}/messages
Path parameters
userIdstring required
The user's email address. The special value me can be used to indicate the authenticated user.
Query parameters
deletedboolean
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'receivedTime' | 'dateHeader'
Source for Gmail's internal date of the message.
Response
Successful response