Mailivery API Introduction

Welcome to the Mailivery API – the programmatic way to connect mailboxes, automate warm-up, and monitor deliverability from inside your own product.


The three things you need to do

That's it. Add a mailbox, start warm-up, choose your settings. Everything else in this reference is optional.

StepWhere
1Add a mailboxConnecting Mailboxes — Google, Microsoft 365, custom SMTP, SendGrid, or a hosted form
2Start warm-upStart Warm-UpPATCH /campaigns/{id}/start-warmup
3Choose your settingsRecommended Warm-Up Settings — if you don't know what to pick, start here

New here? The Quick Start walks all three end to end in about five minutes.


Why use the API?

  • Embed mailbox onboarding directly in your app (Google Workspace, Microsoft 365, SMTP, SendGrid).
  • Start, pause, or fine-tune warm-up automatically as your users' needs change.
  • Receive webhooks whenever a mailbox connects, disconnects, or hits an error.

Mailbox vs. campaign

In the Mailivery dashboard, a connected sending account is called a mailbox. In the API, the same entity is modeled as a campaign — that's why request paths use /campaigns/..., identifiers are named campaignId / campaign_id, and the response schema is Campaign. Throughout this reference, when an endpoint description says "mailbox," it refers to the same underlying record as campaignId in the URL or payload. No data difference — just two names for one thing.


Core concepts at a glance

ConceptWhat it means
Mailbox (API: campaign)Single mailbox connection that Mailivery warms up and monitors.
Warm-upControlled sending and replying that builds sender reputation before live cold outreach.
Health ScoreComposite metric (infrastructure, reputation, engagement) reported as a percentage.
TagsFree-form labels you can assign to mailboxes for filtering and analytics.
WebhookHTTP POST callback Mailivery sends to your endpoint when key events occur.

Base URL & versioning

https://app.mailivery.io/api/v1

All endpoints in this documentation are prefixed with /api/v1. Future versions will be surfaced via a version picker in the sidebar.


Authentication

BehaviorDetail
HeaderAuthorization: Bearer YOUR_API_KEY
Where to get a keySign up, subscribe to a plan, then go to Settings → Team Settings → API Access.
ScopeKeys are account-wide — they can access all mailboxes (campaigns) under the workspace.

Keep your key secret. Contact us to change your key ASAP if you suspect exposure.


Rate limits & error envelope

  • Rate limit: 240 requests per minute per key. Exceeding this returns HTTP 429 RATE_LIMIT_EXCEEDED.
  • Sending volume: emails per day is drawn from an account-wide pool, not allocated per mailbox. Check yours with Get Account Limits before provisioning at scale.
  • Error format: All non-2xx responses share a simple JSON structure:
{
  "code": "ERROR_CODE",
  "message": "Human-readable explanation."
}

Optional add-ons

None of these are required to run warm-up:

Custom Warm-Up TemplatesSupply your own warm-up message content instead of Mailivery's
Yahoo Deliverability FilterTune Yahoo warm-up delivery at team or mailbox level
Inbox Placement TestCheck whether mail lands in inbox or spam
Blacklist MonitoringWatch domains and IPs across major blocklists
Email VerificationValidate addresses individually or in bulk