面向开发者

Webhooks

文章准备好以及状态每次变化时,接收明文 JSON HTTP 回调。

事件

两个事件,各自在营销活动流程的特定阶段触发。

article.ready写作完成时

文章撰写完成并通过自动审核后发送——这是你发布的信号。

article.status_changed状态变更时

当文章在 TrafficWins 中的状态发生变化时发送,例如发布或归档时。

负载

每个事件都会通过 POST 发送此 JSON 主体。两个事件的结构相同。

{
  "event": "article.ready",
  "orgId": "org_8c2f1a…",
  "timestamp": "2026-06-15T12:34:56.000Z",
  "article": {
    "id": "art_3b9a7d…",
    "campaignId": "cmp_71d4e0…",
    "title": "How to Choose a Standing Desk",
    "slug": "how-to-choose-a-standing-desk",
    "status": "draft",
    "description": "A practical buyer's guide to height, stability, and budget.",
    "content": "<h1>How to Choose a Standing Desk</h1><p>…</p>",
    "keywords": ["standing desk", "ergonomics"],
    "wordCount": 1840,
    "reviewScore": 92,
    "reviewVerdict": "pass",
    "heroImageUrl": "https://cdn.trafficwins.com/articles/3b9a/hero.png",
    "heroImageAlt": "A height-adjustable standing desk in a bright office",
    "updatedAt": "2026-06-15T12:34:55.000Z"
  }
}

请求标头

TrafficWins 通过 HTTPS 使用这些标头发送明文 JSON。

POST /your-endpoint  HTTP/1.1
Content-Type: application/json
User-Agent: TrafficWins-Webhooks/1.0

如何设置

在 TrafficWins 的网站发布设置中添加你的端点 URL。我们会将每个事件作为明文 JSON 发送。

打开 TrafficWins

从一个网站开始

把它指向你的网站。明天就能读到第一批草稿。

创建账户,连接一个网站,让 TrafficWins 研究、规划、撰写并审核你的第一个活动——无需信用卡,无需 API 密钥。

开始免费试用

3 天试用 · 5 个文章额度 · 随时取消