mx2api.com

Every email on your domain,
delivered as JSON

mx2api is a self-service e-mail inbox API. Connect a domain you own, receive mail on every address of that domain and read it back as JSON with your own API key — no forwarding rules, no self-hosted mail server, no manual inbox cleaning.

What you get

Everything below works out of the box after you point your MX record at our mail host. There is no configuration file to edit, no queue to manage and no third-party service in the middle.

📥

Catch-all inbox for your domain

Every address works — test@, user@, anything@. You do not have to create a mailbox per name, configure forwarding rules or run your own mail server.

🔑

Your own API key

Each account gets a personal key that you can create, rotate and revoke at any time from the Profile page. Keys are sent only once, at creation time.

⚡

JSON in one request

Messages are returned as JSON with the sender, recipient, subject, headers, plain text, HTML body and size — ready to parse, store or forward.

🌐

Self-service DNS check

Add your domain and point its MX record to our mail host. The MX record is verified automatically every few minutes until it is live.

📊

Usage you can see

Each domain shows how many messages arrived this month, how many are still available and how many arrived in total. No surprises on the bill.

💳

Free plan and unlimited upgrade

Every domain starts free with a monthly limit of messages. Upgrade a single domain to unlimited delivery for a small monthly fee.

How it works

Four steps from an empty account to a working inbox API. Most people are done in less than ten minutes, because the MX record is checked automatically.

  1. 1

    Create your account

    Register with an e-mail address and a password. Your API key is generated immediately, so you can start calling the API in the same minute.

  2. 2

    Add your domain

    Enter the domain you own and create the MX record it asks for. The check runs automatically every five minutes for the first six hours, so you do not have to wait for a support ticket.

  3. 3

    Send a test e-mail

    Write to any address on that domain — for example [email protected]. The message is delivered to our MX server and stored with all of its headers.

  4. 4

    Read everything as JSON

    Call the messages endpoint with your key and the inbox comes back as JSON. Filter by domain, paginate with limit and offset, open a single message or delete it again.

Built for automation

QA and staging mailboxes

Send a confirmation e-mail to a random address on your own domain, read the verification code from the API and finish the sign-up flow without touching a shared sandbox.

Server and status alerts

Point a monitoring domain at mx2api and collect uptime notifications, cron output and incident reports in one JSON feed instead of dozens of mailboxes.

Lead and contact capture

Give every form on your site its own address, then read the submissions through the API and forward them to your CRM, database or chatbot.

Newsletter and beta testing

Route a beta list or a newsletter to a dedicated domain and keep the whole delivery pipeline in your own infrastructure.

Frequently asked questions

Which addresses on my domain work?

All of them. mx2api is a catch-all inbox, so every mailbox on your domain is accepted — test@, user@, newsletter@ or a random address that never existed before.

Do I need to change the MX record of my domain?

Yes. The MX record of your domain has to point to our mail host. We check it for you automatically and mark the domain as active as soon as the record is visible in DNS.

How long does a message take to arrive?

Usually a few seconds. The message is written to disk the moment the SMTP transaction finishes, and the API returns it immediately afterwards.

Can I delete a message?

Yes. Every message can be deleted permanently through the API or from the inbox in the web interface.

What happens when I reach the monthly limit?

The free plan includes a fixed number of messages per domain per month. Once the limit is reached, new mail for that domain is rejected and you can upgrade the domain to unlimited delivery.

Start in one minute

Create an account, add your domain and copy your API key. The first message can arrive seconds after your MX record is live — and everything you read afterwards is plain JSON.