mailpit unofficial
GET/api/v1/message/{ID}

Get message summary

Returns the summary of a message, marking the message as read.

The ID can be set to latest to return the latest message.

1 parameter
IDstringrequired
Message database ID or "latest"

3 status codes
200Message
Attachmentsarray<object>optional
Message attachments
Bccarray<AddressRepresentsASingleMailAddress>optional
Bcc addresses
Ccarray<AddressRepresentsASingleMailAddress>optional
Cc addresses
Datestringoptional
Message RFC3339Nano date & time (if set), else date & time received ([extended RFC3339](https://tools.ietf.org/html/rfc3339#section-5.6) format with optional nano seconds)
Fromobjectoptional
An address such as "Barry Gibbs <bg@example.com>" is represented as Address{Name: "Barry Gibbs", Address: "bg@example.com"}.
HTMLstringoptional
Message body HTML
IDstringoptional
Database ID
Inlinearray<object>optional
Inline message attachments
ListUnsubscribeobjectoptional
ListUnsubscribe contains a summary of List-Unsubscribe & List-Unsubscribe-Post headers including validation of the link structure
MessageIDstringoptional
Message ID
ReplyToarray<AddressRepresentsASingleMailAddress>optional
ReplyTo addresses
ReturnPathstringoptional
Return-Path
Sizeintegeroptional
Message size in bytes
Subjectstringoptional
Message subject
Tagsarray<string>optional
Message tags
Textstringoptional
Message body text
Toarray<AddressRepresentsASingleMailAddress>optional
To addresses
Usernamestringoptional
Username used for authentication (if provided) with the SMTP or Send API
400Server error will return with a 400 status code with the error message in the body
404Not found error will return a 404 status code

Error handling

A 400 is returned: Server error will return with a 400 status code with the error message in the body. A 404 is returned: Not found error will return a 404 status code.