mailpit unofficial
GET/view/{ID}.txt

Render message text part

Renders just the message's text part which can be used for UI integration testing.

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

1 parameter
IDstringrequired
Message database ID or "latest"

3 status codes
200Plain text response
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.