A real public API. A real MCP server. Real SDKs.
Most monitoring tools have a dashboard. MailGuard has a developer platform behind it — so you can script onboarding, embed health in your client portal, run domain checks from your CI/CD, or let Claude run MailGuard tools natively from your desk.
Four surfaces, one platform
Use whichever fits your stack — REST, webhooks, MCP, SDKs. They share one auth model, one rate-limit budget, one OpenAPI contract.
REST API
23 endpoints covering every operator surface. Cursor pagination stable under concurrent writes, idempotency keys with 24h dedup window, scoped API keys with revocation from the Settings page.
- JSON, RFC-style error envelope with stable codes
- X-Request-Id on every response for support correlation
- Per-plan rate limits surfaced via X-RateLimit-* headers
Outbound webhooks
Receive events as they happen — alerts, DMARC reports (DMARC: the rule that tells mail servers to reject email pretending to be you), DNS changes, health bucket transitions. HMAC signed with anti-replay window. Exponential backoff with dead-letter and auto-disable after 10 consecutive failures.
- 5 event types: alerts, DNS, DMARC, health
- HMAC SHA-256 over `<timestamp>.<body>`, 300s anti-replay
- Built-in retry curve (30s → 5m → 1h → 6h → dead)
Hosted MCP server
Point Claude Desktop, Cursor or any MCP-compatible client at MailGuard with your API key. 40 native tools (17 basic + 23 AI-grade) so your assistant can run domain checks, acknowledge alerts and diagnose deliverability issues (deliverability: whether your emails reach the inbox instead of spam) directly.
- 17 basic tools (Solo+) — list domains, run check, ack alert, …
- 23 smart AI tools (Pro+) — diagnose deliverability, simulate DMARC, …
- Per-plan rate limits shared with the in-app Olivio chat pool
SDKs and Terraform
TypeScript SDK, Python SDK and a Terraform provider are open-source in the repository — same coverage as the REST API with typed responses and SDK-side idempotency-key generation. Not yet on npm/PyPI/HashiCorp: vendor the source or call the REST API directly for now.
- TypeScript + Node client (sdk/typescript)
- Python 3.9+ client (sdk/python)
- Terraform provider (terraform-provider-mailguard)
Three lines of code to monitor a new client domain.
The TypeScript SDK speaks the same shape as the REST API. Python and Terraform mirror it. Same error envelope. Same idempotency semantics. Same rate-limit headers.
- Typed responses from the OpenAPI 3.1 spec
- Automatic SDK-side retries on 429 / 5xx with backoff
- Cursor pagination with helper iterators
What's included on each plan
Every paid plan carries the public API and outbound webhooks. MCP smart tools and higher rate ceilings are tier-gated.
| Plan | REST read | REST mutate | MCP basic | MCP smart | Webhooks |
|---|---|---|---|---|---|
Free | — | — | — | — | — |
Solofrom $19/mo | 500/h | ✓ | 200/h | — | 1 endpoint, 1k/day |
Profrom $39/mo | 5k/h | ✓ | 1k/h | ✓ | 5 endpoints, 10k/day |
Agencyfrom $49/mo | 25k/h | ✓ | 5k/h | ✓ | 25 endpoints, 100k/day |
Enterprisecustom | custom | ✓ | custom | ✓ | custom |
Free intentionally has no API access. Solo, Pro and Agency prices shown are launch prices for the first 30 customers (standard $29 / $59 / $99). MCP smart tools share the org's existing AI chat rate-limit pool (no double accounting).
Documentation that respects your time
Two focused references — the full REST API and the MCP server, with a per-tool catalog — right here on themailguard.ai.
Quickstart
5 minutes from API key to a monitored domain.
Authentication
Mint, rotate and scope API keys; storage best practices.
Errors
19 stable error codes mapped to retry semantics.
Pagination
Cursor-based, stable under concurrent inserts.
Idempotency
24-hour dedup window via Idempotency-Key header.
Rate limits
Per-tier ceilings surfaced via X-RateLimit-* headers.
Webhooks
5 event types, HMAC-signed with a 300s anti-replay window.
MCP setup
Claude Desktop, Cursor and curl walkthroughs.
Endpoint reference
All 23 endpoints with scopes, surfaces and shapes.
Built for procurement-grade scrutiny
GDPR, UK GDPR, LGPD, CCPA. Append-only audit log. Granular API key scopes. HMAC-signed webhooks with anti-replay. RLS-enforced multi-tenancy.
Scoped API keys
Stripe-style key_prefix visible + SHA-256 hashed secret. Granular scopes (domains:read, alerts:write, webhooks:manage, mcp:smart, …). Plain-text secret shown once, never persisted.
Audit trail
Every API call, every key creation, every revocation logged to public.audit_logs with org_id + actor + IP + UA. Streamable to your SIEM via /v1/audit-logs.
Compliance
Standard DPA at /legal/dpa. Subprocessor list at /legal/subprocessors. Self-serve GDPR Article 15 export + Article 17 erasure from /app/settings.
Start integrating today
Sign up, mint your first API key in Settings, and you're hitting the API in under 5 minutes. Free 14-day trial. No credit card.