mailpit unofficial
GET/api/v1/messages

List messages

Returns messages from the mailbox ordered from newest to oldest.

2 parameters
startintegeroptional
Pagination offset
Default:0
limitintegeroptional
Limit number of results
Default:50

2 status codes
200Summary of messages
messagesarray<object>optional
Messages summary
messages_countintegeroptional
Total number of messages matching current query
messages_unreadintegeroptional
Total number of unread messages matching current query
startintegeroptional
Pagination offset
tagsarray<string>optional
All current tags
totalintegeroptional
Total number of messages in mailbox
unreadintegeroptional
Total number of unread messages in mailbox
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.