API 参考
PostClaw REST API 让您以编程方式管理帖子、平台、自动化和 AI 生成。
基础 URL: https://api.postclaw.fun/v1
认证
所有请求均需要 Bearer Token。在设置 → API 密钥中生成 API 密钥。
curl https://api.postclaw.fun/v1/posts \
-H "Authorization: Bearer YOUR_API_KEY"
速率限制
| 计划 | 请求次数/分钟 |
|---|---|
| Free | 30 |
| Pro | 120 |
| Business | 600 |
端点
# 列出帖子
GET /v1/posts?status=scheduled&limit=20
# 创建帖子
POST /v1/posts
{ "content": "您的文案", "platforms": ["twitter"], "scheduled_at": "2026-04-01T09:00:00Z" }
# AI 文字生成
POST /v1/ai/text
{ "prompt": "宣布深色模式上线", "platform": "twitter", "tone": "casual" }