Want a free personalized recommendation for your software stack?Get yours
That Marketing Buddy
Home/API/MailerLite
MailerLite

MailerLite API

Yes. MailerLite's mature REST API covers subscribers, campaigns and automations with Bearer-token auth and official SDKs in five languages. See developers.mailerlite.com for the full reference.

Auth: OAuthSDKs: PHP, Node.js, Python, Go, RubyWebhooksMCP also availableLLMs: Claude (Desktop/Web), Claude Code, Cursor, ChatGPT, n8n
Public REST API documentedAgent-readiness 8/10
Facts verified 2026-07-13

What is the MailerLite API?

MailerLite also has a mature REST API that predates the MCP server, so if you are building your own pipeline rather than driving it from an agent, the direct API is fully supported. It covers subscribers, groups, segments, fields, campaigns, automations, forms and e-commerce, mirroring the MCP tool set.

Authentication is Bearer-token: you generate an API key in the MailerLite account settings and send it in the Authorization header. MailerLite publishes official SDKs (including PHP, Node.js, Python, Go and Ruby), so you do not have to hand-roll a client, which is a real advantage over tools that only ship an OpenAPI spec.

The API is the same data layer the MCP server exposes, so the two are consistent: prototype an agent workflow through the MCP server, then, if you need it in production code, drop down to the REST API and an official SDK for the same operations.

For the broader picture: MailerLite review, full pricing breakdown, .

HOOK IT TO YOUR STACK

Real MailerLite API calls you'll write

mailerlite-apirest
#List campaigns from the last 30 days
GET/v3/campaigns?since=30d&fields=name,open_rate,clicks
200 OK · 12 campaigns
Black Friday Teaseropen 42.1%
Product launchopen 38.5%
Weekly digest #12open 27.0%
Welcome flow step 2open 61.3%
mailerlite-apirest
#Create a new automation programmatically
POST/v3/automations
201 Created · automation_id: aut_8x
Statusdraft
Steps configured0
Estimated audience2,847
Push steps via PUT /automations/{id}/steps.
mailerlite-apirest
#Add a contact and tag them in one call
POST/v3/contacts
201 Created · contact_id: c_4f12
Lifecycle stagesubscriber
Tags applied1
Triggers firedwelcome-series
TMB SCORE FOR MailerLiteAgent fit: 8/10
Read review →

Endpoints illustrative. Confirm exact paths against the live API docs before integrating.

How much does the MailerLite API actually cost?

Verify on docs

MailerLite publishes an API, but per-tier gating wasn't extracted automatically.

  • Most likely scenario: API access is either included in all paid plans, or it's gated to higher tiers and we need to verify on the live docs page.
  • Until verified, treat the question "which plan unlocks the API" as open. Don't budget on the assumption it's free with the cheapest paid plan.

API at a glance

Auth method
OAuth
SDK languages
PHP, Node.js, Python, Go, Ruby
OpenAPI spec
Webhooks
MailerLite supports webhooks (exposed both through the MCP server's tools and the REST API) for subscriber and campaign events, so you can drive event-based automation rather than polling.
Structured outputs

Webhooks: MailerLite supports webhooks (exposed both through the MCP server's tools and the REST API) for subscriber and campaign events, so you can drive event-based automation rather than polling.

Which AI clients can read MailerLite data?

Not every AI assistant supports MCP natively. Here's the per-client picture for MailerLite specifically.

ClientSupportNotes
Claude (Desktop/Web)Native MCPAdd https://mcp.mailerlite.com/mcp as a custom connector; OAuth login, no API key.
Claude CodeNative MCPAdd the remote MCP server URL; full subscriber, campaign and automation tools available.
CursorNative MCPDocumented by MailerLite as a supported MCP client against the same endpoint.
ChatGPTNative MCPSupported on ChatGPT Pro/Plus (beta) as an MCP client.
n8nAPI-only (custom code)No native MCP node; integrate via the MailerLite REST API with a Bearer API key.

MailerLite also has an MCP server

If you're wiring MailerLite into Claude / Cursor / Codex, the MCP server is usually less code than the REST API.

See MailerLite MCP page

What you can build with the MailerLite API

Three personas, three different shapes of build. Pick the row that matches how you actually ship.

SOLO DEV / FOUNDER

Glue MailerLite into your daily workflow

  • Pull a digest of campaign performance into your morning Slack
  • Trigger a one-off backfill when something looks off
  • Pipe data into your own SQLite for ad-hoc queries
Effort: A weekend, one Node or Python script
AGENCY / CONSULTANT

Sell MailerLite reporting at scale

  • White-label MailerLite data into client-branded dashboards
  • Run scheduled multi-account reports without logging into the MailerLite UI
  • Cross-reference with the rest of the client's stack (CRM, analytics, ad spend)
Effort: 1-2 weeks, hits multi-tenant auth quickly
IN-HOUSE ENGINEER

Production pipelines for MailerLite

  • Real-time sync into your warehouse via webhooks
  • Custom alerts the dashboard's built-in alerting can't express
  • Backfill + idempotency handling for MailerLite data older than the dashboard exposes
Effort: Multi-week project, expect rate-limit tuning

Quickstart template

# Starter template — endpoint paths and SDK package names come from
# the MailerLite API docs: https://developers.mailerlite.com

curl -X GET "https://developers.mailerlite.com/<your-endpoint>" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Accept: application/json" | jq .

Template only. Endpoint paths, exact base URL, and auth header format come from developers.mailerlite.com.

Limits and gotchas

  • No OpenAPI spec — you write typed clients by hand or use a third-party generator on the docs HTML.
  • Webhooks available — react to MailerLite events in real time instead of polling.
  • Official SDKs: PHP, Node.js, Python, Go, Ruby. Use them to skip auth boilerplate and get type safety.
  • Rate limits: always read the docs page before scaling — the published limit is usually lower than the practical one and overages can be expensive.
  • No-code fallback: Zapier and Make.com cover the common triggers if you want to skip writing API code for simple flows.
8/10

Agent-readiness verdict

A mature, well-documented REST API with official SDKs across five languages and Bearer-token auth, covering the full product. Combined with the MCP server on top, MailerLite is one of the most complete agent-and-API stories in email marketing. A strong 8 out of 10.

Moderate agent-fit with community support. MailerLite has a public API with docs and a working community MCP server, plus native Claude integration, but lacks official MCP hosting, OpenAPI spec, and webhooks for event-driven workflows. The missing structured outputs and single-language SDK options limit automation complexity.

MailerLite API FAQ

Does MailerLite have a public API?+
Yes — REST API at developers.mailerlite.com.
Does MailerLite have official SDKs?+
Yes — official SDKs for PHP, Node.js, Python, Go, Ruby.
Does MailerLite support webhooks?+
Yes — webhooks are available on standard plans.
Should I use the API or the MCP server for Claude / Cursor / Codex?+
Prefer the MCP server for agent workflows — it's less code and pre-handles auth flows. Use the REST API for scheduled jobs, dashboards, and anything outside an LLM-driven flow.

Sources

Joonas Rotko
Joonas RotkoAuthor & Founder of That Marketing Buddy

10+ years in digital marketing. I review marketing software for AI-stack fit: real pricing, MCP and API support, and how cleanly each tool drops into an AI agent workflow, cross-checked against verified data and real user feedback.

MailerLite

Try MailerLite
WEEKLY NEWSLETTER

The marketing tools worth your money, scored for AI agent readiness

Every week I score the tools for MCP, API, and agent-readiness, then email you the ones that actually deliver, what plugs into Claude and Cursor, the pricing changes, and what to skip. No fluff, no daily spam.

Join for free. One email a week, unsubscribe anytime.