Upload message
POST/v1/account/:account/message
Upload a message structure, compile it into an EML file and store it into selected mailbox.
For MS Graph accounts only drafts can be uploaded, and the draft flag cannot be changed afterwards.
For Gmail API accounts the flags and internalDate fields are ignored. The message is inserted with the target label only, and its internal date is taken from the Date header of the message itself.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 429
- 500
- 503
Returns the uploaded message with the identifiers the provider assigned to it.
Invalid input - the path parameters, query arguments, or request payload did not pass validation. Also returned when the email server refused the request, in which case the response carries a code and the server response instead of a field list
Authentication failed - the access token is missing, invalid, or was not accepted
Access denied - the access token does not grant permission for this operation (token scope, account, or IP address restriction)
Not found - the requested entity (account, message, mailbox, etc.) does not exist
Rate limit exceeded - too many requests were made with this access token
Internal server error - an unexpected error occurred while processing the request
Service unavailable - the worker processing this account is not available, try again later