Skip to navigation

Parse a MIME message

Parse the full MIME document for an email message, returning the content of the message broken into its constituent pieces.

Request

This endpoint expects an object.
keystringRequired
A valid Mandrill API key
raw_messagestringRequired
the full MIME document of an email message

Response

Success
headersmap from strings to strings
The parsed message headers
textstring
The text content of the message
text_flowedboolean

Whether the text content uses format=flowed

attachmentslist of objects
List of parsed attachments
from_emailstringformat: "email"
The sender email address
from_namestring
The sender name
htmlstring or nullOptional
The HTML content if present
tolist of objectsOptional
List of recipients
subjectstring or nullOptional
The message subject

Errors

401
Unauthorized Error
422
Unprocessable Entity Error
500
Internal Server Error