Skip to main content
POST
/
api
/
knowledge-bases
Create a new knowledge base
curl --request POST \
  --url http://localhost:3000/api/knowledge-bases \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Product Documentation",
  "description": "<string>",
  "embeddingModel": "openai/text-embedding-3-small",
  "chunkConfig": {
    "strategy": "recursive",
    "size": 512,
    "overlap": 50
  }
}
'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required

Knowledge base name

Required string length: 1 - 128
Example:

"Product Documentation"

description
string

Knowledge base description

Maximum string length: 2000
embeddingModel
string

Embedding model identifier

Example:

"openai/text-embedding-3-small"

chunkConfig
object

Chunk configuration

Response

Knowledge base created successfully