Sets up production-grade Zoom webhook endpoints with URL validation, HMAC-SHA256 signature verification, raw body capture, idempotency deduplication, and event subscription management for Express/Node.js.
Ships in 10-platform. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
采编自 anthropics/knowledge-work-plugins 的 zoom-plugin/webhooks 技能,适配重写为中文可执行条目。
适用:
x-zm-signature + x-zm-request-timestamp),消除 401「Invalid signature」。不该用:
核心约束(务必遵守):
v0:{timestamp}:{body},用 Webhook Secret Token 做 HMAC-SHA256,比对 v0={hash}。ZOOM_WEBHOOK_SECRET);准备一个 HTTPS 回调地址。json({ verify }) 写入 req.rawBody),供验签使用。event === 'endpoint.url_validation' 时,用 Secret 对 payload.plainToken 做 HMAC-SHA256,回 { plainToken, encryptedToken },否则门户无法启用端点。v0:{timestamp}:{rawBody} 计算 HMAC,比对 x-zm-signature;不符返回 401。同时校验 x-zm-request-timestamp,拒绝过期时间戳(防重放)。/webhooks/options)编程管理。ngrok http 3000 暴露本地端口,在门户填回调地址,查 Webhooks → Logs 验证。环境变量(服务端密钥库保存,勿入库/前端):
ZOOM_WEBHOOK_SECRET = Marketplace -> Event Subscriptions -> Secret Token (现行首选)
WEBHOOK_SECRET_TOKEN = 同一密钥的别名命名
ZOOM_VERIFICATION_TOKEN = 仅旧版端点校验,新接入不要用
Express 接收端(捕获 raw body + URL 校验 + 验签):
const crypto = require('crypto');
const express = require('express');
const app = express();
const SECRET = process.env.ZOOM_WEBHOOK_SECRET;
// 关键:在解析前留存原始体,验签必须用它(不要用重新序列化的 JSON)
app.use(express.json({ verify: (req, _res, buf) => { req.rawBody = buf; } }));
app.post('/zoom/webhook', (req, res) => {
const { event, payload } = req.body;
// 1) 端点 URL 校验:未正确应答则门户无法启用
if (event === 'endpoint.url_validation') {
const hash = crypto.createHmac('sha256', SECRET)
.update(payload.plainToken).digest('hex');
return res.json({ plainToken: payload.plainToken, encryptedToken: hash });
}
// 2) 签名校验:串格式固定为 v0:{timestamp}:{body}
const signature = req.headers['x-zm-signature'];
const timestamp = req.headers['x-zm-request-timestamp'];
const body = req.rawBody ? req.rawBody.toString('utf8') : JSON.stringify(req.body);
const message = `v0:${timestamp}:${body}`;
const hash = crypto.createHmac('sha256', SECRET).update(message).digest('hex');
if (signature !== `v0=${hash}`) return res.status(401).send('Invalid signature');
// 3) 先应答再异步处理,避免触发重试
res.status(200).send();
enqueue(event, payload); // 自己实现:入队 + 幂等去重
});
事件订阅 API(编程管理;需要 OAuth token,scope:webhook:read:admin / webhook:write:admin):
GET /webhooks/options # 查询当前订阅
POST /webhooks/options # 创建订阅(notification_endpoint_url + events[])
PATCH /webhooks/options # 更新订阅事件列表
// 增量更新订阅事件
const axios = require('axios');
await axios.patch('https://api.zoom.us/v2/webhooks/options',
{ events: ['meeting.started', 'meeting.ended', 'recording.completed', 'user.created'] },
{ headers: { Authorization: `Bearer ${accessToken}`, 'Content-Type': 'application/json' } });
常用事件(完整列表见 Zoom 文档):
meeting.started / meeting.ended / meeting.participant_joined / meeting.participant_left
recording.started / recording.completed / recording.trashed
user.created / user.updated / user.deleted
webinar.started / webinar.ended / webinar.registration_created
本地联调一条龙:
ngrok http 3000
# 把 https://xxx.ngrok.io/zoom/webhook 填到 Marketplace 端点
# 门户保存时会触发 endpoint.url_validation,应答正确即可启用
# 之后在 App -> Webhooks -> Logs 查看投递与重试
事件分发骨架:
switch (event) {
case 'meeting.started': track(payload.object.uuid); break;
case 'meeting.ended': settleAttendance(payload.object.uuid); break;
case 'recording.completed': processRecording(payload.object); break; // 常接 REST 拉取下载链接
}
JSON.stringify 回去会改变 whitespace/key 顺序,导致 401。捕获 raw body 后再验。v0:{timestamp}:{body},比对值是 v0={hash}。endpoint.url_validation 不正确应答(plainToken + encryptedToken),门户启用会失败。x-zm-request-timestamp,拒绝过期时间戳。zoom-oauth —— 调用 /webhooks/options 及 REST 回拉需要 OAuth access token。stripe-integration、slack-bolt-bot-builder —— 同类「验签 + 幂等 + 事件订阅」的第三方 webhook 接入范式。recording.completed 后回调 Zoom REST 获取下载地址,形成「事件触发 → 拉详情」链路。—— 本条采编自 anthropics/knowledge-work-plugins(Apache-2.0 许可)。
What SKILL.md sets; muted values are Claude Code's defaults
/10-platform:zoom-webhooks-setupfrom 10-platform
npx claudepluginhub findscripter/everything-skills --plugin 10-platform66 skills in this plugin
/agentmail-email-infra当 AI 智能体需要真实邮箱完成注册/验证码/事务通信时使用;通过 AgentMail REST API 开通账号、收发邮件、注册 Webhook、查询 karma 余额并产出可执行调用;不适用于自建/企业 SMTP/IMAP 或个人邮箱代收。触发词:AgentMail、智能体邮箱、theagentmail.net/agentphone-voice-sms-agents当需要给 AI 代理配备电话号码、发起/接听语音通话、收发短信、查看通话转写或配置 Webhook 时使用;调用 AgentPhone REST API(base=https://api.agentphone.to/v1)完成代理/号码/通话/短信/Webhook/用量的全生命周期管理,产出可直接执行的 curl 与 Webhook 处理代码;不适用于自建 Twilio/SIP/STUN 等底层电信栈或非 AgentPhone 平台。触发词:电话代理、语音通话、短信、号码、Webhook、转写。/ai-native-cli-design当设计/改造供 AI 智能体调用的命令行工具时使用;按 core/recommended/ecosystem 三层产出 JSON 优先、可校验的 CLI 契约(默认 JSON、结构化错误、退出码、护栏、agent/ 目录与自描述);不适用于纯人类交互 CLI、GUI 或库 API 设计;触发词:agent CLI、AI 友好命令行、CLI JSON 输出、退出码规范、agent/ 目录/amazon-alexa-skill-builder当需要用 ASK CLI + AWS Lambda 开发 Amazon Alexa 语音技能、并以 Claude 作为对话大脑(含 DynamoDB 记忆、Polly 语音、APL 屏显、Smart Home 控制)时使用;做交互模型/Lambda 处理器/部署脚本的搭建与产出;不适用于纯网页/移动 App 或非 Alexa 平台语音助手;触发词:Alexa、ASK CLI、语音技能、Smart Home/apify-actor-development当需要创建、修改或调试 Apify Actor(无服务器 Docker 抓取/自动化程序)时使用;引导选模板、配 input/output schema 与 actor.json、写入口逻辑、本地 apify run 测试并 apify push 部署;不适用于已有现成 Actor 直接调用(用 apify-ecommerce-scraper)、无 APIFY_TOKEN、或普通网页抓取无需打包为 Actor。触发词:apify actor、apify create、apify push、input_schema、actor.json、爬虫部署、serverless scraper、crawlee/apify-actorization当需要把现有 JS/TS、Python 脚本或任意 CLI 工具改造成可在 Apify 平台运行的 Actor(接受 JSON 输入、产出结构化 JSON、打包为 Docker 镜像并部署/变现)时使用;做 apify init 初始化 + SDK 生命周期包裹 + 配置 input/output/actor schema + apify run 本地测试 + apify push 部署,产出可上架的 Actor;不适用于从零写新爬虫、单纯调用现成 Actor、或无 apify CLI/APIFY_TOKEN。触发词:apify actor、actorization、改造成 actor、apify push、apify init、input_schema、serverless 爬虫Other plugins' skills for the same job