---
title: "创建团队推送渠道"
method: POST
path: "/api/v1/teams/notify/channels"
tags: ["【Team 管理员】通知推送"]
---

# 创建团队推送渠道

`POST /api/v1/teams/notify/channels`

创建团队推送渠道（钉钉/飞书/企业微信/Webhook），同时配置订阅的事件类型

## Request body

- DomainCreateNotifyChannelReq
  - `event_types` ConstsNotifyEventType[], required
  - `headers` object
  - `kind` 'dingtalk' | 'feishu' | 'wecom' | 'webhook' | 'wechat_mp', required
  - `name` string, required
  - `secret` string
  - `webhook_url` string, required

## Response `200`

成功

- object
  - `code` integer
  - `data` DomainNotifyChannel
    - `created_at` integer
    - `enabled` boolean
    - `event_types` ConstsNotifyEventType[]
    - `id` string
    - `kind` 'dingtalk' | 'feishu' | 'wecom' | 'webhook' | 'wechat_mp'
    - `name` string
    - `owner_id` string
    - `owner_type` 'user' | 'team'
    - `scope` string
    - `webhook_url` string
  - `message` string

## Other responses

- `401` — 未授权
- `500` — 服务器内部错误

---

[API](https://skmtc.net/chaitin/apis/untitled-api.md) · [All operations](https://skmtc.net/chaitin/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/chaitin/untitled-api/versions/5a5929cb17f2/schema)
