A I Hub Knowledge Base

Knowledge document list

GET
/datasets/{dataset_id}/documents

This API fetches a list of all documents within a specified knowledge base, providing details such as document names, IDs, upload dates, and statuses for easy management and reference.

Authorization

bearerAuth
AuthorizationBearer <token>

JWT access token returned by Signing In (POST /auth/v1/tokens/).

In: header

Path Parameters

dataset_id*string

Knowledge ID

Query Parameters

keyword?string

Search keywords, currently only search document names(optional)

page?string

Page number(optional)

limit?string

Number of items returned, default 20, range 1-100(optional)

Response Body

application/json

application/json

curl -X GET "https://example.com/datasets/string/documents"
"{\n  \"data\": [],\n  \"has_more\": false,\n  \"limit\": 20,\n  \"total\": 0,\n  \"page\": 1\n}"