通知媒介列表
开发中
GET
https://api.flashcat.cloud/api/n9e/notify-channel-configs
最后修改时间:2025-02-19 07:47:09
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.flashcat.cloud/api/n9e/notify-channel-configs'
响应示例响应示例
{
"dat": [
{
"id": 98765,
"name": "FeiShu Notification",
"ident": "feishu_channel",
"description": "A channel for sending notifications via FeiShu",
"param_config": {
"param_type": "user_info",
"user_info": {
"contact_key": "feishu_robot_token"
},
"flashduty": {},
"custom": {},
"batch": 10
},
"request_type": "http",
"http_request_config": {
"url": "https://open.feishu.cn/open-apis/bot/v2/hook/your-webhook-url",
"method": "POST",
"headers": {
"Content-Type": "application/json"
},
"proxy": "",
"timeout": 10,
"concurrency": 5,
"retry_times": 3,
"retry_interval": 5,
"tls": {
"skip_verify": false
},
"request": {
"parameters": {},
"form": "json",
"body": {
"msg_type": "text",
"content": {
"text": "This is a FeiShu notification."
}
}
}
},
"smtp_request_config": {},
"script_request_config": {}
},
{
"id": 98766,
"name": "Email Notification",
"ident": "email_channel",
"description": "A channel for sending email notifications",
"param_config": {
"param_type": "user_info",
"user_info": {
"contact_key": "user_email@example.com"
},
"flashduty": {},
"custom": {},
"batch": 20
},
"request_type": "smtp",
"http_request_config": {},
"smtp_request_config": {
"host": "smtp.example.com",
"port": 587,
"username": "user@example.com",
"password": "password123"
},
"script_request_config": {}
}
],
"err": ""
}