← 返回 Skills 市场
byungkyu

Lemlist

作者 byungkyu · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
1293
总下载
2
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install lemlist
功能描述
Lemlist API integration with managed OAuth. Sales automation and cold outreach platform. Use this skill when users want to manage campaigns, leads, activities, schedules, or unsubscribes in Lemlist. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway).
使用说明 (SKILL.md)

Lemlist

Access the Lemlist API with managed OAuth authentication. Manage campaigns, leads, activities, schedules, sequences, and unsubscribes for sales automation and cold outreach.

Quick Start

# List campaigns
python \x3C\x3C'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://gateway.maton.ai/lemlist/api/campaigns')
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/lemlist/api/{resource}

Replace {resource} with the actual Lemlist API endpoint path. The gateway proxies requests to api.lemlist.com/api 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 Lemlist 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=lemlist&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': 'lemlist'}).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": "3ecf268f-42ad-40cc-b77a-25e020fbf591",
    "status": "ACTIVE",
    "creation_time": "2026-02-12T02:00:53.023887Z",
    "last_updated_time": "2026-02-12T02:01:45.284131Z",
    "url": "https://connect.maton.ai/?session_token=...",
    "app": "lemlist",
    "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 Lemlist 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/lemlist/api/campaigns')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
req.add_header('Maton-Connection', '3ecf268f-42ad-40cc-b77a-25e020fbf591')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

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

API Reference

Team

Get Team

GET /lemlist/api/team

Returns team information including user IDs and settings.

Get Team Credits

GET /lemlist/api/team/credits

Returns remaining credits balance.

Get Team Senders

GET /lemlist/api/team/senders

Returns all team members and their associated campaigns.

Campaigns

List Campaigns

GET /lemlist/api/campaigns

Create Campaign

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

{
  "name": "My Campaign"
}

Creates a new campaign with an empty sequence and default schedule automatically added.

Get Campaign

GET /lemlist/api/campaigns/{campaignId}

Update Campaign

PATCH /lemlist/api/campaigns/{campaignId}
Content-Type: application/json

{
  "name": "Updated Campaign Name"
}

Pause Campaign

POST /lemlist/api/campaigns/{campaignId}/pause

Pauses a running campaign.

Campaign Sequences

Get Campaign Sequences

GET /lemlist/api/campaigns/{campaignId}/sequences

Returns all sequences and steps for a campaign.

Campaign Schedules

Get Campaign Schedules

GET /lemlist/api/campaigns/{campaignId}/schedules

Returns all schedules associated with a campaign.

Leads

Add Lead to Campaign

POST /lemlist/api/campaigns/{campaignId}/leads
Content-Type: application/json

{
  "email": "[email protected]",
  "firstName": "John",
  "lastName": "Doe",
  "companyName": "Acme Inc"
}

Creates a new lead and adds it to the campaign. If the lead already exists, it will be inserted into the campaign.

Get Lead by Email

GET /lemlist/api/leads/{email}

Update Lead in Campaign

PATCH /lemlist/api/campaigns/{campaignId}/leads/{email}
Content-Type: application/json

{
  "firstName": "Jane",
  "lastName": "Smith"
}

Delete Lead from Campaign

DELETE /lemlist/api/campaigns/{campaignId}/leads/{email}

Activities

List Activities

GET /lemlist/api/activities

Returns the history of campaign activities (last 100 activities).

Query parameters:

  • campaignId - Filter by campaign
  • type - Filter by activity type (emailsSent, emailsOpened, emailsClicked, etc.)

Schedules

List Schedules

GET /lemlist/api/schedules

Returns all schedules with pagination.

Response:

{
  "schedules": [...],
  "pagination": {
    "totalRecords": 10,
    "currentPage": 1,
    "nextPage": 2,
    "totalPage": 2
  }
}

Create Schedule

POST /lemlist/api/schedules
Content-Type: application/json

{
  "name": "Business Hours",
  "timezone": "America/New_York",
  "start": "09:00",
  "end": "17:00",
  "weekdays": [1, 2, 3, 4, 5]
}

Weekdays: 0 = Sunday, 1 = Monday, ..., 6 = Saturday

Get Schedule

GET /lemlist/api/schedules/{scheduleId}

Update Schedule

PATCH /lemlist/api/schedules/{scheduleId}
Content-Type: application/json

{
  "name": "Updated Schedule",
  "start": "08:00",
  "end": "18:00"
}

Delete Schedule

DELETE /lemlist/api/schedules/{scheduleId}

Companies

List Companies

GET /lemlist/api/companies

Returns companies with pagination.

Response:

{
  "data": [...],
  "total": 100
}

Unsubscribes

List Unsubscribes

GET /lemlist/api/unsubscribes

Returns all unsubscribed emails and domains.

Add Unsubscribe

POST /lemlist/api/unsubscribes
Content-Type: application/json

{
  "email": "[email protected]"
}

Can also add domains by using a domain value.

Inbox Labels

List Labels

GET /lemlist/api/inbox/labels

Returns all labels available to the team.

Pagination

Lemlist uses page-based pagination with different formats depending on the endpoint:

Schedules format:

{
  "schedules": [...],
  "pagination": {
    "totalRecords": 100,
    "currentPage": 1,
    "nextPage": 2,
    "totalPage": 10
  }
}

Companies format:

{
  "data": [...],
  "total": 100
}

Code Examples

JavaScript - List Campaigns

const response = await fetch(
  'https://gateway.maton.ai/lemlist/api/campaigns',
  {
    headers: {
      'Authorization': `Bearer ${process.env.MATON_API_KEY}`
    }
  }
);
const campaigns = await response.json();
console.log(campaigns);

Python - List Campaigns

import os
import requests

response = requests.get(
    'https://gateway.maton.ai/lemlist/api/campaigns',
    headers={'Authorization': f'Bearer {os.environ["MATON_API_KEY"]}'}
)
campaigns = response.json()
for campaign in campaigns:
    print(f"{campaign['name']}: {campaign['_id']}")

Python - Create Campaign and Add Lead

import os
import requests

headers = {'Authorization': f'Bearer {os.environ["MATON_API_KEY"]}'}
base_url = 'https://gateway.maton.ai/lemlist/api'

# Create campaign
campaign_response = requests.post(
    f'{base_url}/campaigns',
    headers=headers,
    json={'name': 'Q1 Outreach'}
)
campaign = campaign_response.json()
print(f"Created campaign: {campaign['_id']}")

# Add lead to campaign
lead_response = requests.post(
    f'{base_url}/campaigns/{campaign["_id"]}/leads',
    headers=headers,
    json={
        'email': '[email protected]',
        'firstName': 'John',
        'lastName': 'Doe',
        'companyName': 'Acme Corp'
    }
)
lead = lead_response.json()
print(f"Added lead: {lead['_id']}")

Notes

  • Campaign IDs start with cam_
  • Lead IDs start with lea_
  • Schedule IDs start with skd_
  • Sequence IDs start with seq_
  • Team IDs start with tea_
  • User IDs start with usr_
  • Campaigns cannot be deleted via API (only paused)
  • When creating a campaign, an empty sequence and default schedule are automatically added
  • Lead emails are used as identifiers for lead operations
  • IMPORTANT: When using curl commands, use curl -g when URLs contain brackets to disable glob parsing
  • IMPORTANT: When piping curl output to jq, environment variables may not expand correctly. Use Python examples instead.

Rate Limits

Operation Limit
API calls 20 per 2 seconds per API key

When rate limited, implement exponential backoff for retries.

Error Handling

Status Meaning
400 Bad request or missing Lemlist connection
401 Invalid or missing Maton API key
404 Resource not found
405 Method not allowed
422 Validation error
429 Rate limited
4xx/5xx Passthrough error from Lemlist 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 lemlist. For example:
  • Correct: https://gateway.maton.ai/lemlist/api/campaigns
  • Incorrect: https://gateway.maton.ai/api/campaigns

Resources

安全使用建议
This skill is coherent and appears to do what it says, but it routes all Lemlist operations through Maton's gateway. Before installing: confirm you trust maton.ai (no homepage/source repo is provided in the registry metadata), treat MATON_API_KEY as a high-privilege secret (store it securely and rotate if needed), review Maton's privacy/security docs to understand token storage and access, and consider whether you prefer giving direct Lemlist API credentials to a trusted integration instead of a third-party proxy. If you have concerns, ask the publisher for a source repository or independent documentation and validate the ctrl.maton.ai/gateway.maton.ai endpoints and their privacy/security posture.
功能分析
Type: OpenClaw Skill Name: lemlist Version: 1.0.0 The skill provides a legitimate integration with the Lemlist API via a Maton gateway. All API calls are directed to `maton.ai` endpoints, and the `MATON_API_KEY` is explicitly declared as a required environment variable. The `SKILL.md` file contains clear instructions and code examples (Python, JavaScript) that are consistent with the stated purpose of managing sales automation and cold outreach. There is no evidence of prompt injection attempts, data exfiltration beyond the declared API key, malicious execution, persistence mechanisms, or obfuscation.
能力评估
Purpose & Capability
The name/description say it's a Lemlist integration using managed OAuth. The only required environment variable is MATON_API_KEY, which matches the SKILL.md examples that call Maton endpoints (gateway.maton.ai and ctrl.maton.ai). No unrelated binaries or credentials are requested, so the declared requirements are proportionate to the stated purpose.
Instruction Scope
The runtime instructions are limited to calling Maton-managed endpoints (gateway.maton.ai and ctrl.maton.ai) and using MATON_API_KEY; they do not instruct reading arbitrary local files or other environment variables. Important caveat: all API traffic is proxied through Maton, so Maton will receive request/response data and manage the OAuth tokens — that is expected for this design but is a meaningful data-flow consideration the user must accept.
Install Mechanism
There is no install spec and no code files to be written or executed on disk (instruction-only). This minimizes install-time risk.
Credentials
Only one env var (MATON_API_KEY) is required and is used consistently in examples. This single credential is reasonable for a gateway/proxy design. Note: the skill metadata doesn't mark a 'primary' credential even though MATON_API_KEY is effectively the main secret — minor metadata mismatch but not a functional problem. The key grants Maton-wide access to proxied Lemlist operations, so it should be treated as a high-value secret.
Persistence & Privilege
The skill does not request always:true and is user-invocable only. It does not declare any persistent system-wide changes or modifications to other skills' configuration.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install lemlist
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /lemlist 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: Lemlist API integration with managed OAuth for Maton. - Seamlessly manage Lemlist campaigns, leads, sequences, schedules, activities, and unsubscribes through unified API endpoints. - Supports connection management (create, list, delete Lemlist OAuth connections) via ctrl.maton.ai. - All requests require a Maton API key for secure access. - Usage examples and detailed API reference included in documentation. - Allows specifying active Lemlist connections for multi-account scenarios. - Provides paginated access to team data, companies, schedules, and unsubscribes.
元数据
Slug lemlist
版本 1.0.0
许可证
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Lemlist 是什么?

Lemlist API integration with managed OAuth. Sales automation and cold outreach platform. Use this skill when users want to manage campaigns, leads, activities, schedules, or unsubscribes in Lemlist. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway). 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1293 次。

如何安装 Lemlist?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install lemlist」即可一键安装,无需额外配置。

Lemlist 是免费的吗?

是的,Lemlist 完全免费(开源免费),可自由下载、安装和使用。

Lemlist 支持哪些平台?

Lemlist 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Lemlist?

由 byungkyu(@byungkyu)开发并维护,当前版本 v1.0.0。

💬 留言讨论