简介
通过 Maton 网关集成 Systeme.io 平台,支持联系人管理、课程注册、社区会员及订阅操作,适合在线教育创作者自动化运营。
原始描述
Systeme.io API integration with managed OAuth. Manage contacts, tags, courses, communities, and subscriptions. Use this skill when users want to manage Syste...
通过你的 Agent 添加
安装目录:systeme/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心用法
本技能提供 Systeme.io 平台的全套 API 集成能力,通过 Maton 托管网关实现 OAuth 认证管理,无需自行处理复杂的令牌刷新和权限配置。开发者只需持有 Maton API Key,即可调用 Systeme.io 的原生接口完成以下核心操作:
1. 联系人全生命周期管理
- 创建、查询、更新、删除联系人档案
- 支持自定义字段扩展(如公司名称、客户等级等)
- 标签体系管理:批量打标签、移除标签,实现精细化用户分层
2. 在线教育课程运营
- 枚举课程与学员注册记录
- 自动化课程 enrollment,支持
full_access/partial_access/dripping_content 三种权限模式
- 灵活控制模块级访问权限,适应阶梯式课程交付场景
3. 社区会员管理
- 社区空间成员列表查询与批量管理
- 自动化入会/退会流程,支持付费社区与免费社区混合运营
4. 订阅与支付监控
- 订阅状态查询与手动取消操作
- 与 Systeme.io 支付体系打通,便于营收数据分析
技术接入特点
- 零 OAuth 配置:通过
ctrl.maton.ai 可视化界面完成 Systeme.io 账号授权,自动维护令牌有效性
- 多连接支持:可同时管理多个 Systeme.io 站点,通过
Maton-Connection 头指定目标站点
- 标准 REST 风格:游标分页(
startingAfter + hasMore)、标准 HTTP 动词、语义化状态码
显著优点
维度
优势
接入门槛
无需阅读 Systeme.io OAuth 文档,5 分钟完成首次调用
稳定性
Maton 网关处理令牌刷新、速率限制重试,降低 401/429 错误
功能覆盖
完整覆盖 Contact/Tag/Course/Community/Subscription 五大业务域
调试友好
提供 bash/Python/JavaScript 多语言示例,错误码对照表清晰
潜在局限与风险
功能性限制
- 支付模块依赖配置:订阅接口
/payment/subscriptions 在未启用 Systeme.io 支付功能时返回 404
- 邮箱严格校验:Systeme.io 强制验证 MX 记录,测试环境需准备真实域名邮箱
- PATCH 语义特殊:更新操作要求
application/merge-patch+json 类型,与普通 JSON PATCH 不兼容
运维注意事项
- 速率限制:需关注
X-RateLimit-* 响应头,高频场景建议实现指数退避
- 连接有效期:OAuth 授权长期有效,但建议定期巡检
ctrl.maton.ai 中的连接状态
- Shell 环境坑点:curl 含方括号的 URL 需加
-g 禁用 glob;管道中的环境变量可能解析异常
适合人群
- 知识付费创作者:需要自动化课程交付、学员管理的在线教育家
- SaaS 运营团队:使用 Systeme.io 作为 CRM/营销自动化后台,需数据双向同步
- 低代码集成开发者:希望通过标准化 HTTP 接口快速对接,避免维护 OAuth 代码
常规风险
风险等级
场景
缓解措施
中
误删生产环境联系人/标签
操作前通过 GET 确认资源,关键删除加人工审核
中
重复注册导致学员权限异常
enrollment 前查询现有注册记录,实现幂等逻辑
低
API Key 泄露
定期轮换 Maton API Key,避免硬编码
低
社区会员误操作影响用户体验
批量操作前小范围测试,保留回滚机制
综合评价
- 枚举课程与学员注册记录
- 自动化课程 enrollment,支持
full_access/partial_access/dripping_content三种权限模式 - 灵活控制模块级访问权限,适应阶梯式课程交付场景
3. 社区会员管理
- 社区空间成员列表查询与批量管理
- 自动化入会/退会流程,支持付费社区与免费社区混合运营
4. 订阅与支付监控
- 订阅状态查询与手动取消操作
- 与 Systeme.io 支付体系打通,便于营收数据分析
技术接入特点
- 零 OAuth 配置:通过
ctrl.maton.ai 可视化界面完成 Systeme.io 账号授权,自动维护令牌有效性
- 多连接支持:可同时管理多个 Systeme.io 站点,通过
Maton-Connection 头指定目标站点
- 标准 REST 风格:游标分页(
startingAfter + hasMore)、标准 HTTP 动词、语义化状态码
显著优点
维度
优势
接入门槛
无需阅读 Systeme.io OAuth 文档,5 分钟完成首次调用
稳定性
Maton 网关处理令牌刷新、速率限制重试,降低 401/429 错误
功能覆盖
完整覆盖 Contact/Tag/Course/Community/Subscription 五大业务域
调试友好
提供 bash/Python/JavaScript 多语言示例,错误码对照表清晰
潜在局限与风险
功能性限制
- 支付模块依赖配置:订阅接口
/payment/subscriptions 在未启用 Systeme.io 支付功能时返回 404
- 邮箱严格校验:Systeme.io 强制验证 MX 记录,测试环境需准备真实域名邮箱
- PATCH 语义特殊:更新操作要求
application/merge-patch+json 类型,与普通 JSON PATCH 不兼容
运维注意事项
- 速率限制:需关注
X-RateLimit-* 响应头,高频场景建议实现指数退避
- 连接有效期:OAuth 授权长期有效,但建议定期巡检
ctrl.maton.ai 中的连接状态
- Shell 环境坑点:curl 含方括号的 URL 需加
-g 禁用 glob;管道中的环境变量可能解析异常
适合人群
- 知识付费创作者:需要自动化课程交付、学员管理的在线教育家
- SaaS 运营团队:使用 Systeme.io 作为 CRM/营销自动化后台,需数据双向同步
- 低代码集成开发者:希望通过标准化 HTTP 接口快速对接,避免维护 OAuth 代码
常规风险
风险等级
场景
缓解措施
中
误删生产环境联系人/标签
操作前通过 GET 确认资源,关键删除加人工审核
中
重复注册导致学员权限异常
enrollment 前查询现有注册记录,实现幂等逻辑
低
API Key 泄露
定期轮换 Maton API Key,避免硬编码
低
社区会员误操作影响用户体验
批量操作前小范围测试,保留回滚机制
综合评价
- 订阅状态查询与手动取消操作
- 与 Systeme.io 支付体系打通,便于营收数据分析
技术接入特点
- 零 OAuth 配置:通过
ctrl.maton.ai 可视化界面完成 Systeme.io 账号授权,自动维护令牌有效性
- 多连接支持:可同时管理多个 Systeme.io 站点,通过
Maton-Connection 头指定目标站点
- 标准 REST 风格:游标分页(
startingAfter + hasMore)、标准 HTTP 动词、语义化状态码
显著优点
维度
优势
接入门槛
无需阅读 Systeme.io OAuth 文档,5 分钟完成首次调用
稳定性
Maton 网关处理令牌刷新、速率限制重试,降低 401/429 错误
功能覆盖
完整覆盖 Contact/Tag/Course/Community/Subscription 五大业务域
调试友好
提供 bash/Python/JavaScript 多语言示例,错误码对照表清晰
潜在局限与风险
功能性限制
- 支付模块依赖配置:订阅接口
/payment/subscriptions 在未启用 Systeme.io 支付功能时返回 404
- 邮箱严格校验:Systeme.io 强制验证 MX 记录,测试环境需准备真实域名邮箱
- PATCH 语义特殊:更新操作要求
application/merge-patch+json 类型,与普通 JSON PATCH 不兼容
运维注意事项
- 速率限制:需关注
X-RateLimit-* 响应头,高频场景建议实现指数退避
- 连接有效期:OAuth 授权长期有效,但建议定期巡检
ctrl.maton.ai 中的连接状态
- Shell 环境坑点:curl 含方括号的 URL 需加
-g 禁用 glob;管道中的环境变量可能解析异常
适合人群
- 知识付费创作者:需要自动化课程交付、学员管理的在线教育家
- SaaS 运营团队:使用 Systeme.io 作为 CRM/营销自动化后台,需数据双向同步
- 低代码集成开发者:希望通过标准化 HTTP 接口快速对接,避免维护 OAuth 代码
常规风险
风险等级
场景
缓解措施
中
误删生产环境联系人/标签
操作前通过 GET 确认资源,关键删除加人工审核
中
重复注册导致学员权限异常
enrollment 前查询现有注册记录,实现幂等逻辑
低
API Key 泄露
定期轮换 Maton API Key,避免硬编码
低
社区会员误操作影响用户体验
批量操作前小范围测试,保留回滚机制
综合评价
ctrl.maton.ai 可视化界面完成 Systeme.io 账号授权,自动维护令牌有效性Maton-Connection 头指定目标站点startingAfter + hasMore)、标准 HTTP 动词、语义化状态码| 维度 | 优势 |
|---|---|
| 接入门槛 | 无需阅读 Systeme.io OAuth 文档,5 分钟完成首次调用 |
| 稳定性 | Maton 网关处理令牌刷新、速率限制重试,降低 401/429 错误 |
| 功能覆盖 | 完整覆盖 Contact/Tag/Course/Community/Subscription 五大业务域 |
| 调试友好 | 提供 bash/Python/JavaScript 多语言示例,错误码对照表清晰 |
潜在局限与风险
功能性限制
- 支付模块依赖配置:订阅接口
/payment/subscriptions在未启用 Systeme.io 支付功能时返回 404 - 邮箱严格校验:Systeme.io 强制验证 MX 记录,测试环境需准备真实域名邮箱
- PATCH 语义特殊:更新操作要求
application/merge-patch+json类型,与普通 JSON PATCH 不兼容
运维注意事项
X-RateLimit-* 响应头,高频场景建议实现指数退避ctrl.maton.ai 中的连接状态-g 禁用 glob;管道中的环境变量可能解析异常- 知识付费创作者:需要自动化课程交付、学员管理的在线教育家
- SaaS 运营团队:使用 Systeme.io 作为 CRM/营销自动化后台,需数据双向同步
- 低代码集成开发者:希望通过标准化 HTTP 接口快速对接,避免维护 OAuth 代码
常规风险
风险等级
场景
缓解措施
中
误删生产环境联系人/标签
操作前通过 GET 确认资源,关键删除加人工审核
中
重复注册导致学员权限异常
enrollment 前查询现有注册记录,实现幂等逻辑
低
API Key 泄露
定期轮换 Maton API Key,避免硬编码
低
社区会员误操作影响用户体验
批量操作前小范围测试,保留回滚机制
综合评价
| 风险等级 | 场景 | 缓解措施 |
|---|---|---|
| 中 | 误删生产环境联系人/标签 | 操作前通过 GET 确认资源,关键删除加人工审核 |
| 中 | 重复注册导致学员权限异常 | enrollment 前查询现有注册记录,实现幂等逻辑 |
| 低 | API Key 泄露 | 定期轮换 Maton API Key,避免硬编码 |
| 低 | 社区会员误操作影响用户体验 | 批量操作前小范围测试,保留回滚机制 |
该技能是 Systeme.io 生态的「官方增强版」接入方案,核心价值在于屏蔽 OAuth 复杂度、提供多连接管理能力。对于已使用或计划使用 Systeme.io 构建在线业务的知识创作者而言,能显著降低工程投入,加速从「工具配置」到「业务自动化」的转化。建议配合 Maton 连接管理后台使用,建立监控告警机制以应对潜在的速率限制和连接过期问题。
技能正文
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}
# 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
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
- Sign in or create an account at maton.ai
- Go to maton.ai/settings
- 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
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
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
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
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
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
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:ascordesc(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"
}
GET /systeme/api/contacts/{id}
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"
}
PATCH /systeme/api/contacts/{id}
Content-Type: application/merge-patch+json
{
"firstName": "Jane",
"lastName": "Smith"
}
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"
}
GET /systeme/api/tags/{id}
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"
}
PUT /systeme/api/tags/{id}
Content-Type: application/json
{
"name": "Premium Customer"
}
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"
}
DELETE /systeme/api/contacts/{id}/tags/{tagId}
List Contact Fields
GET /systeme/api/contact_fields
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"
}
PATCH /systeme/api/contact_fields/{slug}
Content-Type: application/merge-patch+json
{
"name": "Organization Name"
}
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"
}
GET /systeme/api/school/enrollments
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 enrollaccessType- Access type:full_access,partial_access, ordripping_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
DELETE /systeme/api/school/enrollments/{id}
List Communities
GET /systeme/api/community/communities
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
POST /systeme/api/community/communities/{communityId}/memberships
Content-Type: application/json
{
"contactId": 12345
}
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
POST /systeme/api/payment/subscriptions/{id}/cancel
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 pageorder- Sort order:ascordesc(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
- Check that the
MATON_API_KEY environment variable is set:
echo $MATON_API_KEY
- 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
- 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
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()
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
- Check that the
MATON_API_KEY environment variable is set:
echo $MATON_API_KEY
- 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
X-API-Key header natively)application/merge-patch+json content type for PATCH requestsX-RateLimit-* headers/api/payment/subscriptions) may return 404 if payment features are not configuredcurl -g when URLs contain brackets to disable glob parsingjq or other commands, environment variables like $MATON_API_KEY may not expand correctly in some shell environments| 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
MATON_API_KEY environment variable is set:echo $MATON_API_KEY
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
- 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
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。