Skip to main content
GET
Retrieve files from a knowledge folder
Using our API via a dedicated deployment? Just replace api.langdock.com with your deployment’s base URL: <deployment-url>/api/public
The Knowledge Folder API manages resources that appear as Knowledge bases in the Library.
Lists all files (attachments) in a specified Knowledge base. Use this endpoint to see what files are available and check their processing status.
Requires an API key with the KNOWLEDGE_FOLDER_API scope. The Knowledge base must be shared with the API key. See Share Knowledge bases with the API for setup instructions.

Request Format

Path Parameters

Examples

List Files with cURL

List Files with JavaScript

Check Processing Status

Response Format

Success Response (200 OK)

Processing Status Values

Example Response

Get Single File Details

To get details for a specific file, use the GET /knowledge/{folderId}/{attachmentId} endpoint:
This returns the same fields as above for a single attachment, plus an error message if processing failed:

Error Handling

Langdock intentionally blocks browser-origin requests to protect your API key and ensure your applications remain secure. For more information, please see our guide on API Key Best Practices.

Authorizations

Authorization
string
header
required

API key as Bearer token. Format "Bearer YOUR_API_KEY"

Path Parameters

folderId
string
required

The ID of the knowledge folder

Response

200

List of files retrieved successfully