cURL
Files
List Files
List files and folders in a knowledge base (use directory=/ for root)
GET
cURL
Both regular files and folders are returned. Folder entries have
content_type set to application/vnd.timbal.k2-directory and content_length of 0. Use the optional directory query parameter to scope results to a specific folder (e.g. ?directory=docs).Authorizations
Timbal API key. Obtain your API key from the Timbal platform settings. See Authentication for more information.
Query Parameters
Page token for pagination
Scope listing to one folder. Use "/" for KB root (entries with no parent path).
Omit to list every file in the knowledge base. Otherwise a normalized path such as docs/reports.