ghl_kb_get_files_by_knowledge_base_public
Lists all files uploaded to a knowledge base with optional pagination and filename search, enabling you to inspect available documents.
Instructions
Get all files by knowledge base 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. Endpoint: GET /knowledge-bases/files (Version header: v3; source: v3/knowledge-base-v3.json) Requires a Sub-Account (location) token. OAuth scopes: knowledge-bases.readonly Pagination params: limit, offset — pass them to page through full result sets.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of files to return | |
| offset | No | Zero-based offset for search-mode pagination. Ignored when lastFileId is provided. | |
| search | No | Case-insensitive substring to match against the file name. | |
| lastFileId | No | Last file id, used for pagination | |
| knowledgeBaseId | Yes | knowledge base id |