← Back to Skills Marketplace
byungkyu

MailerLite

by byungkyu · GitHub ↗ · v1.0.2
cross-platform ✓ Security Clean
3503
Downloads
3
Stars
0
Active Installs
3
Versions
Install in OpenClaw
/install mailerlite
Description
MailerLite API integration with managed OAuth. Manage email subscribers, groups, campaigns, automations, and forms. Use this skill when users want to add subscribers, create email campaigns, manage groups, or work with MailerLite automations. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway).
README (SKILL.md)

MailerLite

Access the MailerLite API with managed OAuth authentication. Manage subscribers, groups, campaigns, automations, forms, fields, segments, and webhooks.

Quick Start

# List subscribers
python \x3C\x3C'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://gateway.maton.ai/mailerlite/api/subscribers?limit=10')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

Base URL

https://gateway.maton.ai/mailerlite/{native-api-path}

Replace {native-api-path} with the actual MailerLite API endpoint path. The gateway proxies requests to connect.mailerlite.com and automatically injects your OAuth token.

Authentication

All requests require the Maton API key in the Authorization header:

Authorization: Bearer $MATON_API_KEY

Environment Variable: Set your API key as MATON_API_KEY:

export MATON_API_KEY="YOUR_API_KEY"

Getting Your API Key

  1. Sign in or create an account at maton.ai
  2. Go to maton.ai/settings
  3. Copy your API key

Connection Management

Manage your MailerLite OAuth connections at https://ctrl.maton.ai.

List Connections

python \x3C\x3C'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://ctrl.maton.ai/connections?app=mailerlite&status=ACTIVE')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

Create Connection

python \x3C\x3C'EOF'
import urllib.request, os, json
data = json.dumps({'app': 'mailerlite'}).encode()
req = urllib.request.Request('https://ctrl.maton.ai/connections', data=data, method='POST')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
req.add_header('Content-Type', 'application/json')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

Get Connection

python \x3C\x3C'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

Response:

{
  "connection": {
    "connection_id": "21fd90f9-5935-43cd-b6c8-bde9d915ca80",
    "status": "ACTIVE",
    "creation_time": "2025-12-08T07:20:53.488460Z",
    "last_updated_time": "2026-01-31T20:03:32.593153Z",
    "url": "https://connect.maton.ai/?session_token=...",
    "app": "mailerlite",
    "metadata": {}
  }
}

Open the returned url in a browser to complete OAuth authorization.

Delete Connection

python \x3C\x3C'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}', method='DELETE')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

Specifying Connection

If you have multiple MailerLite connections, specify which one to use with the Maton-Connection header:

python \x3C\x3C'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://gateway.maton.ai/mailerlite/api/subscribers')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
req.add_header('Maton-Connection', '21fd90f9-5935-43cd-b6c8-bde9d915ca80')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

If omitted, the gateway uses the default (oldest) active connection.

API Reference

Subscriber Operations

List Subscribers

GET /mailerlite/api/subscribers

Query parameters:

  • filter[status] - Filter by status: active, unsubscribed, unconfirmed, bounced, junk
  • limit - Results per page (default: 25)
  • cursor - Pagination cursor
  • include - Include related data: groups

Get Subscriber

GET /mailerlite/api/subscribers/{subscriber_id_or_email}

Create/Upsert Subscriber

POST /mailerlite/api/subscribers
Content-Type: application/json

{
  "email": "[email protected]",
  "fields": {
    "name": "John Doe",
    "company": "Acme Inc"
  },
  "groups": ["12345678901234567"],
  "status": "active"
}

Returns 201 for new subscribers, 200 for updates.

Update Subscriber

PUT /mailerlite/api/subscribers/{subscriber_id}
Content-Type: application/json

{
  "fields": {
    "name": "Jane Doe"
  },
  "status": "active"
}

Delete Subscriber

DELETE /mailerlite/api/subscribers/{subscriber_id}

Get Subscriber Activity

GET /mailerlite/api/subscribers/{subscriber_id}/activity-log

Query parameters:

  • filter[log_name] - Filter by activity type: campaign_send, automation_email_sent, email_open, link_click, email_bounce, spam_complaint, unsubscribed
  • limit - Results per page (default: 100)
  • page - Page number (starts from 1)

Forget Subscriber (GDPR)

POST /mailerlite/api/subscribers/{subscriber_id}/forget

Group Operations

List Groups

GET /mailerlite/api/groups

Query parameters:

  • limit - Results per page
  • page - Page number (starts from 1)
  • filter[name] - Filter by name (partial match)
  • sort - Sort by: name, total, open_rate, click_rate, created_at (prepend - for descending)

Create Group

POST /mailerlite/api/groups
Content-Type: application/json

{
  "name": "Newsletter Subscribers"
}

Update Group

PUT /mailerlite/api/groups/{group_id}
Content-Type: application/json

{
  "name": "Updated Group Name"
}

Delete Group

DELETE /mailerlite/api/groups/{group_id}

Get Group Subscribers

GET /mailerlite/api/groups/{group_id}/subscribers

Query parameters:

  • filter[status] - Filter by status: active, unsubscribed, unconfirmed, bounced, junk
  • limit - Results per page (1-1000, default: 50)
  • cursor - Pagination cursor

Assign Subscriber to Group

POST /mailerlite/api/subscribers/{subscriber_id}/groups/{group_id}

Remove Subscriber from Group

DELETE /mailerlite/api/subscribers/{subscriber_id}/groups/{group_id}

Campaign Operations

List Campaigns

GET /mailerlite/api/campaigns

Query parameters:

  • filter[status] - Filter by status: sent, draft, ready
  • filter[type] - Filter by type: regular, ab, resend, rss
  • limit - Results per page: 10, 25, 50, or 100 (default: 25)
  • page - Page number (starts from 1)

Get Campaign

GET /mailerlite/api/campaigns/{campaign_id}

Create Campaign

POST /mailerlite/api/campaigns
Content-Type: application/json

{
  "name": "My Newsletter",
  "type": "regular",
  "emails": [
    {
      "subject": "Weekly Update",
      "from_name": "Newsletter",
      "from": "[email protected]"
    }
  ],
  "groups": ["12345678901234567"]
}

Update Campaign

PUT /mailerlite/api/campaigns/{campaign_id}
Content-Type: application/json

{
  "name": "Updated Campaign Name",
  "emails": [
    {
      "subject": "New Subject Line",
      "from_name": "Newsletter",
      "from": "[email protected]"
    }
  ]
}

Note: Only draft campaigns can be updated.

Schedule Campaign

POST /mailerlite/api/campaigns/{campaign_id}/schedule
Content-Type: application/json

{
  "delivery": "instant"
}

For scheduled delivery:

{
  "delivery": "scheduled",
  "schedule": {
    "date": "2026-03-15",
    "hours": "10",
    "minutes": "30"
  }
}

Cancel Campaign

POST /mailerlite/api/campaigns/{campaign_id}/cancel

Reverts a ready campaign to draft status.

Delete Campaign

DELETE /mailerlite/api/campaigns/{campaign_id}

Get Campaign Subscriber Activity

GET /mailerlite/api/campaigns/{campaign_id}/reports/subscriber-activity

Query parameters:

  • filter[type] - Filter by activity: opened, unopened, clicked, unsubscribed, forwarded, hardbounced, softbounced, junk
  • filter[search] - Search by email
  • limit - Results per page (10, 25, 50, or 100)
  • page - Page number (starts from 1)

Automation Operations

List Automations

GET /mailerlite/api/automations

Query parameters:

  • filter[enabled] - Filter by status: true or false
  • filter[name] - Filter by name
  • filter[group] - Filter by group ID
  • page - Page number (starts from 1)
  • limit - Results per page (default: 10)

Get Automation

GET /mailerlite/api/automations/{automation_id}

Create Automation

POST /mailerlite/api/automations
Content-Type: application/json

{
  "name": "Welcome Series"
}

Creates a draft automation.

Get Automation Activity

GET /mailerlite/api/automations/{automation_id}/activity

Query parameters:

  • filter[status] - Required: completed, active, canceled, failed
  • filter[date_from] - Start date (Y-m-d)
  • filter[date_to] - End date (Y-m-d)
  • filter[search] - Search by email
  • page - Page number (starts from 1)
  • limit - Results per page (default: 10)

Delete Automation

DELETE /mailerlite/api/automations/{automation_id}

Field Operations

List Fields

GET /mailerlite/api/fields

Query parameters:

  • limit - Results per page (max 100)
  • page - Page number (starts from 1)
  • filter[keyword] - Filter by keyword (partial match)
  • filter[type] - Filter by type: text, number, date
  • sort - Sort by: name, type (prepend - for descending)

Create Field

POST /mailerlite/api/fields
Content-Type: application/json

{
  "name": "Company",
  "type": "text"
}

Update Field

PUT /mailerlite/api/fields/{field_id}
Content-Type: application/json

{
  "name": "Organization"
}

Delete Field

DELETE /mailerlite/api/fields/{field_id}

Segment Operations

List Segments

GET /mailerlite/api/segments

Query parameters:

  • limit - Results per page (max 250)
  • page - Page number (starts from 1)

Get Segment Subscribers

GET /mailerlite/api/segments/{segment_id}/subscribers

Query parameters:

  • filter[status] - Filter by status: active, unsubscribed, unconfirmed, bounced, junk
  • limit - Results per page
  • cursor - Pagination cursor

Update Segment

PUT /mailerlite/api/segments/{segment_id}
Content-Type: application/json

{
  "name": "High Engagement Subscribers"
}

Delete Segment

DELETE /mailerlite/api/segments/{segment_id}

Form Operations

List Forms

GET /mailerlite/api/forms/{type}

Path parameters:

  • type - Form type: popup, embedded, promotion

Query parameters:

  • limit - Results per page
  • page - Page number (starts from 1)
  • filter[name] - Filter by name (partial match)
  • sort - Sort by: created_at, name, conversions_count, opens_count, visitors, conversion_rate, last_registration_at (prepend - for descending)

Get Form

GET /mailerlite/api/forms/{form_id}

Update Form

PUT /mailerlite/api/forms/{form_id}
Content-Type: application/json

{
  "name": "Newsletter Signup"
}

Delete Form

DELETE /mailerlite/api/forms/{form_id}

Get Form Subscribers

GET /mailerlite/api/forms/{form_id}/subscribers

Query parameters:

  • filter[status] - Filter by status: active, unsubscribed, unconfirmed, bounced, junk
  • limit - Results per page (default: 25)
  • cursor - Pagination cursor

Webhook Operations

List Webhooks

GET /mailerlite/api/webhooks

Get Webhook

GET /mailerlite/api/webhooks/{webhook_id}

Create Webhook

POST /mailerlite/api/webhooks
Content-Type: application/json

{
  "name": "Subscriber Updates",
  "events": ["subscriber.created", "subscriber.updated"],
  "url": "https://example.com/webhook"
}

Update Webhook

PUT /mailerlite/api/webhooks/{webhook_id}
Content-Type: application/json

{
  "name": "Updated Webhook",
  "enabled": true
}

Delete Webhook

DELETE /mailerlite/api/webhooks/{webhook_id}

Pagination

MailerLite uses cursor-based pagination for most endpoints and page-based pagination for some.

Cursor-based Pagination

GET /mailerlite/api/subscribers?limit=25&cursor=eyJpZCI6MTIzNDU2fQ

Response includes pagination links:

{
  "data": [...],
  "links": {
    "first": "https://connect.mailerlite.com/api/subscribers?cursor=...",
    "last": null,
    "prev": null,
    "next": "https://connect.mailerlite.com/api/subscribers?cursor=eyJpZCI6MTIzNDU2fQ"
  },
  "meta": {
    "path": "https://connect.mailerlite.com/api/subscribers",
    "per_page": 25,
    "next_cursor": "eyJpZCI6MTIzNDU2fQ",
    "prev_cursor": null
  }
}

Page-based Pagination

GET /mailerlite/api/groups?limit=25&page=2

Response includes page metadata:

{
  "data": [...],
  "meta": {
    "current_page": 2,
    "from": 26,
    "last_page": 4,
    "per_page": 25,
    "to": 50,
    "total": 100
  }
}

Code Examples

JavaScript

const response = await fetch(
  'https://gateway.maton.ai/mailerlite/api/subscribers?limit=10',
  {
    headers: {
      'Authorization': `Bearer ${process.env.MATON_API_KEY}`
    }
  }
);
const data = await response.json();

Python

import os
import requests

response = requests.get(
    'https://gateway.maton.ai/mailerlite/api/subscribers',
    headers={'Authorization': f'Bearer {os.environ["MATON_API_KEY"]}'},
    params={'limit': 10}
)
data = response.json()

Create Subscriber Example

import os
import requests

response = requests.post(
    'https://gateway.maton.ai/mailerlite/api/subscribers',
    headers={
        'Authorization': f'Bearer {os.environ["MATON_API_KEY"]}',
        'Content-Type': 'application/json'
    },
    json={
        'email': '[email protected]',
        'fields': {'name': 'John Doe'},
        'status': 'active'
    }
)
data = response.json()

Notes

  • Rate limit: 120 requests per minute
  • Subscriber emails are used as unique identifiers (POST creates or updates)
  • Group names have a maximum length of 255 characters
  • Only draft campaigns can be updated
  • API versioning can be overridden via X-Version: YYYY-MM-DD header
  • IMPORTANT: When using curl commands, use curl -g when URLs contain brackets to disable glob parsing
  • IMPORTANT: When piping curl output to jq or other commands, environment variables like $MATON_API_KEY may not expand correctly in some shell environments

Error Handling

Status Meaning
400 Missing MailerLite connection
401 Invalid or missing Maton API key
403 Forbidden - insufficient permissions
404 Resource not found
422 Validation error
429 Rate limited (120 req/min)
4xx/5xx Passthrough error from MailerLite API

Troubleshooting: API Key Issues

  1. Check that the MATON_API_KEY environment variable is set:
echo $MATON_API_KEY
  1. Verify the API key is valid by listing connections:
python \x3C\x3C'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://ctrl.maton.ai/connections')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

Troubleshooting: Invalid App Name

  1. Ensure your URL path starts with mailerlite. For example:
  • Correct: https://gateway.maton.ai/mailerlite/api/subscribers
  • Incorrect: https://gateway.maton.ai/api/subscribers

Resources

Usage Guidance
This skill appears coherent and only needs a Maton API key to proxy MailerLite API calls. Before installing, verify you trust maton.ai (and the gateway/ctrl endpoints listed) because using this skill hands Maton the ability to obtain/hold OAuth tokens on your behalf. Use a least-privilege API key if possible, store MATON_API_KEY securely, and avoid reusing high-privilege credentials. The skill has no install steps, but it will make network calls to Maton services — if you prefer, use MailerLite's official API directly instead of a third-party gateway. Finally, note the package has no homepage/source listed in the registry; if provenance matters, try to confirm the publisher (owner ID) or obtain an official source before wider deployment.
Capability Analysis
Type: OpenClaw Skill Name: mailerlite Version: 1.0.2 The skill is designed for MailerLite API integration via the `maton.ai` gateway. All code examples and instructions in `SKILL.md` are consistent with this stated purpose, demonstrating standard API calls using `urllib.request` or `requests` to `https://gateway.maton.ai` and `https://ctrl.maton.ai`. The `MATON_API_KEY` is securely retrieved from environment variables, and there is no evidence of data exfiltration to unauthorized endpoints, malicious execution, persistence mechanisms, obfuscation, or prompt injection attempts against the AI agent. The documentation is clear and provides helpful, non-malicious guidance.
Capability Assessment
Purpose & Capability
Name/description match the actual behavior: SKILL.md documents MailerLite operations (subscribers, groups, campaigns, automations, webhooks) and shows requests routed through Maton endpoints (gateway.maton.ai, ctrl.maton.ai). The single required env var (MATON_API_KEY) aligns with the gateway-managed OAuth design.
Instruction Scope
Runtime instructions are limited to making HTTP requests to Maton-provided endpoints and reading the MATON_API_KEY from the environment. No instructions ask the agent to read arbitrary local files, other env vars, or to exfiltrate data to unexpected endpoints outside the Maton/MailerLite flow. The instructions do tell the user to open an OAuth URL in a browser to complete auth, which is expected for managed OAuth.
Install Mechanism
There is no install spec and no code files to write or run; this is an instruction-only skill (lowest install risk).
Credentials
Only one environment variable is required (MATON_API_KEY), which is appropriate for a gateway-based integration. Note: registry metadata lists no 'primary credential' field even though MATON_API_KEY is required — this is a minor metadata inconsistency but not a security issue by itself.
Persistence & Privilege
always is false and the skill does not request persistent system-wide changes or access to other skills' configs. The skill can be invoked autonomously (platform default), which increases blast radius only in general but is not a red flag here by itself.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install mailerlite
  3. After installation, invoke the skill by name or use /mailerlite
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.2
- Added metadata section for clawdbot, specifying required environment variable MATON_API_KEY and emoji. - No changes to functionality or code were made.
v1.0.1
- No file changes detected in this version. - No user-facing updates or changelog entries required for version 1.0.1.
v1.0.0
Initial release of MailerLite API integration skill. - Provides managed OAuth authentication for secure access. - Supports subscriber, group, campaign, automation, and form management via the MailerLite API. - Includes detailed usage instructions, Python examples, and guidance for connection management. - Allows specifying multiple MailerLite connections using the Maton-Connection header. - Requires a valid Maton API key and network access.
Metadata
Slug mailerlite
Version 1.0.2
License
All-time Installs 0
Active Installs 0
Total Versions 3
Frequently Asked Questions

What is MailerLite?

MailerLite API integration with managed OAuth. Manage email subscribers, groups, campaigns, automations, and forms. Use this skill when users want to add subscribers, create email campaigns, manage groups, or work with MailerLite automations. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway). It is an AI Agent Skill for Claude Code / OpenClaw, with 3503 downloads so far.

How do I install MailerLite?

Run "/install mailerlite" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is MailerLite free?

Yes, MailerLite is completely free (open-source). You can download, install and use it at no cost.

Which platforms does MailerLite support?

MailerLite is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created MailerLite?

It is built and maintained by byungkyu (@byungkyu); the current version is v1.0.2.

💬 Comments