API ReferenceKnowledge bases

List organization's Knowledge Bases

GET
/api/knowledge-bases

Retrieves the list of Knowledge Bases for the authenticated user's organization. Supports search filters and pagination.

Authorization

ApiKeyAuth
AuthorizationBearer <token>

Bearer token for API authentication

In: header

Query Parameters

isActive?boolean

Filter by active status

Defaulttrue
search?string

Search by name or description

page?integer

Page number

Default1
Range1 <= value
limit?integer

Number of items per page

Default20
Range1 <= value <= 100

Response Body

application/json

application/json

application/json

curl -X GET "https://app.docutray.com/api/knowledge-bases"
{
  "data": [
    {
      "id": "string",
      "name": "string",
      "description": "string",
      "isActive": true,
      "createdAt": "2019-08-24T14:15:22Z",
      "documentCount": 0
    }
  ],
  "pagination": {
    "total": 0,
    "page": 0,
    "limit": 0
  }
}
{
  "message": "Validation error",
  "errors": [
    "string"
  ]
}
Empty
Empty
{
  "message": "Internal server error"
}