API ReferenceKnowledge base documents
List documents in a Knowledge Base
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
Default
1Range
1 <= valuelimit?integer
Number of items per page
Default
20Range
1 <= value <= 100Response 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