Skip to main content
POST
/
api
/
v1
/
knowledge-base
Create Knowledge Base
curl --request POST \
  --url https://api.kollie.ai/api/v1/knowledge-base/ \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Create Knowledge Base

This endpoint creates a new knowledge base for your organization.

Request

Headers

NameTypeRequiredDescription
AuthorizationstringYesBearer token for authentication
Content-TypestringYesapplication/json

Body

{
  "name": "string",
  "description": "string"
}

Body Fields

FieldTypeRequiredDescription
namestringYesName of the knowledge base
descriptionstringNoDescription of the knowledge base

Response

200 OK

{
  "data": {
    "id": "string",
    "name": "string",
    "description": "string",
    "created_at": "string",
    "updated_at": "string",
    "organization_id": "string"
  }
}

Response Fields

FieldTypeDescription
idstringUnique identifier for the knowledge base
namestringName of the knowledge base
descriptionstringDescription of the knowledge base
created_atstringTimestamp when the knowledge base was created
updated_atstringTimestamp when the knowledge base was last updated
organization_idstringID of the organization that owns the knowledge base

Example

curl -X POST 'https://api.kollie.ai/api/v1/knowledge-base/' \
  -H 'Authorization: Bearer YOUR_API_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Product Documentation",
    "description": "Documentation for our product features and services"
  }'

Authorizations

X-API-Key
string
header
required

Body

application/json
name
string
required

Name of the knowledge base

Required string length: 1 - 255
description
string | null

Optional description of the knowledge base

organization_id
string<uuid> | null

Organization ID of the knowledge base

Response

Successful Response