Skip to main content
POST
Create or change a knowledge base store

Authorizations

Authorization
string
header
required

Supabase JWT — Authorization: Bearer <token>.

Body

application/json
merchant_id
string<uuid>

Optional company to act on. Admins and sub-merchant operators only; other callers always use their token's company.

knowledge_base_store_id
string<uuid>

The store to change (from knowledge-base-store-list). Left out: a new store is created.

name
string

Name of the store, 1 to 200 characters. Required for a new store; left out on a change, it stays.

Required string length: 1 - 200
strict
boolean

true (the default for a new store): the AI uses only these documents. false: it uses them alongside its general knowledge. Left out on a change, it stays.

Response

The store after the call.

id
string<uuid>
required

The store: knowledge_base_store_id of create_interview, upload_knowledge_base_document and list_knowledge_base_documents.

name
string
required

Name of the store.

strict
boolean
required

true: the AI uses only these documents; false: it uses them alongside its general knowledge.

document_count
integer
required

How many documents the store holds.

created
boolean
required

True when a new store was created.