REST · JSON · OAuth 2.0
Email, CRM & SMS APIs — built for developers, trusted by teams.
One platform, three REST APIs. Send transactional emails and track their delivery, sync your contacts, deliver SMS worldwide — straight from your application, in minutes.
No credit card. API key under Settings → API Settings in your account.
# Transactional email (CRM API v3) — token obtained via POST /v3/token
curl -X POST https://api.mailpro.com/v3/Send/Mail \
-H "Authorization: Bearer $MAILPRO_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id_sender_email": 12345,
"email": "[email protected]",
"subject": "Welcome to Mailpro",
"body_html": "<h1>Hello, Ada</h1>"
}'
# → { "message": "Email queued", "id_single_send": 987654 }
# Status: GET /v3/Send/987654/Status
// Node.js 18+ (native fetch) — no dependencies
const res = await fetch("https://api.mailpro.com/v3/Send/Mail", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.MAILPRO_TOKEN}`,
"Content-Type": "application/json"
},
body: JSON.stringify({
id_sender_email: 12345,
email: "[email protected]",
subject: "Welcome to Mailpro",
body_html: "<h1>Hello, Ada</h1>"
})
});
const { id_single_send } = await res.json(); // → track via /v3/Send/{id}/Status
# Python 3 — requests library
import os, requests
r = requests.post(
"https://api.mailpro.com/v3/Send/Mail",
headers={"Authorization": f"Bearer {os.environ['MAILPRO_TOKEN']}"},
json={
"id_sender_email": 12345,
"email": "[email protected]",
"subject": "Welcome to Mailpro",
"body_html": "<h1>Hello, Ada</h1>",
},
)
id_single_send = r.json()["id_single_send"] # → track via /v3/Send/{id}/Status
// PHP 8 — curl extension
$ch = curl_init("https://api.mailpro.com/v3/Send/Mail");
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer " . getenv("MAILPRO_TOKEN"),
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode([
"id_sender_email" => 12345,
"email" => "[email protected]",
"subject" => "Welcome to Mailpro",
"body_html" => "<h1>Hello, Ada</h1>",
]),
]);
$idSingleSend = json_decode(curl_exec($ch))->id_single_send; // → /v3/Send/{id}/Status