# Mailmark > Mailmark is an all-in-one email hosting and campaign platform for custom domains. Businesses connect their own domain, create mailboxes like support@yourco.com or sales@yourco.com, and manage all email activity - day-to-day communication, bulk outreach campaigns, and transactional sending via API - from a single dashboard, or from Claude through the Mailmark MCP connector. Mailmark is trusted by 10,000+ businesses. --- ## Table of Contents 1. [What Mailmark Is](#what-mailmark-is) 2. [How Mailmark Works](#how-mailmark-works) 3. [Features](#features) 4. [Pricing & Plans](#pricing--plans) 5. [Quotas & Limits](#quotas--limits) 6. [Getting Started](#getting-started) 7. [Domain Setup & DNS](#domain-setup--dns) 8. [Infrastructure: Mailmark-hosted vs BYO-AWS](#infrastructure-mailmark-hosted-vs-byo-aws) 9. [Settings → AWS Accounts](#settings--aws-accounts) 10. [Mailboxes](#mailboxes) 11. [Email UI](#email-ui) 12. [Email Campaigns](#email-campaigns) 13. [REST API](#rest-api) 14. [Sequences (Automated Follow-ups)](#sequences-automated-follow-ups) 15. [Email Warmup](#email-warmup) 16. [npm SDK](#npm-sdk) 17. [Claude Connector (MCP Server)](#claude-connector-mcp-server) 18. [Billing & Subscriptions](#billing--subscriptions) 19. [Affiliate Program](#affiliate-program) 20. [Free Tools](#free-tools) 21. [Frequently Asked Questions](#frequently-asked-questions) 22. [Key URLs](#key-urls) 23. [Machine-Readable Endpoints](#machine-readable-endpoints) --- ## What Mailmark Is Mailmark combines three things that businesses previously needed separate tools for: 1. **Custom domain email hosting** - Receive and send email from addresses on your own domain (e.g. hello@acme.com) without managing mail servers. Mailmark handles the infrastructure using Amazon SES. At domain setup time you can either let Mailmark host the AWS resources (the default) or deploy the same resources inside your own AWS account via CloudFormation (BYO-AWS) - see [Infrastructure: Mailmark-hosted vs BYO-AWS](#infrastructure-mailmark-hosted-vs-byo-aws). 2. **A full email client** - An inbox, sent folder, outbox, drafts, and trash for every mailbox you create, accessible from any browser. Similar to Gmail but for your custom domain. 3. **Email campaign tools** - Send bulk outreach and marketing emails from any of your mailboxes with mail merge, personalization, open/click tracking, automated follow-up sequences, and real-time analytics. 4. **Email warmup** - Built-in warmup system that exchanges real emails with Gmail accounts, generates engagement signals (opens, replies, mark-as-important), rescues from spam, and tracks inbox placement -- all automated from the dashboard. Everything in the dashboard can also be done from Claude: Mailmark runs a remote MCP server at `https://www.mailmark.dev/mcp` that users add to Claude as a connector. See [Claude Connector (MCP Server)](#claude-connector-mcp-server). Mailmark is not a shared email provider (like Gmail or Outlook). You bring your own domain. Mailmark does not provide domain registration - you must already own the domain you want to use. --- ## How Mailmark Works ### Step 1 - Add Your Domain Go to Dashboard → Domains and click "Add domain". Enter your domain name (e.g. acme.com) and pick where the underlying AWS resources should live: - **Mailmark infrastructure** (default, recommended) - Mailmark hosts the SES identity, S3 bucket, Lambda forwarder, and SNS topics in its own AWS account. - **Use my own AWS account** (BYO-AWS) - the same resources are provisioned inside your AWS account via a CloudFormation Quick-Create stack. You keep full ownership of the raw email data. See [Infrastructure: Mailmark-hosted vs BYO-AWS](#infrastructure-mailmark-hosted-vs-byo-aws). In either case Mailmark registers the domain with Amazon SES and returns the DNS records you need to add to your domain registrar: DKIM CNAME records, SPF TXT record, DMARC TXT record, and MX record for inbound email. The DNS records themselves are identical in both modes - the choice only affects where the AWS resources live. ### Step 2 - Verify DNS Add the DNS records at your registrar (Cloudflare, Namecheap, GoDaddy, etc.). Click "Verify" in Mailmark. DNS propagation usually completes within minutes but can take up to 48 hours. Mailmark checks MX, SPF, DKIM (three CNAME records), and DMARC individually and shows live verification status for each. ### Step 3 - Create Mailboxes Once your domain is verified, create mailboxes under Dashboard → Mailboxes. Each mailbox gets its own inbox, sent folder, and settings. You only enter the local part (e.g. "sales") and Mailmark appends your domain automatically. ### Step 4 - Send Email Use the dashboard UI to compose and send emails, or use the REST API / npm SDK to send programmatically. Inbound emails arrive in the mailbox inbox automatically via the configured MX record. --- ## Features ### Custom Domain Setup - Connect any domain you own - Mailmark does not provide domain registration - Guided DNS configuration with exact record values to copy-paste - Auto-verification of MX, SPF, DKIM (3 records), and DMARC - Custom MAIL FROM domain (mail.yourdomain.com) for SPF/DMARC alignment - Full email deliverability from day one - emails land in inboxes, not spam ### Mailboxes - Create mailboxes for any role: support@, sales@, info@, ceo@, hello@, etc. - Per-mailbox display name (e.g. "Support Team ") - Per-mailbox email signature - Instantly switch between mailboxes in the UI - One-click mailbox creation from the dashboard or via API ### Full Email UI - Familiar Gmail-like interface accessible from any browser - Folders: Inbox, Sent, Outbox, Drafts, Trash - Rich HTML email composer with attachments - Full-text search across all mail - Read/unread status, starring, and conversation threading - Open tracking - see when recipients open your emails - Delivery status tracking (delivered, bounced, failed) ### Email Campaigns - Compose rich HTML campaign emails from any mailbox - Import recipient list via CSV or build it with the contact manager - Mail merge with personalization tags (first name, company, custom fields) - Multi-stage automated follow-up sequences (Stage 1 → Stage 2 → Stage 3) - Schedule campaigns for a future date and time - Real-time analytics: sent count, open rate, click rate, reply rate, bounce rate - Individual recipient tracking - see who opened, who clicked, who replied - Campaign send from a "sender group" - distribute sending across multiple mailboxes ### Sender Groups - Group multiple mailboxes as senders for a campaign - Assign a list of recipient emails to the group - Campaign sends are distributed across all senders in the group - Manageable via dashboard or API ### Campaign Analytics - Per-campaign dashboard: sent, opened, clicked, replied, bounced - Per-recipient event timeline - Open tracking via invisible 1x1 pixel - Click tracking via redirect links - Bounce and complaint notifications from Amazon SES ### Sequences (Automated Follow-ups) - Multi-step automated email sequences with configurable delays - Available for campaign sends only (one email per recipient) -- not for normal multi-recipient sends - Integrated into the campaign compose flow: add follow-up steps when writing a campaign email - Merge field personalization ({{firstName}}, {{company}}, custom fields) - Automatic reply detection: stops the sequence when a contact replies - Pause, resume, or cancel sequences at any time - Per-sequence enrollment stats: active, completed, replied, bounced, cancelled - Follow-ups tab in mailbox for managing active sequences - Full API support for creating sequences and enrolling contacts programmatically ### Email Warmup - Built-in email warmup system with real Gmail email exchange - Automatic outbound sends from your mailbox to platform Gmail accounts - Automatic inbound sends from platform Gmail accounts to your mailbox - Real Gmail engagement via SMTP/IMAP: opens (85%), mark-as-important (45%), replies (25%) - Inbox vs. spam placement detection via IMAP - Health score based on real inbox placement, open rate, and reply rate - Three speed profiles: slow (2-20/day), normal (5-20/day), fast (10-20/day) - Warmup emails hidden from your regular inbox (stored in _warmup folder) - Pause, resume, and change speed at any time from the dashboard - No setup beyond clicking "Start Warmup" -- no Gmail connection required from users ### REST API - Full programmatic control: send emails, manage mailboxes, manage sender groups, sequences, list emails - Two API key scopes: domain-scoped (tied to one domain) and org-wide (tied to your account, queries all domains) - Supports transactional (one email to all recipients) and campaign (individual email per recipient) send modes - Scheduled sending (future unix timestamp) - Domain health checks (SPF, DKIM, DMARC, blacklists, bounce/complaint rates) - Warmup status monitoring (health score, inbox rate, daily limits) - Bounce and suppression list queries with configurable lookback window - Campaign stats across sequences and batch sends (open, click, reply, bounce rates) - Click tracking via redirect links for sent emails - Reply detection for regular sent emails (not just sequences) - Key prefix format: `dm_live_...` ### Claude Connector (MCP) - Remote MCP server at `https://www.mailmark.dev/mcp` (Streamable HTTP) - Add it to Claude (web, desktop, mobile) as a custom connector, or to Claude Code and other MCP clients - Sign in with your Mailmark account over OAuth; no API key needed - Covers the whole dashboard: domains, mailboxes, inbox, sending and scheduling, contacts, campaigns, sender groups, warmup, deliverability, API keys - Same limits, ownership checks, suppression and send gate as the dashboard; Claude asks before sending or deleting - Included on every plan ### Developer Experience - npm SDK (`mailmark-sdk`) for Node.js / TypeScript / Bun - MCP server for Claude and other MCP clients (see [Claude Connector](#claude-connector-mcp-server)) - Interactive API playground in the dashboard docs page - Live cURL and npm code generation in the API explorer - Webhook notifications for inbound email via Amazon SNS ### Team Collaboration - Invite team members to your account - Assign mailboxes to specific team members - Manage permissions from one dashboard - Everyone works from the same unified dashboard --- ## Pricing & Plans All plans include a **7-day free trial** with full feature access. No credit card required. After the trial, the account pauses until a plan is selected. Billing is monthly. You can upgrade, downgrade, or cancel at any time. Upgrades mid-cycle are prorated. There are no long-term contracts or cancellation fees. | Plan | Price | Emails/month | Domains | Mailboxes | Support | |------------|-------------|--------------|-----------|------------|------------------| | Starter | $10/month | 1,000 | 1 | 3 | Basic | | Pro | $50/month | 25,000 | 5 | Unlimited | Priority | | Business | $100/month | 100,000 | Unlimited | Unlimited | Dedicated | All plans include: - Full email UI (Inbox, Sent, Outbox, Drafts) - Email campaigns - Campaign analytics - REST API access - Claude connector (MCP server) - 7-day free trial --- ## Quotas & Limits Quotas are enforced server-side on the Convex backend. Users without an active subscription (free trial or expired) receive Starter plan limits. | Resource | Free / Starter | Pro | Business | |-------------------|---------------|------------|------------| | Domains | 1 | 5 | Unlimited | | Mailboxes | 3 | Unlimited | Unlimited | | Emails per month | 1,000 | 25,000 | 100,000 | Quota is checked before: - Adding a new domain - Creating a new mailbox - Sending an email (UI, API, or scheduled) Errors returned when limit is reached: - `"Domain limit reached. Your plan allows N domain(s). Please upgrade to add more."` - `"Mailbox limit reached. Your plan allows N mailbox(es). Please upgrade to add more."` - `"Monthly email limit reached (N emails). Please upgrade your plan."` Email quota resets at the start of each calendar month. --- ## Getting Started ### Sign Up Visit https://www.mailmark.dev/sign-up. Sign up with email or Google account. No credit card required. ### Quick Start (4 steps) 1. Create a Mailmark account at www.mailmark.dev/sign-up 2. Go to Dashboard → Domains → Add domain. Follow the DNS instructions. 3. Go to Dashboard → Mailboxes → Create a mailbox (e.g. hello@yourdomain.com) 4. Send your first email from the composer, the REST API, or the npm SDK ### Send via npm SDK ```bash npm install mailmark-sdk # or bun add mailmark-sdk ``` ```typescript import { Mailmark } from 'mailmark-sdk'; const client = new Mailmark('dm_live_your_api_key'); await client.send({ from: 'hello@yourdomain.com', to: 'recipient@example.com', subject: 'Hello from Mailmark!', html: '

It works!

', }); ``` ### Send via cURL ```bash curl -X POST https://api.mailmark.dev/v1/send \ -H "Authorization: Bearer dm_live_your_api_key" \ -H "Content-Type: application/json" \ -d '{ "from": "hello@yourdomain.com", "to": ["recipient@example.com"], "subject": "Hello from Mailmark!", "html": "

It works!

" }' ``` API keys are available in Dashboard → Developer. --- ## Domain Setup & DNS Mailmark requires four types of DNS records to fully verify a domain: ### MX Record (inbound email routing) - Type: MX - Host: @ (root domain) - Value: `inbound-smtp.ap-south-1.amazonaws.com` - Priority: 10 - Required for receiving email in your Mailmark mailboxes ### SPF Record (sender authentication) - Type: TXT - Host: @ (root domain) - Value: `v=spf1 include:amazonses.com ~all` - Prevents spoofing of your domain in email headers ### DKIM Records (cryptographic signing) - Type: CNAME (3 records) - Host: `._domainkey.yourdomain.com` - Value: `.dkim.amazonses.com` - Mailmark generates three DKIM tokens per domain; all three must be added ### DMARC Record (policy enforcement) - Type: TXT - Host: `_dmarc.yourdomain.com` - Value: `v=DMARC1; p=quarantine; rua=mailto:dmarc@yourdomain.com` - Instructs receiving servers how to handle unauthenticated mail from your domain ### Custom MAIL FROM (SPF/DMARC alignment) Mailmark also configures a custom MAIL FROM domain (`mail.yourdomain.com`) for better deliverability alignment: - MX record on `mail.yourdomain.com` pointing to `feedback-smtp.ap-south-1.amazonses.com` - SPF TXT record on `mail.yourdomain.com` including `amazonses.com` Verification status for each record is shown in real time in Dashboard → Domains → [your domain]. --- ## Infrastructure: Mailmark-hosted vs BYO-AWS When you add a domain Mailmark asks where the underlying AWS resources (SES identity, S3 bucket for inbound email, Lambda forwarder, SNS topics for bounce/complaint) should live. There are two options: ### Mailmark infrastructure (default) Mailmark provisions and operates all AWS resources in its own account. This is the simplest path and is recommended for most users. You pay only the Mailmark subscription - no separate AWS bill. ### Use my own AWS account (BYO-AWS) Mailmark deploys the same resources inside your AWS account via a CloudFormation Quick-Create stack. Use this when you need: - Data residency - raw email objects live in your own S3 bucket, in your chosen AWS region. - Your own SES sending reputation or already-warmed SES account. - Regulatory / compliance requirements that require the mailbox contents to be stored in an account you control. - To pay SES and S3 costs on your existing AWS bill. **Connection flow**: 1. In Add-Domain (or Settings → AWS accounts → Connect AWS account), pick an alias and an AWS region. 2. Click **Open CloudFormation in AWS**. The Quick-Create URL pre-fills these parameters into the stack: `ExternalId`, `MailmarkAwsAccountId`, `WebhookSecret`, inbound webhook URL, and sending webhook URL. 3. Deploy the stack in your AWS account. The stack outputs a `RoleArn` (an IAM role trusted by Mailmark's AWS account with an `ExternalId` condition) and a `BucketName`. 4. Paste the `RoleArn` and `BucketName` back into the Mailmark wizard. 5. Mailmark verifies by calling `STS.AssumeRole` + `STS.GetCallerIdentity` and probes `SES.GetAccount` to detect whether your SES account is still in the sandbox. If SES is in the sandbox, a badge is shown in the UI and you must request production access in AWS before you can send to external recipients. Once verified, the AWS account is available as an infrastructure target when adding domains. Multiple domains can share the same connected AWS account. --- ## Settings → AWS Accounts The Settings page (Dashboard → Settings) lists every AWS account you have connected for BYO-AWS. For each account you see: - Alias (the friendly name you gave it) - Status (`verified`, `pending`, or `failed`) - AWS account ID, region, S3 bucket, and role ARN - Last verified timestamp - SES sandbox badge if applicable - Linked domains - every Mailmark domain currently using this AWS account From this page you can: - **Connect AWS account** - launches the same wizard used in Add-Domain; a newly connected account is immediately available for future domain additions. - **Disconnect** - removes the link between Mailmark and your AWS account. **Disconnect is blocked while any domain is still linked to the account** - you must delete those domains in Mailmark first, then disconnect. The CloudFormation stack in your AWS account is never deleted by Mailmark; you remove it yourself in the AWS console if you want to free up the resources. --- ## Mailboxes A mailbox is a sending and receiving email address on your domain. ### Creating a Mailbox - Go to Dashboard → Domains → [your domain] → Add Mailbox - Enter the local part only (e.g. "support" - not "support@yourdomain.com") - Optionally set a display name (e.g. "Support Team") - The mailbox is created instantly ### Mailbox Settings - **Display name**: shown as the "From" name in email clients - **Signature**: HTML or plain text appended to outgoing emails - **Full address**: the complete email address (local@domain.com) ### Deleting a Mailbox Deleting a mailbox permanently removes all emails stored in it (both in Convex and Amazon S3). This action is irreversible. Sender group memberships are automatically cleaned up. ### Limits - Starter plan: 3 mailboxes (across 1 domain) - Pro plan: Unlimited mailboxes (across 5 domains) - Business plan: Unlimited mailboxes (across unlimited domains) --- ## Email UI Every mailbox has a full email client accessible from the Mailmark dashboard. ### Folders - **Inbox** - received emails - **Sent** - emails you have sent - **Outbox** - scheduled emails awaiting delivery - **Drafts** - saved but unsent emails - **Trash** - deleted emails ### Composing Email - Rich HTML editor - To, CC, BCC fields - Subject line - File attachments - Schedule for later (choose date/time) - Per-mailbox signature auto-inserted ### Email Tracking - **Open tracking**: a 1×1 invisible pixel is embedded in outgoing sent emails. When the recipient loads the email, the pixel fires and Mailmark records the open time. - **Delivery status**: Amazon SES sends delivery, bounce, and complaint notifications back to Mailmark via SNS webhook. Emails show "Delivered", "Bounced", or "Failed" status. --- ## Email Campaigns Campaigns let you send bulk emails to a large list of recipients from any of your mailboxes. ### Campaign Types - **Transactional**: one email sent to all recipients simultaneously (standard BCC-style) - **Campaign**: one individually addressed email per recipient, each tracked separately under a shared `batchId` ### Personalization Use merge tags in the subject or body to personalize emails per recipient: - `{{firstName}}`, `{{lastName}}`, `{{company}}`, and any custom fields from your CSV import ### Follow-up Sequences (Campaign mode only) Configure multi-stage automated follow-ups when sending in campaign mode (one email per recipient). Follow-ups are not available for normal sends where multiple recipients share one email. - Stage 1: Initial campaign email (sent immediately) - Stage 2: Follow-up if no reply after N days - Stage 3: Second follow-up if still no reply - Automatic reply detection stops the sequence for that contact - Select individual or all enrollments to pause/cancel from the Follow-ups tab ### Campaign Analytics Real-time metrics per campaign: - **Sent**: total emails dispatched - **Opened**: recipients who loaded the tracking pixel - **Clicked**: recipients who clicked a tracked link - **Replied**: recipients who replied - **Bounced**: emails that bounced ### Sender Groups For large campaigns, use sender groups to distribute sending across multiple mailboxes. Create a sender group, assign mailboxes as senders, add recipient emails, and launch the campaign. Mailmark rotates sends across all mailboxes in the group. --- ## REST API **Base URL**: `https://api.mailmark.dev` **Authentication**: Pass your API key in the `Authorization` header: ``` Authorization: Bearer dm_live_your_api_key ``` ### API Key Scopes Mailmark supports two API key scopes: - **Domain-scoped key** (default): Tied to a single domain. Can only access mailboxes, emails, sender groups, and sequences on that domain. Required for write operations (send, create mailbox, etc.). - **Org-wide key**: Tied to your account. Can query data across all your domains. Only works with read-only analytics endpoints (domain health, warmup, bounces, suppressions, campaign stats). Returns 403 on domain-specific write endpoints. Generate and manage keys in Dashboard → Developer. When creating a key, choose "All domains" for an org-wide key or select a specific domain for a domain-scoped key. --- ### Mailboxes #### GET /v1/mailboxes List all mailboxes on the domain scoped to your API key. **Response**: Array of Mailbox objects ```json [ { "_id": "jd7abc...", "address": "hello", "fullAddress": "hello@yourdomain.com", "displayName": "Hello Team" } ] ``` #### POST /v1/mailboxes Create a new mailbox. **Body**: ```json { "address": "hello", "displayName": "Hello Team" } ``` **Notes**: Pass only the local part (`hello`, not `hello@domain.com`). Returns 409 if already exists. #### DELETE /v1/mailboxes/:address Permanently delete a mailbox and all its emails. Pass local part or full address. **Response**: `{ "deleted": true }` **Warning**: Irreversible. All emails are permanently deleted. --- ### Sender Groups #### GET /v1/sender-groups List all sender groups for the domain. #### POST /v1/sender-groups Create a sender group. **Body**: ```json { "name": "Marketing Team", "mailboxes": "all", "emails": ["user1@example.com", "user2@example.com"] } ``` Pass `"all"` for mailboxes to include every mailbox on the domain. #### PATCH /v1/sender-groups/:id Update a sender group. All fields optional. **Body fields**: - `name` - rename the group - `addEmails` - add recipients to the list - `removeEmails` - remove recipients from the list - `emails` - replace the entire recipient list - `mailboxes` - replace sender mailbox list (comma-separated or `"all"`) #### DELETE /v1/sender-groups/:id Delete a sender group. Mailboxes are not affected. --- ### Send Email #### POST /v1/send Send an email immediately or schedule it for later. **Body**: ```json { "from": "hello@yourdomain.com", "to": ["recipient@example.com"], "subject": "Hello!", "html": "

Hello!

Sent via Mailmark API.

", "type": "transactional", "scheduledAt": 1750000000000 } ``` **Fields**: - `from` (required) - full address of an existing mailbox on your domain - `to` (required) - array of recipient addresses - `subject` (required) - email subject - `html` - HTML body (required if `text` not provided) - `text` - plain text body (required if `html` not provided) - `type` - `"transactional"` (default) or `"campaign"` (one email per recipient) - `scheduledAt` - future unix millisecond timestamp for scheduled sending **Response (transactional)**: ```json { "messageId": "abc123", "status": "queued" } ``` **Response (campaign)**: ```json { "messageIds": ["abc123", "def456"], "batchId": "batch_xyz", "status": "queued" } ``` **Notes**: - `from` must be an existing mailbox created under this API key's domain - For campaign sends, each recipient gets a separate individually tracked email - `scheduledAt` must be a future timestamp --- ### Emails #### GET /v1/emails List sent emails for the domain. --- ### Sequences Sequences are automated multi-step email flows with configurable delays. Create a sequence with send_email and delay steps, then enroll contacts to start the automated drip. Supports merge field personalization ({{firstName}}, {{company}}, etc.). Reply detection automatically stops the sequence for a contact who replies. #### GET /v1/sequences List all sequences for the authenticated user. **Response**: ```json [ { "_id": "sequences:abc123", "name": "Welcome Series", "status": "active", "steps": [...], "stats": { "total": 150, "active": 80, "completed": 50, "replied": 12, "bounced": 3, "cancelled": 5 }, "domainName": "yourdomain.com", "mailboxAddress": "hello@yourdomain.com" } ] ``` #### POST /v1/sequences Create a new sequence. **Body**: ```json { "name": "Welcome Series", "from": "hello@yourdomain.com", "steps": [ { "type": "send_email", "subject": "Welcome {{firstName}}", "html": "

Hello!

" }, { "type": "delay", "delayMs": 86400000 }, { "type": "send_email", "subject": "Follow up", "html": "

Checking in

" } ] } ``` **Notes**: - First step must be `send_email` (cannot start with a delay) - `delayMs` is in milliseconds (86400000 = 1 day) - Use `{{fieldName}}` in subject/html for merge field personalization #### POST /v1/sequences/:id/enroll Enroll contacts into a sequence. **Body**: ```json { "contacts": [ { "email": "jane@example.com", "mergeFields": { "firstName": "Jane", "company": "Acme" } }, { "email": "bob@example.com", "mergeFields": { "firstName": "Bob" } } ] } ``` **Response**: ```json { "enrolled": 2, "skipped": 0, "enrollmentIds": ["sequenceEnrollments:abc", "sequenceEnrollments:def"] } ``` **Notes**: - Sequence must be active - Max 100 contacts per request - Already-enrolled active contacts are skipped #### PATCH /v1/sequences/:id Pause or resume a sequence. **Body**: ```json { "status": "paused" } ``` #### DELETE /v1/sequences/:id Cancel a sequence. Sets status to "completed" and cancels all active enrollments. **Response**: ```json { "id": "sequences:abc123", "status": "completed", "cancelledEnrollments": 42 } ``` --- ### Domain Health #### GET /v1/domain-health Returns the latest health check for the API key's domain (domain-scoped key) or all domains (org-wide key). **Query params**: - `domain` (optional) - filter to a specific domain (for org-wide keys) **Response (domain-scoped)**: ```json { "domain": "example.com", "checkedAt": 1715300000000, "spf": { "valid": true, "record": "v=spf1 include:amazonses.com ~all" }, "dkim": { "valid": true }, "dmarc": { "valid": true, "record": "v=DMARC1; p=quarantine" }, "mx": { "valid": true }, "blacklisted": false, "blacklistEntries": [], "overallScore": 95 } ``` **Response (org-wide)**: Array of domain health objects. --- ### Warmup Status #### GET /v1/warmup Returns warmup status for all mailboxes on the API key's domain. **Query params**: - `mailbox` (optional) - filter to a specific mailbox address **Response**: ```json [ { "mailbox": "hello@example.com", "status": "active", "speed": "normal", "currentDay": 12, "dailyLimit": 15, "sentToday": 8, "receivedToday": 5, "healthScore": 82, "inboxRate": 91, "startedAt": 1714000000000, "lastActivityAt": 1715300000000 } ] ``` --- ### Bounces #### GET /v1/bounces Returns bounce statistics for the domain over a configurable lookback window. **Query params**: - `days` (optional, default 30, max 90) - lookback period in days - `domain` (optional) - filter to a specific domain (for org-wide keys) **Response**: ```json { "domain": "example.com", "period": { "days": 30, "from": 1712700000000, "to": 1715300000000 }, "totalSent": 1500, "delivered": 1472, "bounced": 23, "failed": 5, "opened": 890, "clicked": 234, "replied": 45, "bounceRate": 1.53 } ``` --- ### Suppressions #### GET /v1/suppressions Returns the suppression (unsubscribe) list for the domain. **Query params**: - `limit` (optional, default 100, max 500) - `after` (optional) - cursor for pagination (unsubscribedAt timestamp) - `domain` (optional) - filter to a specific domain (for org-wide keys) **Response**: ```json { "domain": "example.com", "total": 42, "items": [ { "email": "user@gmail.com", "unsubscribedAt": 1715200000000, "source": "one-click" } ], "hasMore": false } ``` --- ### Campaign Stats #### GET /v1/campaign-stats Returns aggregate stats for sequences and/or batch sends. **Query params**: - `type` (optional: `"sequence"`, `"batch"`, or `"all"`. Default: `"all"`) - `sequenceId` (optional) - filter to a specific sequence - `batchId` (optional) - filter to a specific batch - `domain` (optional) - filter to a specific domain (for org-wide keys) **Response**: ```json { "sequences": [ { "id": "sequences:abc123", "name": "Outreach Q2", "status": "active", "stats": { "total": 200, "active": 50, "completed": 120, "replied": 15, "bounced": 8, "cancelled": 7, "replyRate": 7.5, "bounceRate": 4.0 } } ], "batches": [ { "batchId": "batch-1715300000000", "stats": { "total": 50, "delivered": 47, "bounced": 2, "failed": 1, "opened": 28, "clicked": 12, "replied": 3, "openRate": 56.0, "clickRate": 24.0, "replyRate": 6.0, "bounceRate": 4.0 } } ] } ``` --- ## Email Warmup Mailmark includes a built-in email warmup system that gradually builds domain reputation by exchanging real emails with Gmail accounts. Unlike basic volume ramping, Mailmark's warmup sends actual emails, generates real Gmail engagement signals (opens, replies, mark-as-important), and tracks inbox vs. spam placement. ### How Warmup Works 1. **Enroll a mailbox** - Go to Dashboard -> Warming, select a verified mailbox (SPF + DKIM + DMARC must be configured), choose a speed (slow, normal, or fast), and click "Start Warmup". 2. **Automatic email exchange** - Mailmark sends warmup emails from your mailbox to platform Gmail accounts (outbound) and from platform Gmail accounts back to your mailbox (inbound). This happens automatically every 30 minutes. 3. **Real Gmail engagement** - Platform Gmail accounts open your emails, mark them as important, rescue them from spam if needed, and reply -- all with randomized timing and rates to look natural. 4. **Placement tracking** - Mailmark checks whether outbound warmup emails landed in Gmail's inbox or spam folder via IMAP. Your health score is calculated from real inbox placement data. ### Speed Profiles | Speed | Starting volume | Target volume | Ramp duration | |--------|----------------|---------------|---------------| | Slow | 2/day | 20/day | 4+ weeks | | Normal | 5/day | 20/day | 2-3 weeks | | Fast | 10/day | 20/day | 1-2 weeks | ### Health Score Each enrolled mailbox gets a health score (0-100) recalculated daily based on the last 7 days of outbound warmup emails: - **Inbox placement rate** (60% weight) - percentage of emails landing in Gmail inbox vs. spam - **Open rate** (20% weight) - percentage of emails opened - **Reply rate** (20% weight) - percentage of emails replied to Health score badges: green (80+), yellow (50-80), red (below 50). ### Warmup Email Handling Warmup emails arriving at your Mailmark mailbox are automatically routed to a hidden "_warmup" folder and never appear in your regular inbox. The warming dashboard shows all warmup activity including direction, placement, open status, and reply status. ### Dashboard Features (Dashboard -> Warming) - **Enrolled mailboxes list** - health score, inbox rate, current day, speed, sent/received today, daily limit - **Pause/resume/change speed** - adjust warmup at any time without losing history - **Activity table** - recent warmup emails with direction, from/to, subject, placement, opened, replied status - **Add mailbox** - enroll new mailboxes with domain and speed selection ### Requirements - Domain must have SPF, DKIM, and DMARC fully verified before starting warmup - Only one active warmup enrollment per mailbox - Warmup is managed entirely from the dashboard (no API endpoints) --- ## npm SDK The official Mailmark SDK for Node.js, TypeScript, and Bun. **Package**: `mailmark-sdk` **Install**: ```bash npm install mailmark-sdk bun add mailmark-sdk ``` **Usage**: ```typescript import { Mailmark } from 'mailmark-sdk'; const client = new Mailmark('dm_live_your_api_key'); // Send email await client.send({ from: 'hello@yourdomain.com', to: 'user@example.com', subject: 'Hello!', html: '

Hello from Mailmark!

', }); // List mailboxes const mailboxes = await client.listMailboxes(); // Create mailbox const mailbox = await client.createMailbox({ address: 'support', displayName: 'Support Team', }); // Delete mailbox await client.deleteMailbox('support'); // Sender groups const groups = await client.listSenderGroups(); const group = await client.createSenderGroup({ name: 'Marketing Team', mailboxes: 'all', emails: ['user@example.com'], }); await client.updateSenderGroup('GROUP_ID', { addEmails: ['new@example.com'] }); await client.deleteSenderGroup('GROUP_ID'); // Domain health (works with domain-scoped or org-wide keys) const health = await client.getDomainHealth(); // Warmup status const warmup = await client.getWarmupStatus(); // Bounce stats (last 30 days by default) const bounces = await client.getBounceStats({ days: 30 }); // Suppression list const suppressions = await client.getSuppressions({ limit: 100 }); // Campaign stats (sequences + batches) const stats = await client.getCampaignStats({ type: 'all' }); ``` --- ## Claude Connector (MCP Server) Mailmark runs a remote [Model Context Protocol](https://modelcontextprotocol.io) server, so Claude (or any MCP client) can manage a Mailmark account on the user's behalf. Docs: https://www.mailmark.dev/docs/claude | Property | Value | |---|---| | Server URL | `https://www.mailmark.dev/mcp` | | Transport | Streamable HTTP (stateless, JSON responses, POST only) | | Auth | OAuth 2.1 with PKCE and dynamic client registration. The authorization server is Mailmark's sign-in (Clerk), so users sign in with their Mailmark account. No API key is used. | | Protected resource metadata | `https://www.mailmark.dev/.well-known/oauth-protected-resource/mcp` (RFC 9728) | | Authorization server metadata | `https://www.mailmark.dev/.well-known/oauth-authorization-server` (RFC 8414) | | Plans | Every plan | **Connect in Claude (web, desktop, mobile)**: Settings -> Connectors -> Add custom connector. Name `Mailmark`, URL `https://www.mailmark.dev/mcp`, leave the advanced OAuth fields empty, click Connect and sign in. Then enable Mailmark from the tools menu in a chat. On Team and Enterprise plans an owner adds the connector under Organization settings, and each member connects their own account. **Connect in Claude Code**: ```bash claude mcp add --transport http mailmark https://www.mailmark.dev/mcp ``` Then run `/mcp`, select `mailmark` and choose Authenticate. **How it behaves**: - Every tool runs as the signed-in user, through the same functions as the dashboard: users only see their own data, and plan limits, suppression, address verification and the send gate all apply. - Tools that email people (`send_email`, `schedule_email`, `create_campaign`, `enroll_in_campaign`) carry `destructiveHint` and `openWorldHint`, and tools that delete or cancel carry `destructiveHint`, so clients ask the user before running them. Read-only tools carry `readOnlyHint`. - Bodies can be plain text or HTML: plain text is converted to HTML and the mailbox signature is applied. `read_email` returns the body as plain text. - IDs (`domainId`, `mailboxId`, `emailId`, `campaignId` and so on) come from the list tools. List tools page with `limit` (1-100) and `cursor`. - Errors come back as tool errors with the reason, for example a suppressed recipient or a reached quota. **Tools**: ### Account - `get_account_overview`: Who is signed in, their plan and subscription status, usage against plan limits (domains, mailboxes, sends), sending controls, and overall email stats. A good first call. ### Domains - `list_domains`: All custom domains on the account with their verification status. - `get_domain`: One domain in detail: verification state, DNS records it needs, its mailboxes, and its latest deliverability health checks. - `add_domain`: Adds a custom domain (e.g. acme.com) to Mailmark. Returns the DKIM tokens; call get_domain afterwards for the full list of DNS records the user must create, then verify_domain once they are published. - `verify_domain`: Re-checks a domain's DNS records (verification, DKIM, MX, SPF, MAIL FROM) and reports what is still missing. - `retry_mail_from_verification`: Retries the custom MAIL FROM subdomain setup for a domain whose MAIL FROM verification failed. - `set_domain_postal_address`: Sets the physical postal address that campaign emails from this domain include in their footer (required by CAN-SPAM). - `remove_domain`: Permanently removes a domain and everything under it: its mailboxes, their stored email, and its sending identity. Cannot be undone. Confirm with the user first. ### Mailboxes - `list_mailboxes`: Every mailbox (email address) on the account, across all domains, with unread counts. - `create_mailbox`: Creates a mailbox on a verified domain. Pass only the part before the @, e.g. "hello" for hello@acme.com. - `update_mailbox`: Changes a mailbox's display name and/or email signature (HTML or plain text). - `delete_mailbox`: Permanently deletes a mailbox and all of its stored email. Cannot be undone. Confirm with the user first. ### Inbox - `list_emails`: Lists emails in one folder of a mailbox, newest first. Folders: inbox, sent, outbox (scheduled), trash. Returns summaries; use read_email for the body. - `read_email`: Opens one email: headers, the full body as readable text, and the attachment list. Set markAsRead to also mark it read, as opening it in the dashboard does. - `count_emails`: How many emails a mailbox has in a folder, and how many are unread. - `update_email`: Marks an email read or unread, stars or unstars it, or moves it to another folder (inbox or trash). - `mark_all_read`: Marks every unread email in a mailbox's inbox as read. - `delete_email`: Permanently deletes an email. To keep it recoverable, use update_email with moveTo "trash" instead. ### Sending - `send_email`: Sends an email from one of the user's mailboxes right away. The body may be HTML or plain text; the mailbox signature is applied as in the dashboard. Recipients go through the same suppression and verification checks. Show the user the draft and get a yes before sending. - `schedule_email`: Schedules an email to send later. It waits in the mailbox's outbox until then and can be cancelled with cancel_scheduled_email. Show the user the draft and time before scheduling. - `cancel_scheduled_email`: Cancels an email waiting in the outbox before it is sent. ### Contacts - `list_contacts`: The account's contacts (people it has emailed or imported), a page at a time. - `list_recipients`: Everyone the account has sent mail to, with per-recipient delivery history, a page at a time. ### Campaigns - `list_campaigns`: All campaigns (multi-step email sequences) with their status and enrollment counts. - `get_campaign`: One campaign: its steps and status, plus a page of its enrollments (who is in it and where they are). - `create_campaign`: Creates a campaign: an ordered list of email and delay steps sent from one mailbox. If contacts are given, they are enrolled and the first email goes out immediately; otherwise the campaign is created empty and enroll_in_campaign adds people later. Review the steps and recipients with the user before creating one with contacts. - `enroll_in_campaign`: Adds people to an existing campaign. They start at the first step. Confirm the list with the user first. - `set_campaign_status`: Pauses, resumes or cancels a campaign. "cancel" stops it for good and cannot be undone. - `remove_from_campaign`: Stops one enrollment so that person receives no further steps of the campaign. ### Sender groups - `list_sender_groups`: Saved recipient lists (sender groups) on a domain. - `save_sender_group`: Creates a saved recipient list for a mailbox, or replaces the name and members of an existing one (pass groupId). - `delete_sender_group`: Deletes a saved recipient list. The contacts themselves are kept. ### Warmup - `list_warmup`: Every mailbox in inbox warmup, with its speed, status, daily volume and inbox-placement rate. - `get_warmup_history`: Day-by-day warmup results and the most recent warmup emails for one warming mailbox. - `start_warmup`: Starts inbox warmup for a mailbox, which builds sender reputation by exchanging mail with the warmup pool. - `update_warmup`: Pauses or resumes warmup for a mailbox, or changes its speed. ### Deliverability - `get_deliverability`: The latest health check for each domain (DNS, blocklists, authentication) and unsubscribe stats. - `list_suppressions`: Addresses Mailmark will not send to (hard bounces, complaints, manual blocks), a page at a time. - `check_suppression`: Whether a single address is suppressed, and why. - `update_suppression`: Adds an address to the suppression list ("suppress") or releases it so mail can go to it again ("release"). Only release an address the user says is valid again. - `list_unsubscribes`: People who unsubscribed from campaign mail, a page at a time. - `update_unsubscribe`: Records that an address unsubscribed from a domain ("add", needs domainId), or removes an unsubscribe record ("remove", needs unsubscribeId). Only remove one when the person has asked to be resubscribed. - `list_blocked_sends`: Sends that Mailmark's send gate refused (invalid, risky or suppressed recipients), with the reason, a page at a time. - `verify_email_addresses`: Checks whether addresses are deliverable (valid, invalid, catch-all, unknown) before sending to them. - `update_sending_controls`: Account-wide sending switches: pause or resume all outgoing mail, pause or resume warmup, and the verification policy for catch-all and unknown addresses. ### Developer - `list_api_keys`: The account's active REST API keys (name, prefix, scope, last used). The secret itself is never shown again after creation. --- ## Billing & Subscriptions - All plans billed **monthly** - **7-day free trial** on every plan - no credit card required - After trial: account pauses until a plan is chosen - Upgrade / downgrade / cancel any time from Dashboard → Settings → Billing - Mid-cycle upgrades are **prorated** - you only pay for what you use - Cancellations take effect at the end of the current billing period - No long-term contracts, no cancellation fees **Payment processing**: Dodo Payments (merchant of record) **Plan IDs** (for reference): - `starter` - $10/month - `pro` - $50/month - `business` - $100/month --- ## Affiliate Program Mailmark runs a **30% recurring commission** affiliate program. ### How It Works 1. Apply at https://www.mailmark.dev/affiliate-program - applications reviewed within 48 hours 2. Get your unique referral link and marketing assets (banners, email copy, social posts) 3. Earn 30% of every payment made by referred customers - every month, for the lifetime of their account ### Commission Rates | Plan | Customer pays | You earn | |----------|---------------|------------| | Starter | $10/month | $3.00/month | | Pro | $50/month | $15/month | | Business | $100/month | $30/month | ### Payout Details - Processed on the **15th of each month** for the prior month's commissions - Payment via PayPal or bank transfer (SWIFT/SEPA) - Minimum payout threshold: **$50** (earnings below this roll over) - Referral cookie duration: **90 days** - Paid search on branded terms (e.g. "Mailmark") is not allowed --- ## Free Tools Mailmark offers seven free tools that require no signup. These tools help businesses improve their email deliverability, reduce costs, write better cold emails, find B2B leads, clean email lists, test for spam, and create professional signatures. ### Email Deliverability Checker **URL**: https://www.mailmark.dev/tools/email-deliverability-checker Test your domain's email deliverability instantly. Checks SPF, DKIM (15 common selectors), DMARC, MX records, and blacklist status across 5 major DNSBLs. Returns an overall health score (0-100) with actionable recommendations. Rate limited to 10 checks per hour per IP. No signup required. ### SES Savings Calculator **URL**: https://www.mailmark.dev/tools/ses-savings-calculator Compare the cost of your current email provider (Mailchimp, SendGrid, Instantly, Lemlist, Mailgun, Postmark, Brevo, or raw SES) against Mailmark pricing at any volume from 1,000 to 500,000 emails per month. Pure frontend tool with instant side-by-side cost comparison. ### Cold Email Subject Line Generator **URL**: https://www.mailmark.dev/tools/subject-line-generator AI-powered subject line generator for cold email outreach. Enter your industry, what you are offering, and your preferred tone (Casual, Professional, Direct, Friendly, or Urgent). Generates 8 subject lines with tips on why each one works. Powered by Claude. Rate limited to 5 generations per day per IP. No signup required. ### B2B Lead Finder **URL**: https://www.mailmark.dev/tools/lead-finder Search for B2B contacts by industry, job title, company size, and country. Unauthenticated users see a preview with blurred results and are prompted to sign in. Authenticated users get real leads from the Apollo.io People Search API with full email addresses. Rate limited to 5 searches per day per authenticated user. ### Email List Validator **URL**: https://www.mailmark.dev/tools/email-list-validator Validate up to 100 email addresses at once. Checks syntax, MX records (DNS-based mail server verification), disposable email detection (30+ known disposable providers), role-based address detection (info@, admin@, support@, etc.), and free provider flagging (Gmail, Yahoo, Outlook, etc.). Returns each email as Valid, Risky, or Invalid with a detailed reason. Supports CSV upload and CSV export of results. Completely free, no signup required, no usage limits. ### Email Spam Score Tester **URL**: https://www.mailmark.dev/tools/spam-score-tester Test your email subject line and body for spam risk before sending. Checks for spam trigger words (80+ common phrases), excessive capitalization, punctuation abuse, subject line length, link density, body content length, unsubscribe link presence, and personalization tokens. Returns a spam risk score (0-100) with per-check breakdown and recommendations. Pure frontend tool, completely free, no signup required. ### Email Signature Generator **URL**: https://www.mailmark.dev/tools/email-signature-generator Create professional HTML email signatures with a live preview. Fill in your name, title, company, phone, email, website, social links, and headshot URL. Choose from 3 styles (Professional, Modern, Minimal) and 8+ accent colors. Copy the generated HTML or plain text with one click. Compatible with Gmail, Outlook, Apple Mail, and Thunderbird. Pure frontend tool, completely free, no signup required, no watermark. --- ## Frequently Asked Questions **What is Mailmark?** Mailmark is an all-in-one email hosting and campaign platform for custom domains. You connect your own domain, create as many mailboxes as you need, and manage everything - from day-to-day email to mass outreach campaigns - in a single dashboard. **Can I use my own custom domain?** Yes. Mailmark is built around custom domains. You add your domain, configure the required DNS records (Mailmark provides step-by-step instructions), and your mailboxes go live in minutes. You can add multiple domains on paid plans. **How many mailboxes can I create?** The Starter plan supports up to 3 mailboxes on a single domain. The Pro plan gives you unlimited mailboxes across 5 domains. The Business plan lifts all limits. **Can I manage Mailmark from Claude?** Yes. Add Mailmark to Claude as a custom connector with the URL `https://www.mailmark.dev/mcp` and sign in with your Mailmark account. Claude can then read and organise your inbox, send and schedule email, add and verify domains, create mailboxes, run campaigns, manage warmup and check deliverability, with the same limits and checks as the dashboard. It asks before sending or deleting anything. It works on every plan, and in Claude Code too. See https://www.mailmark.dev/docs/claude. **Does Mailmark support email campaigns?** Yes. All plans include the campaign suite - compose rich HTML emails, import or build a recipient list, schedule sends, and track opens, clicks, and deliverability in real time. Auto follow-up sequences are also supported. **Does Mailmark have email warmup?** Yes. Mailmark includes built-in email warmup that exchanges real emails with Gmail accounts, generates real engagement signals (opens, replies, mark-as-important), and tracks inbox vs. spam placement. Go to Dashboard -> Warming to enroll a mailbox. No Gmail connection required from users -- Mailmark handles everything automatically. **Is there a free trial?** Yes. Every plan comes with a 7-day free trial - no credit card required. You get full access to all features during the trial. After 7 days, the account pauses until a paid plan is chosen. **How does billing work?** All plans are billed monthly after the 7-day free trial ends. You can upgrade, downgrade, or cancel at any time. Upgrades mid-cycle are prorated. **Can I cancel at any time?** Yes. No long-term contracts or cancellation fees. Cancel from Dashboard → Settings → Billing. Your plan stays active until the end of the current billing period. **What email clients can I use?** You can use the built-in Mailmark web UI (works in any modern browser). IMAP and SMTP access are also supported, so you can connect Mailmark mailboxes to Apple Mail, Thunderbird, Outlook, or any standard email client. **Does Mailmark provide domain registration?** No. You must already own the domain you want to use. Mailmark only handles email hosting and delivery - not domain registration. **What happens if I exceed my email limit?** All further sends are blocked until the next calendar month (when the quota resets) or until you upgrade to a higher plan. Attempting to send will return an error: "Monthly email limit reached." --- ## Key URLs | Page | URL | |---|---| | Homepage | https://www.mailmark.dev | | Sign up | https://www.mailmark.dev/sign-up | | Sign in | https://www.mailmark.dev/sign-in | | Dashboard | https://www.mailmark.dev/dashboard | | Documentation home | https://www.mailmark.dev/docs | | Getting started | https://www.mailmark.dev/docs/getting-started | | Domain setup guide | https://www.mailmark.dev/docs/domain-setup | | BYO-AWS guide | https://www.mailmark.dev/docs/byo-aws | | Settings (AWS accounts) | https://www.mailmark.dev/settings | | Mailboxes guide | https://www.mailmark.dev/docs/mailboxes | | Email campaigns guide | https://www.mailmark.dev/docs/email-campaigns | | API reference | https://www.mailmark.dev/docs/api | | Connect to Claude (MCP connector) | https://www.mailmark.dev/docs/claude | | Troubleshooting the Claude connector | https://www.mailmark.dev/docs/troubleshooting#claude-connector | | Troubleshooting | https://www.mailmark.dev/docs/troubleshooting | | Pricing | https://www.mailmark.dev/#pricing | | Billing (dashboard) | https://www.mailmark.dev/billing | | Email warmup | https://www.mailmark.dev/warming | | Developer (API keys) | https://www.mailmark.dev/developer | | Affiliate program | https://www.mailmark.dev/affiliate-program | | Blog | https://www.mailmark.dev/blog | | About | https://www.mailmark.dev/about | | Careers | https://www.mailmark.dev/careers | | Apply to a role | https://www.mailmark.dev/careers/apply | | Contact | https://www.mailmark.dev/contact | | Privacy policy | https://www.mailmark.dev/privacy | | Terms of service | https://www.mailmark.dev/terms | | Security | https://www.mailmark.dev/security | | DNS records for email (blog) | https://www.mailmark.dev/blog/dns-setup | | Email deliverability (blog) | https://www.mailmark.dev/blog/email-deliverability | | AWS SES production access (blog) | https://www.mailmark.dev/blog/aws-ses-production-access | | SES sandbox limits (blog) | https://www.mailmark.dev/blog/ses-sandbox-limits | | SPF, DKIM, and DMARC explained (blog) | https://www.mailmark.dev/blog/understanding-spf-dkim-and-dmarc | | Why emails go to spam (blog) | https://www.mailmark.dev/blog/why-emails-land-in-spam | | Email campaign best practices (blog) | https://www.mailmark.dev/blog/email-campaign-best-practices-2026 | | SPF too many DNS lookups (blog) | https://www.mailmark.dev/blog/spf-too-many-dns-lookups | | DKIM for multiple domains (blog) | https://www.mailmark.dev/blog/dkim-multiple-domains | | SES vs SendGrid cost (blog) | https://www.mailmark.dev/blog/ses-vs-sendgrid-cost | | Free tools | https://www.mailmark.dev/tools | | Email deliverability checker | https://www.mailmark.dev/tools/email-deliverability-checker | | SES savings calculator | https://www.mailmark.dev/tools/ses-savings-calculator | | Subject line generator | https://www.mailmark.dev/tools/subject-line-generator | | Lead finder | https://www.mailmark.dev/tools/lead-finder | | Email list validator | https://www.mailmark.dev/tools/email-list-validator | | Spam score tester | https://www.mailmark.dev/tools/spam-score-tester | | Email signature generator | https://www.mailmark.dev/tools/email-signature-generator | | System status | https://www.mailmark.dev/status | | REST API base URL | https://api.mailmark.dev | | OpenAPI description | https://www.mailmark.dev/openapi.json | | MCP server (Streamable HTTP, OAuth) | https://www.mailmark.dev/mcp | | MCP OAuth protected resource metadata | https://www.mailmark.dev/.well-known/oauth-protected-resource/mcp | | Sitemap | https://www.mailmark.dev/sitemap.xml | | Markdown index | https://www.mailmark.dev/md | --- ## Machine-Readable Endpoints For agents and other automated clients: - **MCP server**: `https://www.mailmark.dev/mcp`, Streamable HTTP. A request without a token gets a 401 whose `WWW-Authenticate` header points to the protected resource metadata at `https://www.mailmark.dev/.well-known/oauth-protected-resource/mcp`, which names the OAuth authorization server (dynamic client registration supported). The authorization server metadata is mirrored at `https://www.mailmark.dev/.well-known/oauth-authorization-server`. See [Claude Connector (MCP Server)](#claude-connector-mcp-server). - **OpenAPI 3.1 description**: `https://www.mailmark.dev/openapi.json` (also `/api/openapi.json` and `/api/openapi.yaml`). It covers the authenticated REST API on `api.mailmark.dev` and the free tool endpoints on `www.mailmark.dev`. - **Markdown variants**: every public page is served as Markdown to a client that sends `Accept: text/markdown`, or by appending `.md` to the URL (for example `https://www.mailmark.dev/docs/api.md`; the home page's alias is `https://www.mailmark.dev/index.md`). Responses carry `Vary: Accept`. `https://www.mailmark.dev/md` lists every page that has one. - **Sitemap**: `https://www.mailmark.dev/sitemap.xml`. - **Errors**: every JSON error carries `error` (human-readable), `code` (stable identifier), `message`, `hint` (how to resolve it), `status`, and `documentation_url`. - **Unknown paths**: return a real HTTP 404 with recovery links; a 404 requested as Markdown comes back as Markdown. --- ## Technical Stack - **Frontend**: Next.js (React), TypeScript, Tailwind CSS - **Backend**: Convex (real-time serverless backend) - **Authentication**: Clerk (Google, GitHub, email sign-in); Clerk is also the OAuth authorization server for the MCP connector - **MCP server**: Next.js route at `/mcp` using the official MCP TypeScript SDK (Streamable HTTP); tools call the same Convex functions as the dashboard, as the signed-in user - **Email delivery & receiving**: Amazon SES (Simple Email Service) - **Email storage**: Amazon S3 - **Event notifications**: Amazon SNS (webhook delivery for inbound/outbound events) - **BYO-AWS provisioning**: AWS CloudFormation Quick-Create stack; cross-account access via IAM `AssumeRole` with an `ExternalId` trust condition. Webhooks signed with a per-account shared secret. - **Payments**: Dodo Payments (merchant of record, subscription management and billing) - **Deployment**: Vercel (frontend), Convex cloud (backend)