---
title: "Get Knowledge Base Detail Sorted"
method: GET
path: "/knowledge-bases/{kb_id}/search"
tags: ["Knowledge Bases"]
---

# Get Knowledge Base Detail Sorted

`GET /knowledge-bases/{kb_id}/search`

Retrieve the details of a specific knowledge base but in a sorted way.

## Path parameters

- `kb_id` string, uuid, required

## Query parameters

- `team_id` string, uuid
- `file_name` string
- `name` boolean
- `size_ascending` boolean
- `size_descending` boolean
- `character_count` boolean
- `limit` integer
- `offset` integer

## Response `200`

Successful Response

- KnowledgeBaseSortedResponse
  - `files` File[], required
    - `id` string, uuid
    - `date_created` string, date-time
    - `date_updated` string, date-time
    - `name` string, required — The name of the file.
    - `path` string, required — The path to the file.
    - `kb_id` string, uuid, required — The ID of the knowledge base associated with the file.
    - `type` string — The type of the file.
    - `size` integer — The size of the file in bytes.
    - `num_chars` integer — Number of characters in the file.
    - `thumbnail` string — The thumbnail url of file if it exists.
    - `file_metadata_id` string, uuid — The ID of the file metadata associated with the file.
  - `pagination` Pagination, required
    - `limit` integer
    - `offset` integer
  - `total_count` integer, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/dante-ai/apis/dante-ai-api.md) · [All operations](https://skmtc.net/dante-ai/apis/dante-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dante-ai/dante-ai-api/revisions/38b6c9a4246d/schema)
