Skip to main content
GET

Overview

List the files stored in one of your organization’s knowledge bases, with their size and last-modified time.

Prerequisites

Request

string
required
Your workspace API key. Create one from the profile menu in the dashboard → API Keys.
string
required
ID of the knowledge base.

Response

array[object]
The files in the knowledge base.
string
File name.
integer
File size in bytes.
string
When the file was last uploaded (ISO 8601).

Error Handling

Errors return status: false, with the reason in errorMessage.
  • 400 Bad Request – knowledgeBaseId isn’t a valid ID.
  • 401 Unauthorized – Missing or invalid API key.
  • 404 Not Found – KnowledgeBase not found: it doesn’t exist in your organization.
  • 429 Too Many Requests – More than 1,000 Knowledge Base requests in 15 minutes from your IP address.
  • 500 Internal Server Error – Unexpected server error.