跳转到主要内容
POST
/
template
/
list
模板列表
curl --request POST \
  --url 'https://api.flashcat.cloud/template/list?app_key=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "p": 123,
  "limit": 123,
  "asc": true,
  "query": "<string>",
  "team_ids": [
    123
  ],
  "is_my_team": true
}
'
{
  "error": {
    "code": "<string>",
    "message": "<string>"
  },
  "data": {
    "has_next_page": true,
    "items": [
      {
        "template_id": "<string>",
        "account_id": 123,
        "template_name": "<string>",
        "status": "enabled",
        "creator_id": 123,
        "updated_by": 123,
        "created_at": 123,
        "updated_at": 123,
        "team_id": 123,
        "description": "<string>",
        "email": "<string>",
        "sms": "<string>",
        "feishu": "<string>",
        "dingtalk": "<string>",
        "wecom": "<string>",
        "feishu_app": "<string>",
        "dingtalk_app": "<string>",
        "wecom_app": "<string>"
      }
    ]
  }
}

授权

app_key
string
query
必填

请求头

Content-Type
string

请求体

application/json
p
integer

页码,从1开始

limit
integer

分页条数

asc
boolean

是否升序

query
string

检索范围:channel_name

team_ids
integer[]

筛选团队下的模板

is_my_team
boolean

筛选我所在团队下属的模板,与team_ids同时传入取交集

响应

200 - application/json
error
object
data
object