WeCom Push Gateway
admin

仪表盘

0
应用数量
0
今日推送
0
今日成功

应用状态

最近推送

全局配置


修改密码

消息测试

API 文档

推送接口

POST /webhook/{slug}/send
Authorization: Bearer <WEBHOOK_TOKEN>
Content-Type: application/json

{
  "msg_type": "text",
  "content": "消息内容",
  "to_user": "@all"
}

GET 简化调用

GET /webhook/{slug}/send?token=<TOKEN>&msg_type=text&content=hello

支持的消息类型

msg_type说明额外字段
text文本消息
markdownMarkdown(仅企微客户端渲染)
textcard文本卡片title, url
news图文消息title, url, pic_url

curl 示例

curl -X POST http://localhost:9000/webhook/{slug}/send \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"msg_type":"text","content":"Hello!"}'

Python 示例

import requests

requests.post("http://localhost:9000/webhook/{slug}/send",
    headers={"Authorization": "Bearer YOUR_TOKEN"},
    json={"msg_type": "text", "content": "Hello!"})