By youning
A configurable webhook dashboard widget
released April 26, 2026
npm install strapi-plugin-webhook-dashboard用于 Strapi 5 的管理后台插件,可以在后台添加一个可配置的 Webhook Dashboard。
POST 请求触发 webhooknpm install strapi-plugin-webhook-dashboardStrapi 5 通常会自动发现已安装的插件。如需显式启用,可以在 Strapi 配置中添加:
export default () => ({
'webhook-dashboard': {
enabled: true,
},
});安装后重新构建管理后台:
npm run build
npm run developWebhook URL 必须使用 http 或 https。
请求头可以填写 JSON 对象,也可以按每行一个 Name: Value 的格式填写。
请求体会作为 POST 请求的原始 body 发送。
按钮支持可选分组、描述、启用/禁用、触发确认、自定义请求头、原始请求体、Bearer Token 认证和 Basic Auth 认证。
插件会在 Strapi 管理员角色页面注册权限。授予 Read 后可以看到左侧菜单和首页组件,授予 Trigger webhooks 后可以触发按钮,授予 Update settings 后可以编辑配置,授予 Clear history 后可以清空执行历史。
每个按钮还可以单独限制允许触发的管理员角色。角色列表为空时,任何拥有 Trigger webhooks 权限的管理员角色都可以触发该按钮;选择一个或多个角色后,只有这些角色可以看到并触发该按钮。首页组件使用安全的 dashboard 接口,不会暴露 webhook URL、请求头、请求体或认证密钥。
MIT
Share your work with the community and get it listed in the Strapi ecosystem for everyone to discover and use.
Submit
