API ReferenceKnowledge base documents

List documents in a Knowledge Base

GET
/api/knowledge-bases/{id}/documents

Retrieves the list of documents in a specific Knowledge Base. Supports search filters and pagination.

Authorization

ApiKeyAuth
AuthorizationBearer <token>

Bearer token for API authentication

In: header

Path Parameters

id*string

Unique ID of the Knowledge Base

Query Parameters

search?string

Search in documents

documentId?string

Filter by document ID

page?integer

Page number

Default1
Range1 <= value
limit?integer

Number of items per page

Default20
Range1 <= value <= 100

Response Body

application/json

curl -X GET "https://app.docutray.com/api/knowledge-bases/string/documents"
{
  "data": [
    {
      "id": "string",
      "documentId": "string",
      "content": {},
      "metadata": {},
      "createdAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z"
    }
  ],
  "pagination": {
    "total": 0,
    "page": 0,
    "limit": 0
  }
}
Empty
Empty
Empty
Empty
Empty