MailMasker API
Claude Code
Mail

List your recent messages

GET/api/v1/mail/messages

Who can use this: Any signed-in accountAs Markdown

The most recent messages in a folder, the oldest of them first. Each uid is the message's lasting number in that folder; use it to read the message. Listing doesn't mark anything as read.

Parameters

NameWhereWhat it is
mailbox query The folder to list. INBOX if you leave it out.
limit query How many of the newest messages to return. 20 if you leave it out.e.g. 10

Good to know

  • A folder that doesn't exist answers 502, the same as when your mailbox can't be reached.