---
title: "Create a knowledge base"
method: POST
path: "/knowledge_base"
---

# Create a knowledge base

`POST /knowledge_base`

Creates a new knowledge base and returns its ID.

## Headers

- `Authorization` string, required

## Request body

- object
  - `name` string — Name of the knowledge base.
  - `rag_use_condition` string — When this knowledge base should be used.

## Response `200`

200

- CreateKnowledgeBaseResponse200
  - `status` string — Whether the request was successful.
  - `response` KnowledgeBasePostResponsesContentApplicationJsonSchemaResponse
    - `body` string
    - `knowledge_base_id` string — Knowledge base ID.

## Other responses

- `400` — 400

---

[API](https://skmtc.dev/synthflow/apis/platform-api.md) · [All operations](https://skmtc.dev/synthflow/apis/platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/synthflow/platform-api/revisions/6976456ad422/schema)
