Skip to content

Declares a knowledge base.

POST
/v1/m/knowledge/kbs
curl --request POST \
--url https://example.com/v1/m/knowledge/kbs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "classification": "", "default_acl": [ "example" ], "embed_policy": "", "name": "example", "residency_region": "global", "status": "" }'

Declares a knowledge base. It records the embed_model/dim of the CURRENTLY wired embedder and enforces the embed-policy↔egress gate.

X-Olivares-Tenant
string format: uuid

Target tenant id; required when the principal can act in more than one tenant.

Media type application/json
object
classification

Empty or omitted defaults to internal; restricted is the accepted top-rank alias.

string
default: internal
Allowed values: "" public internal confidential secret restricted
default_acl
Array<string>
<= 256 items
embed_policy

Acceptance also depends on the wired embedder’s egress, model and region.

string
default: auto
Allowed values: "" local_only model_backed auto
name
required

Names containing a recognized secret are rejected by the handler.

string
>= 1 characters <= 200 characters /\S/
residency_region
string
default: global <= 200 characters
status
string
default: active
Allowed values: "" active archived

OK

Media type application/json
object
Example generated
{}

Bad request

Media type application/json
object
Example generated
{}

Unauthenticated

Media type application/json
object
Example generated
{}

Forbidden

Media type application/json
object
Example generated
{}

Not found

Media type application/json
object
Example generated
{}

Conflict / setup required

Media type application/json
object
Example generated
{}

Rate limited

Media type application/json
object
Example generated
{}