Guide

How to get a verification code via API

There is no need to search the text for the code: every letter has a code field with the code webmail picks out in the list. With no code, it is null.

POST /mailbox/messages/latestJSON
{
  "id": "inbox.1.42",
  "folder": "inbox",
  "from": "noreply@discord.com",
  "from_name": "Discord",
  "subject": "Verify Email Address for Discord",
  "date": "2026-11-22T10:41:07Z",
  "code": "482913"
}

Asking for the latest letter

You create a key in your account settings, and it goes in the Authorization: Bearer header.

The mailbox address and password go in the JSON body, never in the URL. The key can spend the balance and fetch order passwords, so keep it on your own server, not in a browser.

POST /mailbox/messages/latestcURL
curl https://noxiusmail.com/api/v1/integration/mailbox/messages/latest \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"email":"user@example.com","password":"MAILBOX_PASSWORD","from":"example.com"}'

What the request picks

The answer is the newest matching letter of the folder in full, with text and html.

  • from: the site’s domain, its subdomains included, or the whole sender address. The sender’s name does not count.
  • subject: a word of the subject.
  • since: the id of a letter you have already seen. Only a newer letter comes back.
  • folder: inbox, junk or trash. Without it the inbox is read.
  • No matching letter: the answer is null. A letter in HTML only: text holds its visible text.

Wait for a new letter

Note the id of the latest letter before you ask the site for the code.

Then ask the mailbox every few seconds, passing that id in since, so an old code never turns up. If code is null but the letter has one, find it with your own pattern.

Waiting for the codePython
import re, time
import requests

URL = "https://noxiusmail.com/api/v1/integration/mailbox/messages/latest"
HEADERS = {"Authorization": "Bearer YOUR_API_KEY"}
BODY = {"email": "user@example.com", "password": "MAILBOX_PASSWORD", "from": "example.com"}

def latest(since=None):
    body = {**BODY, "since": since} if since else BODY
    while True:
        r = requests.post(URL, headers=HEADERS, json=body, timeout=30)
        if r.status_code != 429:
            r.raise_for_status()
            return r.json()
        time.sleep(int(r.headers.get("Retry-After", "2")))

old = (latest() or {}).get("id")
# now ask the site to send the code
for _ in range(60):
    message = latest(old)
    if message:
        if message["code"]:
            print(message["code"])
        else:
            found = re.search(r"\b\d{6}\b", message["subject"] + "\n" + message["text"])
            print(found.group() if found else message["text"])
        break
    time.sleep(3)

Limits and the 429 answer

A key makes up to 10 requests a second, and one mailbox has a limit of its own.

Past the limit comes 429 with a Retry-After header in seconds: wait that long and repeat. Ten wrong passwords to one mailbox in a minute close it to the account for a while, for all its keys at once.

In every mailbox

  • 185 days mail is kept
  • 50 MiB a mailbox, a letter up to 10
  • Webmail, IMAP, POP3, API read it your way
  • Receiving only no sending from the mailboxes
MAIL ACCESS

Everything you need to connect.

Pick a protocol and copy the settings into your client.

Help with connecting

Connect over IMAP

Emails and folders stay in sync across your devices.

Server
Port
Encryption
SSL / TLS
Login
The full mailbox address
Password
The mailbox password from your order

In your email app, choose IMAP and enter the settings from the table.

Plans

Top up your balance, choose a plan and a quantity. The addresses and passwords appear under “Orders” and in the order file.

.com
No end date

Eternal

The cheapest mailboxes that never expire.

Up to 1,000,000 mailboxes per domain

We pay for the yearly domain renewal.

EMAILS ARRIVE FROM
Loading services
0.09 ₽per mailbox at 1,000
.com
Mailboxes

Limited

Fewer neighbours on the domain, so services block it less often.

Up to 20,000 mailboxes per domain

They work until the domain registration ends, the date is in webmail.

EMAILS ARRIVE FROM
Loading services
0.24 ₽per mailbox at 1,000
.live
Mailboxes

Dedicated domain

Not a single stranger's address next to yours: the domain is all yours.

Up to 5,000 mailboxes per domain

They work until the domain registration ends, the date is in webmail.

EMAILS ARRIVE FROM
Loading services
0.34 ₽per mailbox at 1,000
.personal
Mailboxes

Your own domain

Your domain, our mailboxes, at the price of Eternal.

As many mailboxes as you like, on your domain or one bought from us.

EMAILS ARRIVE FROM
Loading services
0.09 ₽per mailbox at 1,000

The mailboxes may not be used for banks, payment and crypto services, government resources or official identity services. Acceptable use

Questions

Is there a webhook for new mail?

Not yet: new mail has to be polled, with pauses between the requests.

What if the mailbox has 2FA on?

The API answers mail_two_factor_required. Pass code with an authenticator code in the first request: for the next 5 minutes requests with the same key, address and password pass without it.

Do I need Premium for the API?

No, the API works on any account. Premium raises the limit to 50 requests a second and adds login and password styles.

Can I buy mailboxes through the API too?

Yes, from 1 mailbox, on the shared plans: Eternal and Limited. The same key returns the order’s addresses and passwords.