beehiiv API integration with managed OAuth. Manage newsletter publications, subscriptions, posts, custom fields, segments, and automations. Use this skill when users want to manage newsletter subscribers, create posts, organize segments, or integrate with beehiiv publications. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway). Requires network access and valid Maton API key.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install beehiiv或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install beehiiv⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/beehiiv/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: beehiiv description: | beehiiv API integration with managed OAuth. Manage newsletter publications, subscriptions, posts, custom fields, segments, and automations. Use this skill when users want to manage newsletter subscribers, create posts, organize segments, or integrate with beehiiv publications. 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: 🧠 requires: env: - MATON_API_KEY ---
Access the beehiiv API with managed OAuth authentication. Manage newsletter publications, subscriptions, posts, custom fields, segments, tiers, and automations.
# List publications
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://gateway.maton.ai/beehiiv/v2/publications')
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/beehiiv/{native-api-path}
Replace {native-api-path} with the actual beehiiv API endpoint path. The gateway proxies requests to api.beehiiv.com and automatically injects your OAuth token.
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"
Manage your beehiiv OAuth connections at https://ctrl.maton.ai.
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://ctrl.maton.ai/connections?app=beehiiv&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': 'beehiiv'}).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
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": "8bfe17f4-0038-4cbd-afb4-907b1ffa9d66",
"status": "ACTIVE",
"creation_time": "2026-02-11T00:25:10.464852Z",
"last_updated_time": "2026-02-11T00:27:00.816431Z",
"url": "https://connect.maton.ai/?session_token=...",
"app": "beehiiv",
"metadata": {}
}
}
Open the returned url in a browser to complete OAuth authorization.
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 beehiiv 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/beehiiv/v2/publications')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
req.add_header('Maton-Connection', '8bfe17f4-0038-4cbd-afb4-907b1ffa9d66')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
If omitted, the gateway uses the default (oldest) active connection.
All beehiiv API endpoints follow this pattern:
/beehiiv/v2/{resource}
---
GET /beehiiv/v2/publications
Query Parameters:
| Parameter | Description | |-----------|-------------| | limit | Results per page (1-100, default: 10) | | page | Page number (default: 1) | | expand[] | Expand with: stats, stat_active_subscriptions, stat_average_open_rate, etc. | | order_by | Sort by: created or name | | direction | Sort direction: asc or desc |
Response:
{
"data": [
{
"id": "pub_c6c521e4-91ac-4c14-8a52-06987b7e32f2",
"name": "My Newsletter",
"organization_name": "My Organization",
"referral_program_enabled": true,
"created": 1770767522
}
],
"page": 1,
"limit": 10,
"total_results": 1,
"total_pages": 1
}
GET /beehiiv/v2/publications/{publication_id}
---
GET /beehiiv/v2/publications/{publication_id}/subscriptions
Query Parameters:
| Parameter | Description | |-----------|-------------| | limit | Results per page (1-100, default: 10) | | cursor | Cursor for pagination (recommended) | | page | Page number (deprecated, max 100 pages) | | email | Filter by exact email (case-insensitive) | | status | Filter: validating, invalid, pending, active, inactive, all | | tier | Filter: free, premium, all | | expand[] | Expand with: stats, custom_fields, referrals | | order_by | Sort field (default: created) | | direction | Sort direction: asc or desc |
Response:
{
"data": [
{
"id": "sub_c27d9640-f418-43a8-a0f9-528c20a05002",
"email": "[email protected]",
"status": "active",
"created": 1770767524,
"subscription_tier": "free",
"subscription_premium_tier_names": [],
"utm_source": "direct",
"utm_medium": "",
"utm_channel": "website",
"utm_campaign": "",
"referring_site": "",
"referral_code": "gBZbSVal1X",
"stripe_customer_id": ""
}
],
"limit": 10,
"has_more": false,
"next_cursor": null
}
GET /beehiiv/v2/publications/{publication_id}/subscriptions/{subscription_id}
Query Parameters:
| Parameter | Description | |-----------|-------------| | expand[] | Expand with: stats, custom_fields, referrals, tags |
GET /beehiiv/v2/publications/{publication_id}/subscriptions/by_email/{email}
POST /beehiiv/v2/publications/{publication_id}/subscriptions
Content-Type: application/json
{
"email": "[email protected]",
"utm_source": "api",
"send_welcome_email": false,
"reactivate_existing": false
}
Request Body:
| Field | Type | Required | Description | |-------|------|----------|-------------| | email | string | Yes | Subscriber email address | | reactivate_existing | boolean | No | Reactivate if previously unsubscribed | | send_welcome_email | boolean | No | Send welcome email | | utm_source | string | No | UTM source for tracking | | utm_medium | string | No | UTM medium | | referring_site | string | No | Referral code of referring subscriber | | custom_fields | object | No | Custom field values (fields must exist) | | double_opt_override | string | No | on or off to override double opt-in | | tier | string | No | Subscription tier | | premium_tier_names | array | No | Premium tier names to assign |
PATCH /beehiiv/v2/publications/{publication_id}/subscriptions/{subscription_id}
Content-Type: application/json
...安装 beehiiv 后,可以对 AI 说这些话来触发它
Help me get started with beehiiv
Explains what beehiiv does, walks through the setup, and runs a quick demo based on your current project
Use beehiiv to beehiiv API integration with managed OAuth
Invokes beehiiv with the right parameters and returns the result directly in the conversation
What can I do with beehiiv in my marketing & growth workflow?
Lists the top use cases for beehiiv, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/beehiiv/ 目录(个人级,所有项目可用),或 .claude/skills/beehiiv/(项目级)。重启 AI 客户端后,用 /beehiiv 主动调用,或让 AI 根据上下文自动发现并使用。
beehiiv 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
beehiiv 可免费安装使用。请查阅仓库了解许可证信息。
beehiiv API integration with managed OAuth. Manage newsletter publications, subscriptions, posts, custom fields, segments, and automations. Use this skill when users want to manage newsletter subscribers, create posts, organize segments, or integrate with beehiiv publications. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway). Requires network access and valid Maton API key.
beehiiv 属于「Marketing & Growth」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my marketing & growth tasks using beehiiv
Identifies repetitive steps in your workflow and sets up beehiiv to handle them automatically