集成

Systeme.io

试用

通过托管 OAuth 网关,程序化访问 Systeme.io 的联系人、标签、课程、社区和订阅接口。

它能做什么

提供对 Systeme.io 联系人、标签、课程、社区和订阅等资源的读写 HTTP 接口。请求经网关代理后转发到 api.systeme.io,OAuth 与底层 API Key 鉴权由网关自动完成,调用方只需提供 MATON_API_KEY 环境变量作为 Bearer 令牌。多账号场景可使用 Maton-Connection 请求头指定目标连接。所有写入操作(创建、更新、删除)执行前必须先与用户确认。

什么时候用它

  • 列出或创建 Systeme.io 联系人
  • 将联系人加入课程并设置 full_access、partial_access 或 dripping_content
  • 管理社区成员资格(添加或移除成员)
  • 为联系人维护自定义字段与标签

技能文档

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://api.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://api.maton.ai/systeme/{native-api-path}

Maton 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://api.maton.ai.

List Connections

python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.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://api.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://api.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": "{connection_id}",
    "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://api.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://api.maton.ai/systeme/api/contacts')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
req.add_header('Maton-Connection', '{connection_id}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

If you have multiple connections, always include this header to ensure requests go to the intended account.

Security & Permissions

  • Access is scoped to contacts, tags, courses, communities, and subscriptions within the connected Systeme.io account.
  • All write operations require explicit user approval. Before executing any create, update, or delete call, confirm the target resource and intended effect with the user.

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://api.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://api.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://api.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://api.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)
  • Maton 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

StatusMeaning
400Missing Systeme.io connection or bad request
401Invalid or missing Maton API key
429Rate limited (check Retry-After header)
4xx/5xxPassthrough 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://api.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://api.maton.ai/systeme/api/contacts
  • Incorrect: https://api.maton.ai/api/contacts

Resources

相关技能

通过托管网关调用第三方 API,免去自行管理 OAuth 和密钥的负担。

作者 byungkyu

通过托管 OAuth 连接 Motion API,管理任务、项目、循环任务和工作区。

44 次安装

通过统一鉴权的接口管理 ManyChat 订阅者、标签、自定义字段和 Messenger 消息发送。

152 次安装3 星标

通过托管 OAuth 将 Agent 接入 Attio CRM,读取与修改记录、任务、笔记等数据。

491 次安装3 星标

通过托管 OAuth 接入 Cal.com 排程 API,管理事件类型、预约、可用时段、排班与 Webhook。

52 次安装

通过托管 OAuth 与 GraphQL 接口管理 Monday.com 的看板、条目、列、分组、用户和工作区。

573 次安装7 星标