Skip to main content

Overview

Retrieve the list of all documents uploaded to a specific Knowledge Base. This endpoint allows you to inspect the files available for an AI agent before updating or deleting them.

Prerequisites

  • Bearer token for an authenticated workspace
  • Valid Knowledge Base ID

Request

string
required
Bearer token for authenticated workspace access.
string
required
Unique identifier of the Knowledge Base.

Response

Response Fields

boolean
Indicates whether the request completed successfully.
integer
HTTP status code.
string
Response message.
array
Array containing all documents associated with the Knowledge Base.
string
Name of the uploaded document.
string
MIME type of the uploaded file.
integer
Size of the document in bytes.
string
URL of the uploaded document.
string
Timestamp when the document was uploaded.

Error Handling

This endpoint only lists the documents attached to a Knowledge Base. It does not return the Knowledge Base metadata itself.
Related endpoints:
  • GET /api/knowledgeBase/{knowledgeBaseId} — Retrieve Knowledge Base details.
  • PUT /api/knowledgeBase/{knowledgeBaseId} — Update the Knowledge Base or upload additional documents.
  • DELETE /api/knowledgeBase/{knowledgeBaseId}/documents/{fileName} — Delete a specific document.
  • DELETE /api/knowledgeBase/{knowledgeBaseId} — Delete the entire Knowledge Base.