---
title: "Upload Kb"
method: POST
path: "/kb/create/{friendly_name}"
---

# Upload Kb

`POST /kb/create/{friendly_name}`

Upload documents to create a knowledge base.
The resulting knowledge base can be used to create multiple datasets
Ensure that the database and storage are kept in sync.
Include try/except blocks where necessary and if a document fails to upload to one place, delete it from the other.

## Path parameters

- `friendly_name` string, required

## Query parameters

- `verify` boolean
- `auto_link` boolean

## Headers

- `x-talc-api` string, nullable

## Response `200`

Successful Response

- KnowledgeBase — A collection of documents, with relationships between them.
  - `id` string, nullable
  - `friendly_name` string, nullable
  - `documents` string[]
  - `errors` string[], nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/talc/apis/talc-data-generation-api.md) · [All operations](https://skmtc.dev/talc/apis/talc-data-generation-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/talc/talc-data-generation-api/revisions/bc80241e9f37/schema)
