Messages
List and inspect received messages
API token in Api-Token header
Inbound inbox ID
1ID of the last message from the previous page. Pass the last_id
value returned by the previous response to fetch the next page.
Omit on the first request.
1700000000000123List of messages
Total number of messages within the retention window.
1Cursor for the next page. null when there are no more results.
Unauthorized
Forbidden
Not found
API token in Api-Token header
Inbound inbox ID
1Inbound message ID
1700000000000123Message details
Mailtrap object ID for the message (not the Message-ID header value).
17000000000001231[email protected]["[email protected]"]HelloValue of the original Message-ID header.
<[email protected]>Selected headers from the original message, lowercased.
{"mime-version":"1.0","return-path":"<[email protected]>"}Total size of the raw message in bytes.
4096Size of the HTML body in bytes. Zero if the message has no HTML part.
512Size of the plain-text body in bytes. Zero if the message has no text part.
1282026-05-08T10:30:00.000ZPresigned URL to download the raw .eml file. Expires after
one hour.
https://s3.amazonaws.com/inbound-mail/raw.eml?X-Amz-Signature=...2026-05-08T11:30:00.000ZDecoded HTML body. null when the message has no HTML part.
<html><body>Hello</body></html>Decoded plain-text body. null when the message has no text part.
HelloUnauthorized
Forbidden
Not found
API token in Api-Token header
Inbound inbox ID
1Inbound message ID
1700000000000123Message deleted
Unauthorized
Forbidden
Not found
No content
Last updated
Was this helpful?

