得到模版列表
POST
/v1/template/list
template_id
请求参数
Header 参数
Authorization
string
认证 key
示例值:
Bearer {{token}}
Body 参数application/json
type
string
可选
默认值:
示例值:
public
color
integer
颜色分类
默认值:
0
示例值:
0
scene
integer
场景分类
默认值:
0
示例值:
0
query_text
string
关键字查询
默认值:
示例值:
after
string
可选
默认值:
示例值:
limit
integer
可选
默认值:
10
示例值:
10
recommend_content
string
可选
默认值:
示例值:
大语言模型发展史
示例
{
"type": "",
"color": 0,
"scene": 0,
"query_text": "",
"after": "",
"limit": 10,
"recommend_content": ""
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.mindshow.vip/v1/template/list' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"type": "",
"color": 0,
"scene": 0,
"query_text": "",
"after": "",
"limit": 10,
"recommend_content": ""
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
info
string
错误信息
示例值:
succ
data
object
数据区
list
array [object {6}]
模板列表
after
string
必需
示例
{
"code": 0,
"info": "succ",
"data": {
"list": [
{
"template_id": "138dlkafalk348ff",
"title": "模板标题1",
"from_type": "string",
"type": "public",
"vip_flag": false,
"preview_img_list": [
"string"
]
}
],
"after": "string"
}
}
修改于 2025-04-23 02:56:05