微算力 · API 导航与自营网关
API 接入 EN
未登录登录
🧠

零代码风险的营销自动化中枢

systeme · vv1.0.4
专业技能 安全 S 级 作者 byungkyu 公开目录收录
3.7k 下载 765 安装 17.5k 收藏 32.1k 浏览

简介

Maton官方提供的Systeme.io API网关集成方案,通过托管OAuth实现联系人、课程、订阅等全生命周期管理,零代码风险。

原始描述

Systeme.io API integration with managed OAuth. Manage contacts, tags, courses, communities, and subscriptions. Use this skill when users want to manage Systeme.io contacts, enroll students in courses, manage community memberships, or handle subscriptions. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway). Requires network access and valid Maton API key.

通过你的 Agent 添加

安装目录:systeme/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/systeme/
Codex CLI~/.codex/skills/systeme/
DeepSeek Harness~/.agents/skills/systeme/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心用法

Systeme技能是Maton平台提供的纯文档型API网关集成方案,旨在简化与Systeme.io营销自动化平台的对接。用户无需编写复杂的OAuth认证逻辑,仅需通过Maton网关(gateway.maton.ai)即可调用Systeme.io的原生API。核心操作流程包括:获取Maton API Key → 创建Systeme.io连接(ctrl.maton.ai)→ 完成OAuth授权 → 通过网关发起API请求。

该技能覆盖Systeme.io六大核心模块:联系人管理(增删改查、自定义字段)、标签体系(创建与分配)、课程运营(学员注册、权限控制)、社区管理(成员准入)、订阅服务(查询与取消),以及分页查询机制。所有请求均通过HTTPS加密传输,Maton网关自动处理认证头转换,将用户的Bearer Token映射为Systeme.io所需的X-API-Key。

显著优点

零代码安全风险:作为纯文档型Skill,无本地Python/JavaScript执行文件,彻底杜绝代码注入、文件系统越权访问等隐患。所有示例仅使用标准库(urllib、fetch),无第三方依赖供应链风险。

托管OAuth简化集成:传统Systeme.io API对接需自行处理OAuth 2.0授权码流程、Token刷新等复杂逻辑。Maton通过连接管理面板(ctrl.maton.ai)将OAuth流程浏览器化,用户仅需点击授权链接即可完成绑定,大幅降低集成门槛。

统一网关抽象层:网关模式屏蔽了底层API差异,提供一致的认证接口(单一MATON_API_KEY)。支持多连接管理(通过Maton-Connection头切换不同Systeme.io账户),适合代运营、多租户等复杂场景。

企业级功能覆盖:完整支持Systeme.io的商业核心场景——从潜客获取(联系人+标签)、知识付费(课程注册 dripping_content/partial_access 精细权限)、社群运营到订阅变现,形成营销自动化闭环。

潜在缺点与局限性

网络依赖单点风险:所有流量强制经过Maton网关(gateway.maton.ai/ctrl.maton.ai),若Maton服务中断或响应延迟,将直接影响业务连续性。文档未提及SLA保障或服务等级协议。

功能滞后可能性:网关作为中间层,Systeme.io官方API更新后可能存在功能延迟。例如订阅模块明确标注"若未配置支付功能则返回404",提示部分高级功能需前置条件。

数据隐私考量:用户数据流经Maton基础设施,虽采用HTTPS加密,但涉及联系人邮箱、课程进度、订阅状态等敏感商业数据,需评估Maton的数据处理合规性(GDPR/CCPA)。

调试复杂度增加:网关抽象层在简化调用的同时,也增加了问题定位难度。400错误可能源于Maton连接缺失或Systeme.io参数错误,需分层排查。

适合的目标群体

数字营销从业者:需要自动化管理Systeme.io联系人、执行标签分层、批量注册课程学员的运营人员,无需开发背景即可通过示例代码快速上手。

SaaS集成开发者:构建营销自动化工作流、CRM同步工具、学员管理系统的工程师,利用网关OAuth托管能力减少认证模块开发成本。

代运营服务商:管理多个客户Systeme.io账户的机构,通过多连接切换功能实现统一平台操作,避免频繁切换账号。

无代码/低代码平台用户:配合Claude等AI助手,通过自然语言指令直接生成API调用代码,实现"对话即操作"的轻量级集成。

使用风险

API密钥泄露风险:MATON_API_KEY作为唯一凭证,若硬编码在脚本或日志中泄露,攻击者可完全控制关联的Systeme.io账户。建议采用密钥管理服务(KMS)或环境变量隔离。

速率限制与成本:Systeme.io存在未公开的速率限制(X-RateLimit-*头),高频批量操作(如全量联系人同步)可能触发429错误。Maton网关可能叠加自身计费策略,需关注成本模型。

OAuth授权失效:Systeme.io侧授权撤销或Token过期后,连接状态变为INACTIVE,需人工重新授权。生产环境建议建立连接健康检查机制。

数据操作不可逆性:DELETE操作(删除联系人、取消注册、移除标签)无回收站机制,批量脚本需增加确认逻辑或备份流程。

技能正文


name: systeme description: | Systeme.io API integration with managed OAuth. Manage contacts, tags, courses, communities, and subscriptions. Use this skill when users want to manage Systeme.io contacts, enroll students in courses, manage community memberships, or handle subscriptions. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway). Requires network access and valid Maton API key. metadata: author: maton version: "1.0" clawdbot: emoji: 🧠 homepage: "https://maton.ai" requires: env: - MATON_API_KEY

Systeme.io

Access the Systeme.io API with managed OAuth authentication. Manage contacts, tags, courses, communities, and subscriptions.

Quick Start

# List contacts
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://gateway.maton.ai/systeme/api/contacts')
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/systeme/{native-api-path}

Replace {native-api-path} with the actual Systeme.io API endpoint path. The gateway proxies requests to api.systeme.io and automatically injects your API key.

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 Systeme.io connections at https://ctrl.maton.ai.

List Connections

python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://ctrl.maton.ai/connections?app=systeme&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 <<'EOF'
import urllib.request, os, json
data = json.dumps({'app': 'systeme'}).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 <<'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": "systeme",
    "metadata": {}
  }
}

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

Delete Connection

python <<'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 Systeme.io connections, specify which one to use with the Maton-Connection header:

python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://gateway.maton.ai/systeme/api/contacts')
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

Contact Operations

List Contacts
GET /systeme/api/contacts

Query Parameters:

  • limit - Number of items per page (10-100, optional)
  • startingAfter - ID of last received item for pagination (optional)
  • order - Sort order: asc or desc (default: desc, optional)
Get Contact
GET /systeme/api/contacts/{id}
Create Contact
POST /systeme/api/contacts
Content-Type: application/json

{
  "email": "john@example.com",
  "firstName": "John",
  "lastName": "Doe",
  "phoneNumber": "+1234567890",
  "locale": "en",
  "fields": [
    {
      "slug": "custom_field_slug",
      "value": "custom value"
    }
  ]
}
Update Contact
PATCH /systeme/api/contacts/{id}
Content-Type: application/merge-patch+json

{
  "firstName": "Jane",
  "lastName": "Smith"
}
Delete Contact
DELETE /systeme/api/contacts/{id}

Tag Operations

List Tags
GET /systeme/api/tags
Get Tag
GET /systeme/api/tags/{id}
Create Tag
POST /systeme/api/tags
Content-Type: application/json

{
  "name": "VIP Customer"
}
Update Tag
PUT /systeme/api/tags/{id}
Content-Type: application/json

{
  "name": "Premium Customer"
}
Delete Tag
DELETE /systeme/api/tags/{id}

Contact Tag Operations

Assign Tag to Contact
POST /systeme/api/contacts/{id}/tags
Content-Type: application/json

{
  "tagId": 12345
}
Remove Tag from Contact
DELETE /systeme/api/contacts/{id}/tags/{tagId}

Contact Field Operations

List Contact Fields
GET /systeme/api/contact_fields
Create Contact Field
POST /systeme/api/contact_fields
Content-Type: application/json

{
  "name": "Company Name",
  "slug": "company_name"
}
Update Contact Field
PATCH /systeme/api/contact_fields/{slug}
Content-Type: application/merge-patch+json

{
  "name": "Organization Name"
}
Delete Contact Field
DELETE /systeme/api/contact_fields/{slug}

Course Operations

List Courses
GET /systeme/api/school/courses
List Enrollments
GET /systeme/api/school/enrollments
Create Enrollment
POST /systeme/api/school/courses/{courseId}/enrollments
Content-Type: application/json

{
  "contactId": 12345,
  "accessType": "full_access"
}

Required Fields:

  • contactId - The ID of the contact to enroll
  • accessType - Access type: full_access, partial_access, or dripping_content

Note: If accessType is partial_access, you must also provide a modules array with module IDs.

Delete Enrollment
DELETE /systeme/api/school/enrollments/{id}

Community Operations

List Communities
GET /systeme/api/community/communities
List Memberships
GET /systeme/api/community/memberships
Create Membership
POST /systeme/api/community/communities/{communityId}/memberships
Content-Type: application/json

{
  "contactId": 12345
}
Delete Membership
DELETE /systeme/api/community/memberships/{id}

Subscription Operations

List Subscriptions
GET /systeme/api/payment/subscriptions
Cancel Subscription
POST /systeme/api/payment/subscriptions/{id}/cancel

Pagination

Systeme.io uses cursor-based pagination with the following parameters:

GET /systeme/api/contacts?limit=50&startingAfter=12345&order=asc

Parameters:

  • limit - Number of items per page (10-100)
  • startingAfter - ID of the last item from the previous page
  • order - Sort order: asc or desc (default: desc)

Response:

{
  "items": [...],
  "hasMore": true
}

When hasMore is true, use the ID of the last item in items as startingAfter to get the next page.

Code Examples

JavaScript

const response = await fetch(
  'https://gateway.maton.ai/systeme/api/contacts',
  {
    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/systeme/api/contacts',
    headers={'Authorization': f'Bearer {os.environ["MATON_API_KEY"]}'}
)
data = response.json()

Create Contact with Tag

import os
import requests

# Create contact
contact = requests.post(
    'https://gateway.maton.ai/systeme/api/contacts',
    headers={
        'Authorization': f'Bearer {os.environ["MATON_API_KEY"]}',
        'Content-Type': 'application/json'
    },
    json={
        'email': 'new@example.com',
        'firstName': 'New',
        'lastName': 'Contact'
    }
).json()

# Assign tag
requests.post(
    f'https://gateway.maton.ai/systeme/api/contacts/{contact["id"]}/tags',
    headers={
        'Authorization': f'Bearer {os.environ["MATON_API_KEY"]}',
        'Content-Type': 'application/json'
    },
    json={'tagId': 12345}
)

Notes

  • Systeme.io uses API key authentication (passed as X-API-Key header natively)
  • The gateway automatically handles auth header transformation
  • Use application/merge-patch+json content type for PATCH requests
  • Contact, tag, course, and enrollment IDs are numeric integers
  • Rate limits are enforced via X-RateLimit-* headers
  • Systeme.io validates email domains - only real email addresses with valid MX records are accepted
  • The subscriptions endpoint (/api/payment/subscriptions) may return 404 if payment features are not configured
  • 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 Systeme.io connection or bad request
401 Invalid or missing Maton API key
429 Rate limited (check Retry-After header)
4xx/5xx Passthrough error from Systeme.io 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 <<'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 systeme. For example:
  • Correct: https://gateway.maton.ai/systeme/api/contacts
  • Incorrect: https://gateway.maton.ai/api/contacts

Resources

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

apimarketingautomationcrmeducation-researchproductivitybackend

同类 Skill