List knowledge base documents

Get a list of available knowledge base documents

请求头

xi-api-keystring可选

查询参数

page_sizeinteger可选1-100默认为 30
How many documents to return at maximum. Can not exceed 100, defaults to 30.
searchstring可选
If specified, the endpoint returns only such knowledge base documents whose names start with this string.
show_only_owned_documentsboolean可选默认为 falseDeprecated

If set to true, the endpoint will return only documents owned by you (and not shared from somebody else). Deprecated: use created_by_user_id instead.

created_by_user_idstring可选

Filter documents by creator user ID. When set, only documents created by this user are returned. Takes precedence over show_only_owned_documents. Use ‘@me’ to refer to the authenticated user.

typesenum可选
If present, the endpoint will return only documents of the given types.
允许的值:
parent_folder_idstring可选
If set, the endpoint will return only documents that are direct children of the given folder.
ancestor_folder_idstring可选
If set, the endpoint will return only documents that are descendants of the given folder.
folders_firstboolean可选默认为 false
Whether folders should be returned first in the list of documents.
sort_directionenum可选
The direction to sort the results
允许的值:
sort_byenum可选
The field to sort the results by
允许的值:
cursorstring可选
Used for fetching next page. Cursor is returned in the response.

响应

Successful Response
documentslist of objects
has_moreboolean
next_cursorstring可选

错误

422
Knowledge Base List Request Unprocessable Entity Error