Developers

The Mail Pro.io API

Check addresses and run bulk checks from your own programs, with the same results, credits and permissions as the website.

Getting started

  1. API access is part of the Professional, Business and Enterprise plans, and of plans arranged with Mail Pro.io.
  2. An Organization Admin creates a key under Organization > Developers, chooses the person it acts for and what it may do, and copies it. It is shown only once.
  3. Your program sends the key with every request: Authorization: Bearer mpk_…

The address of every endpoint starts with https://mailproio.com/api/v1.

API keys

A key acts for one person in your organization. Checks use that person's credits and follow that person's permissions: if their administrator switches off bulk checks for them, the key cannot start bulk checks either. A key can also be limited to some IP addresses and given an expiry date.

PermissionAllows
checksCheck single addresses (uses credits)
jobsStart, follow and cancel bulk checks (uses credits)
exportDownload results as Excel or CSV
credits:readRead the credit balance and history

Keep keys secret: store them in your server's settings, never in web pages or apps that run on people's devices. Rotate a key to replace it, or revoke it if it may have leaked; both take effect at once.

Requests and credits

  • Send and receive JSON, except file uploads (multipart) and downloads.
  • Requests that use credits (POST /checks, POST /jobs) need an Idempotency-Key header: 8 to 100 letters, digits, - or _. If a request times out, send it again with the same key: you get the first answer and are not charged twice.
  • A Provider or Email Validator check uses 1 unit (0.25 credit); Provider + Validator uses 2. Addresses with an invalid format and domains that cannot be looked up are not charged.
  • Errors use the application/problem+json format with a stable code; see Errors.

Rate limits

Each key may make a number of checks a minute that depends on the plan, and twenty times that an hour. When a limit is reached the answer is 429 with a Retry-After header in seconds. Bulk jobs: up to 10 new jobs an hour per person, 2 running at once per person and 5 per organization.

PlanChecks a minute, per key
Professional60
Business300
Enterprise60

Reference

GET /api/v1/meta no key needed

Service information

Version, upload limits and the check modes with their cost. No key needed.

Response 200
{
  "api_version": "1",
  "app_version": "2.0.0",
  "limits": {
    "max_upload_mb": 25,
    "max_rows": 100000,
    "json_batch": 500
  },
  "modes": [
    {
      "mode": "provider",
      "label": "Provider",
      "units_per_email": 1,
      "credits_per_email": 0.25
    },
    {
      "mode": "validator",
      "label": "Email Validator",
      "units_per_email": 1,
      "credits_per_email": 0.25
    },
    {
      "mode": "provider_validator",
      "label": "Provider + Validator",
      "units_per_email": 2,
      "credits_per_email": 0.5
    }
  ]
}
GET /api/v1/me

Who the key acts for

The person and organization the key acts for, their tool permissions, the key's permissions (scopes) and credit balance.

Response 200
{
  "user": {
    "id": 7,
    "name": "Asha Rao",
    "email": "asha@example.com",
    "role": "admin",
    "role_label": "Organization Admin"
  },
  "organization": {
    "id": 3,
    "name": "Example Traders",
    "status": "active"
  },
  "plan": {
    "code": "professional",
    "name": "Professional",
    "billing_mode": "subscription",
    "max_bulk_rows": 100000
  },
  "team": null,
  "permissions": {
    "single": true,
    "bulk": true,
    "export": true,
    "history": true
  },
  "scopes": [
    "checks",
    "credits:read",
    "export",
    "jobs"
  ],
  "credits": {
    "units": 3996,
    "credits": 999.0
  },
  "api_key": {
    "name": "CRM sync",
    "last_four": "x9Qa",
    "checks_per_minute": 60
  }
}
GET /api/v1/credits credits:read

Credit balance and history

Newest first. Units: one unit is one check; four units make a credit.

ParameterInDescription
cursorqueryFrom the previous page's next_cursor.
limitqueryItems per page, 1 to 100.
Response 200
{
  "balance": {
    "units": 3996,
    "credits": 999.0
  },
  "entries": [
    {
      "id": 912,
      "type": "usage",
      "units": -1,
      "balance_after_units": 3996,
      "job_id": 4811,
      "description": "Single Validator",
      "created_at": "2026-11-20T09:30:00+00:00"
    }
  ],
  "next_cursor": null
}
POST /api/v1/checks checks uses credits

Check one address

Runs the check at once and returns the result. Addresses with an invalid format and domains that cannot be looked up are not charged (charged_units is 0).

Request body

{
  "email": "name@contoso.com",
  "mode": "validator"
}
Response 200
{
  "job_id": 4811,
  "status": "completed",
  "result": {
    "email": "name@contoso.com",
    "normalized_email": "name@contoso.com",
    "domain": "contoso.com",
    "mode": "validator",
    "email_valid": "Yes",
    "domain_status": "Accepts Mail",
    "provider": "Microsoft 365",
    "category": "Business",
    "mx_status": "Found",
    "mx_records": "0 contoso-com.mail.protection.outlook.com",
    "disposable": "No",
    "role_account": "No",
    "free_provider": "No",
    "suggestion": "",
    "reason": "Recipient accepted by the receiving server and the domain is not catch-all.",
    "final_status": "VALID",
    "score": 96,
    "smtp_mailbox": "ACCEPTED",
    "smtp_code": "250",
    "catch_all": "NOT-CATCH-ALL",
    "checked_at": "2026-11-20T09:30:00+00:00"
  },
  "charged_units": 1,
  "balance": {
    "units": 3996,
    "credits": 999.0
  }
}
POST /api/v1/jobs jobs uses credits

Start a bulk check

Send JSON with up to 500 addresses, or upload a CSV or Excel file (multipart field "file", up to 25 MB) with a "mode" field. Credits for the unique addresses are reserved at once; addresses that cannot be checked are refunded when the job finishes.

Request body

{
  "emails": [
    "anna@northwind.example",
    "ravi@contoso.example"
  ],
  "mode": "provider",
  "name": "March leads"
}
Response 202
{
  "job_id": 4812,
  "status": "queued",
  "unique_emails": 2,
  "reserved_units": 2
}
GET /api/v1/jobs jobs

List jobs

The person's own jobs, newest first. Needs the History permission.

ParameterInDescription
cursorqueryFrom the previous page's next_cursor.
limitqueryItems per page, 1 to 100.
statusqueryqueued, running, completed, cancelled or failed.
modequeryprovider, validator or provider_validator.
Response 200
{
  "jobs": [
    {
      "id": 4812,
      "kind": "bulk",
      "mode": "provider",
      "status": "running",
      "source": "api_key",
      "name": "crm-export.csv",
      "created_at": "2026-11-20T09:30:00+00:00",
      "completed_at": null,
      "total_emails": 12480,
      "unique_emails": 12102,
      "processed": 5100,
      "total": 12102,
      "percent": 42.1,
      "counts": {
        "valid": 4870,
        "invalid": 180,
        "unknown": 50
      },
      "charged_units": 12102,
      "refunded_units": 0,
      "cancel_requested": false,
      "error": null,
      "downloads": {
        "xlsx": false,
        "csv": false,
        "errors": false
      }
    }
  ],
  "next_cursor": null
}
GET /api/v1/jobs/{job_id} jobs

Follow a job

Poll every few seconds until status is completed, cancelled or failed.

ParameterInDescription
job_idpathThe job's id.
Response 200
{
  "id": 4812,
  "kind": "bulk",
  "mode": "provider",
  "status": "running",
  "source": "api_key",
  "name": "crm-export.csv",
  "created_at": "2026-11-20T09:30:00+00:00",
  "completed_at": null,
  "total_emails": 12480,
  "unique_emails": 12102,
  "processed": 5100,
  "total": 12102,
  "percent": 42.1,
  "counts": {
    "valid": 4870,
    "invalid": 180,
    "unknown": 50
  },
  "charged_units": 12102,
  "refunded_units": 0,
  "cancel_requested": false,
  "error": null,
  "downloads": {
    "xlsx": false,
    "csv": false,
    "errors": false
  }
}
GET /api/v1/jobs/{job_id}/results jobs

Read a job's results

Available when the job has finished. Page through with next_cursor; pages after the first need the export permission (the Export tool and the export scope).

ParameterInDescription
job_idpathThe job's id.
cursorqueryFrom the previous page's next_cursor.
limitqueryItems per page, 1 to 100.
Response 200
{
  "job_id": 4812,
  "mode": "provider",
  "results": [
    {
      "source_row": 2,
      "email": "name@contoso.com",
      "normalized_email": "name@contoso.com",
      "domain": "contoso.com",
      "mode": "provider",
      "email_valid": "Yes",
      "domain_status": "Accepts Mail",
      "provider": "Microsoft 365",
      "category": "Business",
      "mx_status": "Found",
      "mx_records": "0 contoso-com.mail.protection.outlook.com",
      "disposable": "No",
      "role_account": "No",
      "free_provider": "No",
      "suggestion": "",
      "reason": "Recipient accepted by the receiving server and the domain is not catch-all.",
      "checked_at": "2026-11-20T09:30:00+00:00"
    }
  ],
  "next_cursor": null
}
POST /api/v1/jobs/{job_id}/cancel jobs

Cancel a job

Addresses not checked yet are refunded.

ParameterInDescription
job_idpathThe job's id.
Response 200
{
  "job_id": 4812,
  "status": "cancelling",
  "refunded_units": 0
}
GET /api/v1/jobs/{job_id}/export export

Download results

The same Excel or CSV file as on the website. Needs the Export permission.

ParameterInDescription
job_idpathThe job's id.
formatqueryxlsx (default), csv, or errors for rows that had no address.

Response: the file itself.

Errors

{
  "type": "about:blank",
  "title": "Payment Required",
  "status": 402,
  "code": "insufficient_credits",
  "detail": "Insufficient credits. This check requires 0.25 credit.",
  "request_id": "5f0c…"
}
StatusCodeMeaning
400invalid_inputThe request is malformed, for example a missing Idempotency-Key.
401unauthenticatedNo key, or the key is not valid or has been revoked.
401token_expiredThe key has passed its expiry date.
402insufficient_creditsThe person the key acts for does not have enough credits.
403permission_deniedThe key lacks the permission (scope), or the person lacks the tool permission.
403plan_limitThe organization's plan does not include API access.
403ip_not_allowedThe key is limited to other IP addresses.
403account_suspendedThe person, team or organization is paused.
404not_foundNo such job, or it belongs to someone else.
409conflictThe Idempotency-Key was used for a different request, or results are not ready yet.
409in_progressA request with this Idempotency-Key is still running: wait (Retry-After) and send the same request again.
413invalid_inputThe file is too large.
422invalid_inputA field has the wrong value, for example an unknown mode.
426upgrade_requiredThis version of the Mail Pro.io extension is no longer supported.
429rate_limitedToo many requests; wait the number of seconds in the Retry-After header.
500check_failedSomething went wrong on our side; nothing was charged. Retry with the same Idempotency-Key.

Examples: check one address

curl
curl -X POST https://mailproio.com/api/v1/checks \
  -H "Authorization: Bearer $MAILPROIO_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"email": "name@contoso.com", "mode": "validator"}'
Python
import os, uuid, requests

response = requests.post(
    "https://mailproio.com/api/v1/checks",
    headers={"Authorization": f"Bearer {os.environ['MAILPROIO_KEY']}",
             "Idempotency-Key": str(uuid.uuid4())},
    json={"email": "name@contoso.com", "mode": "validator"},
    timeout=60,
)
response.raise_for_status()
print(response.json()["result"]["final_status"])
JavaScript
const response = await fetch("https://mailproio.com/api/v1/checks", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.MAILPROIO_KEY}`,
    "Idempotency-Key": crypto.randomUUID(),
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ email: "name@contoso.com", mode: "validator" }),
});
if (!response.ok) throw new Error((await response.json()).detail);
console.log((await response.json()).result.final_status);
PHP
<?php
$ch = curl_init('https://mailproio.com/api/v1/checks');
curl_setopt_array($ch, [
    CURLOPT_POST => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . getenv('MAILPROIO_KEY'),
        'Idempotency-Key: ' . bin2hex(random_bytes(16)),
        'Content-Type: application/json',
    ],
    CURLOPT_POSTFIELDS => json_encode(['email' => 'name@contoso.com', 'mode' => 'validator']),
]);
$result = json_decode(curl_exec($ch), true);
echo $result['result']['final_status'];

For a whole list, POST /jobs, then poll GET /jobs/{job_id} every few seconds and read GET /jobs/{job_id}/results or download GET /jobs/{job_id}/export when it has finished.

Changelog

  • 1.4.0: API keys for customers' own programs: create, rotate and revoke them on the Developers page. Per-plan rate limits. This documentation and the OpenAPI description.
  • 1.1.0: API v1: single checks, bulk jobs, results, exports, credit history (used by the Chrome extension).