GET
/
api
/
workflows
/
{workflowName}
/
knowledge-documents
列出项目知识库文档
curl --request GET \
  --url https://wfapi.yuhe.space/api/workflows/{workflowName}/knowledge-documents \
  --header 'Authorization: Bearer <token>'
{
  "errCode": 123,
  "errMessage": "<string>",
  "data": {
    "items": [
      {
        "id": "<string>",
        "title": "<string>",
        "markdownPreview": "<string>",
        "createdAt": "2023-11-07T05:31:56Z",
        "updatedAt": "2023-11-07T05:31:56Z"
      }
    ],
    "hasMore": true,
    "total": 123,
    "nextCursor": "<string>"
  }
}

Authorizations

Authorization
string
header
required

使用 WORKFLOW_SERVER_ADMIN_KEY 或已创建的账号 API Key。

Path Parameters

workflowName
string
required

Query Parameters

pageSize
integer

每页文档摘要数量,默认 20,最大 100。

Required range: 1 <= x <= 100
cursor
string

上一页返回的 nextCursor。

Response

当前 workflow 项目内 markdown 知识库文档分页摘要列表,不包含正文 markdown。

errCode
integer
required
errMessage
string
required
Allowed value: ""
data
object
required