REST · JSON · OAuth 2.0
Email-, CRM- & SMS-APIs — für Entwickler gebaut, von Teams genutzt.
Eine Plattform, drei REST-APIs. Senden Sie transaktionale E-Mails und verfolgen Sie deren Zustellung, synchronisieren Sie Ihre Kontakte, versenden Sie SMS weltweit — direkt aus Ihrer Anwendung, in wenigen Minuten.
Keine Kreditkarte nötig. API-Key unter Einstellungen → API-Einstellungen in Ihrem Konto.
# Transaktionale E-Mail (CRM API v3) — Token über 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": "Willkommen bei Mailpro",
"body_html": "<h1>Hallo Ada</h1>"
}'
# → { "message": "Email queued", "id_single_send": 987654 }
# Status: GET /v3/Send/987654/Status
// Node.js 18+ (natives fetch) — keine Abhängigkeiten
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: "Willkommen bei Mailpro",
body_html: "<h1>Hallo Ada</h1>"
})
});
const { id_single_send } = await res.json(); // → Verfolgung über /v3/Send/{id}/Status
# Python 3 — Bibliothek requests
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": "Willkommen bei Mailpro",
"body_html": "<h1>Hallo Ada</h1>",
},
)
id_single_send = r.json()["id_single_send"] # → Verfolgung über /v3/Send/{id}/Status
// PHP 8 — Erweiterung curl
$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" => "Willkommen bei Mailpro",
"body_html" => "<h1>Hallo Ada</h1>",
]),
]);
$idSingleSend = json_decode(curl_exec($ch))->id_single_send; // → /v3/Send/{id}/Status