Create a new email

POST {{baseUrl}}/emails/mailboxes/:email/messages?deleted=<boolean>

Directly inserts a message into this mailbox.

Scopes: mail:write

Rate Limit Label: MEDIUM

Not supported in Gov cluster

Request Params

KeyDatatypeRequiredDescription
deletedstringMark the inserting email directly as TRASH if this query parameter is set to true.

Request Body

{"raw"=>"<string>", "labelIds"=>["<string>", "<string>"]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;threadId&quot;:&quot;\u003cstring\u003e&quot;,&quot;labelIds&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;]}