Skip to main content
POST
Create a knowledge base

Authorizations

Authorization
string
header
required

Use Authorization: Bearer pyai_live_... (or pyai_test_...).

Body

application/json
name
string
required
Maximum string length: 200
embed_model
string

Embedding model id. Defaults to the platform standard; change only with guidance.

Response

Knowledge base created

id
string
orgId
string
name
string
embedModel
string
docCount
integer
bytes
integer
status
enum<string>
Available options:
active,
deleted
createdAt
integer

Unix ms.