Every click in the app
is a request you can make.

The window below shows one session as HTTP. Open the mailbox tab, read a thread, star it or search, and each click comes back as a request.

Your session, as HTTP requests

curl "https://api.nextmail.sh/threads?folder=inbox" \  -H "Authorization: Bearer $NEXTMAIL_API_KEY"

Last response

GET /threads?folder=inbox

{  "items": [    {      "object": "thread",      "id": "t1"    },    {      "object": "thread",      "id": "t2"    },    {      "object": "thread",      "id": "t3"    },    {      "object": "thread",      "id": "t4"    },    {      "object": "thread",      "id": "t5"    },    {      "object": "thread",      "id": "t6"    },    {      "object": "thread",      "id": "t7"    },    {      "object": "thread",      "id": "t8"    },    {      "object": "thread",      "id": "t9"    }  ],  "hasMore": false,  "nextCursor": null}

What your clicks call

The API,
a building block for email.

Every operation is a REST call made with a key. The whole contract is one OpenAPI document, readable without a key.

curl -X POST https://api.nextmail.sh/emails \  -H "Authorization: Bearer $NEXTMAIL_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "from": "Acme Billing <[email protected]>",    "to": ["[email protected]"],    "subject": "Your September invoice",    "html": "<p>The invoice is attached.</p>"  }'

Write one call.

Anything that speaks HTTP can send. TypeScript, Python, Ruby, PHP, Go, Java and C# get typed clients, and every message reports back as it is queued, sent and delivered.

Read the docs: Write one call.
POST/emails202
queuedsendingsentdelivered

Response

{ "object": "email", "id": "msg_4b7e05d3", "status": "sent"}

email.delivered [email protected]

Sending

Send now or later. A retry never sends twice.

Read the docs: Sending

API keys

Scoped keys with a sending address, an expiry and a log of every request.

Read the docs: API keys
GET/threads/wait200

Raw message

From: Nina Park <[email protected]>To: [email protected]Subject: Can we move Thursday?DKIM-Signature: v=1; a=rsa-sha256; d=northwind.devContent-Type: multipart/alternative

What your code gets

{ "object": "message_arrival", "threadId": "thr_8f2c1a", "address": "[email protected]", "from": { "email": "[email protected]", "name": "Nina Park" }, "subject": "Can we move Thursday?", "receivedAt": "2026-11-03T09:41:00Z"}

Receiving

Mail lands in threads, parsed and checked.

Read the docs: Receiving

OpenAPI 3.1

The whole contract is one public document, readable without a key.

Read the docs: OpenAPI 3.1

The building blocks

What are the
building blocks?

Domains, inboxes, sending, receiving and more. Use one on its own or put them together. Every block works the same over REST, the SDKs, the CLI and MCP.

12345678ABCD01 DomainsPOST /domains/{id}/verify05 WebhooksPOST /webhooks09 AttachmentsPOST /files/{id}/linksnextmailGeneral arrangementDrg 001Sheet 1/1NTS0102030405060708099 blocks1 API

639 operations.
Every one in the reference.

Grouped by resource, from sending one email to verifying a domain. Each one is documented with what it takes and what it returns.

Every delivery signed.
Every retry, the same id.

56 events, signed with HMAC, retried up to eight times over about 27 hours, and replayable.

Deliveries

Every POST to acme.com, newest first.

https://acme.com/webhooks
EventStatus

Numbers you can
check from a terminal.

The OpenAPI 3.1 document is public and needs no key, and the SDK has to match it before a release.

documented operations
639
GET /openapi.json
paths on one host
471
jq '.paths | length'
SDK methods
793
Matched to the spec before every release
MCP tools
606
nextmail mcp tools
webhook events
56
Matched to the spec before every release

Four doors.
One mailbox behind them.

REST, the SDK, the command line and MCP reach the same operations, with the same scopes and the same limits.

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.