---
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`

## Request

- Base URL: `https://api.dante-ai.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dante-ai.com/knowledge-bases/{kb_id}/search`
- Auth: one of:
  - API key in header `x-api-key`
  - OAuth 2
    - Password
    - Token URL: `auth/jwt/login`
- TypeScript: <https://skmtc.dev/dante-ai/apis/dante-ai-api/docs/knowledge-bases/:kb_id/search/get.ts> (a function with typed inputs; its response is checked against the schema)

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.dev/dante-ai/apis/dante-ai-api.md) - [All operations](https://skmtc.dev/dante-ai/apis/dante-ai-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dante-ai/apis/dante-ai-api/revisions/38b6c9a4246d?raw)
