---
title: "Create a knowledge base"
method: POST
path: "/knowledgebase"
tags: ["Knowledge Base"]
---

# Create a knowledge base

`POST /knowledgebase`

Create a knowledge base

## Request body

- object
  - `name` string, required — Name of the knowledge base (1–40 characters, trimmed)
  - `description` string

## Response `201`

Knowledge base created successfully

- object
  - `status` boolean
  - `data` string

## Other responses

- `400` — Invalid input
- `401` — Unauthorized access
- `500` — Internal server error

## Changes

- **2026-05-26** `19fb0f386c1f` — 1 breaking, 1 warning
  - the `name` request property's minLength was increased from `0` to `1`
  - the `name` request property's maxLength was set to `40`

[Change history](https://skmtc.dev/smallest-inc/apis/agent-management-api/changes/knowledgebase/post.md)

---

[API](https://skmtc.dev/smallest-inc/apis/agent-management-api.md) · [All operations](https://skmtc.dev/smallest-inc/apis/agent-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/smallest-inc/agent-management-api/revisions/0eac753eb5dd/schema)
