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
| Key | Datatype | Required | Description |
| deleted
| string | | Mark the inserting email directly as TRASH if this query parameter is set to true. |
Request Body
{"raw"=>"<string>", "labelIds"=>["<string>", "<string>"]}
HEADERS
| Key | Datatype | Required | Description |
| Content-Type
| string | | |
| Accept
| string | | |
RESPONSES
status: OK
{"id":"\u003cstring\u003e","threadId":"\u003cstring\u003e","labelIds":["\u003cstring\u003e","\u003cstring\u003e"]}