文档

提示词接口

方法路径说明
GET/api/prompts获取提示词列表(支持分页、搜索、过滤)
POST/api/prompts创建新提示词
GET/api/prompts/:id获取单个提示词详情(并计数 +1)
PATCH/api/prompts/:id更新提示词(仅传需要修改的字段)
DELETE/api/prompts/:id删除提示词
GET/api/prompts/search关键词 / 语义搜索提示词
GET/api/prompts/sync全量或增量拉取(离线同步)

查询参数(GET /api/prompts)

参数类型说明
limitnumber每页数量,默认 50,最大 200
offsetnumber分页偏移量
qstring关键词搜索(name / description / content)
categorystring按分类过滤
org_idstring按工作区 ID 过滤