Skip to main content
POST
https://app.famulor.de
/
api
/
user
/
knowledgebases
Create Knowledge Base
curl --request POST \
  --url https://app.famulor.de/api/user/knowledgebases \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>"
}
'
{
  "message": "Knowledgebase created successfully.",
  "data": {
    "id": 1,
    "name": "Product Documentation",
    "description": "Technical documentation for our products",
    "status": "empty",
    "status_label": "Empty",
    "created_at": "2025-01-08T10:30:00.000000Z",
    "updated_at": "2025-01-08T10:30:00.000000Z"
  }
}
This endpoint creates a new knowledge base. After creation, you can add documents by using the Create Document endpoint.

Request Body

name
string
required
The name of the knowledge base (max. 255 characters)
description
string
Optional description of the knowledge base (max. 255 characters)

Response Fields

message
string
Success message
data
object
The created knowledge base object

Next Steps

After creating a knowledge base, you should:
  1. Add documents - Use the Create Document endpoint to add content
  2. Wait for processing - Documents are processed asynchronously
  3. Attach to assistants - Use the Update Assistant endpoint to attach the knowledge base
{
  "message": "Knowledgebase created successfully.",
  "data": {
    "id": 1,
    "name": "Product Documentation",
    "description": "Technical documentation for our products",
    "status": "empty",
    "status_label": "Empty",
    "created_at": "2025-01-08T10:30:00.000000Z",
    "updated_at": "2025-01-08T10:30:00.000000Z"
  }
}