Files
List files in a knowledge hub
Returns a paginated list of files in the knowledge hub, ordered by file name. Pass cursor from the previous response to fetch the next page.
Authorization
bearerAuth AuthorizationBearer <token>
Nabu API key from Organization settings → API keys. Keys are prefixed with key_.
In: header
Path Parameters
hubId*string
Knowledge hub identifier. Must be allowed for the API key.
Query Parameters
limit?integer
Maximum number of files to return.
Range
0 < value <= 100Default
10cursor?string
Opaque pagination cursor from a previous response. Pass URL-encoded if it contains special characters.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/hubs/string/files"{ "data": [ { "hubFileId": "file_01234567-89ab-cdef-0123-456789abcdef", "fileName": "handbook.pdf", "fileType": "application/pdf", "fileSize": 1048576, "status": "Completed" }, { "hubFileId": "file_89abcdef-0123-4567-89ab-cdef01234567", "fileName": "pricing.csv", "fileType": "text/csv", "fileSize": 4096, "status": "Pending" } ], "cursor": "fileName#pricing.csv"}