Skip to the documentation
Client

Threads

`threads.list`, `listAll`, `iterate` and `get`, for the mail this person can see.

Reading

read-threads.ts
const page = await client.threads.list({ folder: 'inbox', limit: 25 }) const next = page.nextCursor  ? await client.threads.list({ folder: 'inbox', cursor: page.nextCursor })  : null const thread = await client.threads.get('thread_…')console.log(thread.messageCount, thread.hasUnread) for await (const entry of client.threads.iterate({ sort: 'oldest' })) {  console.log(entry.id)}

Give it an address.
Watch it work.

MCP, the API and the command line come with every plan, the free one included. Connect a client and approve exactly what it reaches.

Read https://nextmail.sh/agent.md and follow it. Then tell me what I need to do to sign you in to my Nextmail mailbox. If I have no account yet, create one with my address and ask me for the code that arrives. Wait for my go-ahead before you send anything.

© 2026 Nextmail. All rights reserved.