---
title: "Get a knowledge base"
method: GET
path: "/knowledge_base/{id}"
tags: [""]
---

# Get a knowledge base

`GET /knowledge_base/{id}`

Retrieves the knowledge base's name and use condition.

## Path parameters

- `id` string, required — Knowledge base ID.

## Headers

- `Authorization` string, required

## Response `200`

200

- GetKnowledgeBaseResponse200
  - `status` string — Whether the request was successful.
  - `response` KnowledgeBaseIdGetResponsesContentApplicationJsonSchemaResponse
    - `total_records` integer — The number of retrieved knowledge bases.
    - `knowledge_bases` KnowledgeBaseIdGetResponsesContentApplicationJsonSchemaResponseKnowledgeBasesItems[]
      - `name` string — Knowledge base name.
      - `rag_use_condition` string — When this knowledge base should be used.
      - `id` string — Knowledge base ID.

## Other responses

- `400` — 400

---

[API](https://skmtc.net/synthflow/apis/platform-api.md) · [All operations](https://skmtc.net/synthflow/apis/platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/synthflow/platform-api/versions/decb652b52e0/schema)
