FilesVersion: 2021-07-28
Get all files by knowledge base
GET/knowledge-bases/files
Lists files uploaded to a knowledge base, with optional pagination and name search. WHEN TO USE: use this when you need to see uploaded documents; use uploadFile to add a file; use getFileById for one file; use deleteFile to remove one. RETURNS: the file list for the knowledge base.
Authorizations
Authorizationstringheaderrequired
Bearer authentication header of the form Bearer <token>, where <token> is your access token.
Scope:
knowledge-bases. readonlyAuth methods:
OAuthPrivate IntegrationToken type:
Sub-Account TokenRequest
Headers
Versionstringrequired
API Version
Available options
2021-07-28Example:
2021-07-28Query Parameters
knowledgeBaseIdstringrequired
knowledge base id
Example:
ocQHyuzHvysMo5N5VsXclimitnumber
Maximum number of files to return
Default:
10Example:
10lastFileIdstring
Last file id, used for pagination
Example:
ocQHyuzHvysMo5N5VsXcoffsetnumber
Zero-based offset for search-mode pagination. Ignored when lastFileId is provided.
Default:
0Example:
0searchstring
Case-insensitive substring to match against the file name.
Example:
invoiceResponse
List of files by knowledge base
successbooleanrequired
success
Example:
truedataobjectrequired
data