跳转到主要内容
POST
/
template
/
preview
模板预览
curl --request POST \
  --url 'https://api.flashcat.cloud/template/preview?app_key=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "content": "<string>",
  "type": "dingtalk_app",
  "incident_id": "<string>"
}
'
{
  "data": {
    "content": "<string>",
    "success": true,
    "message": "<string>"
  },
  "error": {}
}

授权

app_key
string
query
必填

请求头

Content-Type
string

请求体

application/json
content
string
必填

预览前内容

type
enum<string>
必填

渠道类型

可用选项:
dingtalk_app,
feishu_app,
wecom_app,
slack_app,
teams_app,
feishu,
dingtalk,
wecom,
telegram,
zoom,
email,
sms
incident_id
string

预览故障ID,如果不传入将使用系统mock数据进行预览

响应

200 - application/json
data
object
必填
error
object