Skip to main content
POST
/
ai-knowledge-bases
Create AI Knowledge Base
curl --request POST \
  --url https://api.wacht.dev/ai-knowledge-bases \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "type": "vector",
  "description": "<string>",
  "embedding_model": "<string>"
}
'
{
  "id": "<string>",
  "name": "Product Documentation",
  "description": "<string>",
  "type": "vector",
  "embedding_model": "text-embedding-ada-002",
  "document_count": 150,
  "total_tokens": 450000,
  "is_active": true,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

JWT Bearer token authentication using the Authorization header

Body

application/json
name
string
required
type
enum<string>
required
Available options:
vector,
graph,
hybrid
description
string
embedding_model
string

Response

AI knowledge base created successfully

id
string

(i64 formatted as string)

name
string
Example:

"Product Documentation"

description
string
type
enum<string>
Available options:
vector,
graph,
hybrid
Example:

"vector"

embedding_model
string
Example:

"text-embedding-ada-002"

document_count
integer
Example:

150

total_tokens
integer
Example:

450000

is_active
boolean
Example:

true

created_at
string<date-time>
updated_at
string<date-time>