Skip to content

MailerLogic API (1.0.0)

Complete REST API for managing email delivery, tracking, and analytics.

Get started in minutes:

  1. Get your API key from your customer dashboard
  2. Send authenticated requests using the Bearer token
  3. Start sending emails via SMTP or API

For detailed guides, see the Getting Started section in the navigation.

Languages
Servers
Production API server
https://api.mailerlogic.io/
EU Data Center (Coming Soon)
https://eu.api.mailerlogic.io/

Quickstart Guide

Get started with MailerLogic in minutes. This guide walks you through sending your first email.

Option A: Send via REST API (Recommended)

curl -X POST https://api.mailerlogic.io/api/send \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "from": "hello@mail.yourdomain.com",
    "to": "recipient@example.com",
    "subject": "Hello from MailerLogic!",
    "html": "<h1>Hello!</h1><p>Your first email sent via MailerLogic.</p>",
    "text": "Hello! Your first email sent via MailerLogic."
  }'

Option B: Send via SMTP

Get your SMTP credentials:

curl https://api.mailerlogic.io/api/smtp-credentials \
  -H "X-API-Key: YOUR_API_KEY"

Node.js Example:

const nodemailer = require('nodemailer');

const transporter = nodemailer.createTransport({
  host: 'smtp.mailerlogic.io',
  port: 587,
  auth: {
    user: 'your-email@example.com',
    pass: 'smtp_password_here'
  }
});

const mailOptions = {
  from: 'sender@mail.yourdomain.com',
  to: 'recipient@example.com',
  subject: 'Hello from MailerLogic!',
  html: '<h1>Hello!</h1><p>Your first email sent via MailerLogic.</p>'
};

transporter.sendMail(mailOptions, (error, info) => {
  if (error) console.log('Error:', error);
  else console.log('Email sent:', info.messageId);
});

Python Example:

import smtplib
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart

msg = MIMEMultipart('alternative')
msg['Subject'] = 'Hello from MailerLogic!'
msg['From'] = 'sender@mail.yourdomain.com'
msg['To'] = 'recipient@example.com'

html = '<h1>Hello!</h1><p>Your first email sent via MailerLogic.</p>'
msg.attach(MIMEText(html, 'html'))

with smtplib.SMTP('smtp.mailerlogic.io', 587) as server:
    server.starttls()
    server.login('your-email@example.com', 'smtp_password_here')
    server.send_message(msg)

PHP Example:

use PHPMailer\PHPMailer\PHPMailer;

$mail = new PHPMailer(true);
$mail->isSMTP();
$mail->Host = 'smtp.mailerlogic.io';
$mail->SMTPAuth = true;
$mail->Username = 'your-email@example.com';
$mail->Password = 'smtp_password_here';
$mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS;
$mail->Port = 587;

$mail->setFrom('sender@mail.yourdomain.com');
$mail->addAddress('recipient@example.com');
$mail->Subject = 'Hello from MailerLogic!';
$mail->Body = '<h1>Hello!</h1><p>Your first email sent via MailerLogic.</p>';
$mail->isHTML(true);

$mail->send();

Step 4: Enable Tracking

Tracking is enabled by default on your account. Your emails will automatically include:

  • Open tracking: A tiny pixel that tracks when emails are opened
  • Click tracking: Automatic link wrapping to track clicks
  • Unsubscribe links: One-click unsubscribe per RFC 8058

To disable tracking for specific emails, you can configure it in your account settings.

Features Overview

MailerLogic provides enterprise-grade email delivery infrastructure with powerful APIs, deliverability optimization, and comprehensive analytics. Built by developers, for developers.


FAQ

Email Sending

Send transactional and marketing emails via REST API. Simple API for sending individual emails with full tracking support.

Operations

Profile

Manage your customer profile, view usage limits, and rotate API keys. Start here to understand your account settings and available resources.

Operations

SMTP

Get SMTP credentials for sending emails directly through our mail servers. Use these endpoints to retrieve and rotate your SMTP passwords.

Operations

Domains

Add and verify sender domains for email authentication. Configure SPF, DKIM, and DMARC records to improve deliverability.

Operations

Statistics

Access detailed email delivery and engagement metrics. Query sends, bounces, opens, clicks, and spam complaints with flexible date filters.

Operations

Content Scoring

Analyze email content for spam patterns before sending. Get actionable feedback to improve deliverability scores.

Operations

Events

Query granular email events and build custom analytics. Enterprise feature - must be enabled on your account.

Operations

Unsubscribe Management

Manage unsubscribes programmatically with full CRUD operations. Track unsubscribe sources and maintain compliance with anti-spam laws. Similar to Mailgun's Unsubscribes API and Postmark's Bounces API.

Operations

Health Score

Monitor your account's email health and engagement quality metrics. Get a 0-100 score with reputation grade (A+ to F) and actionable insights. Similar to SendGrid's Engagement Quality API.

Operations

Tracking

Public endpoints for open and click tracking. These are called automatically by email clients - no authentication required.

Operations

Webhooks

Receive real-time notifications for bounces and complaints. Configure these endpoints in your mail server or monitoring tools.

Operations