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: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Product Documentation",
  "description": "Contains all product documentation",
  "configuration": {}
}
'
{
  "id": "1234567890123456789",
  "created_at": "2024-01-15T10:30:00Z",
  "updated_at": "2024-01-15T10:30:00Z",
  "deployment_id": "9876543210987654321",
  "name": "Product Documentation",
  "description": "Knowledge base for product docs",
  "configuration": {}
}

Authorizations

Authorization
string
header
required

API key authentication (format: Bearer {api_key})

Body

application/json
name
string
required

Knowledge base name

Example:

"Product Documentation"

description
string

Knowledge base description

Example:

"Contains all product documentation"

configuration
object

Knowledge base configuration

Response

200 - application/json

Knowledge base created

id
string
Example:

"1234567890123456789"

created_at
string<date-time>
Example:

"2024-01-15T10:30:00Z"

updated_at
string<date-time>
Example:

"2024-01-15T10:30:00Z"

deployment_id
string
Example:

"9876543210987654321"

name
string
Example:

"Product Documentation"

description
string | null
Example:

"Knowledge base for product docs"

configuration
object

Knowledge base configuration