mailpit unofficial
GET/api/v1/message/{ID}/part/{PartID}/thumb

Get an attachment image thumbnail

This will return a cropped 180x120 JPEG thumbnail of an image attachment. If the image is smaller than 180x120 then the image is padded. If the attachment is not an image then a blank image is returned.

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

2 parameters
IDstringrequired
Message database ID or "latest"
PartIDstringrequired
Attachment part ID

2 status codes
200Binary data response which inherits the attachment's content type.
400Server error will return with a 400 status code with the error message in the body

Error handling

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