Skip to main content
POST
Ingest documents

Authorizations

X-API-KEY
string
header
required

Body

multipart/form-data
file
file
required

UTF-8 CSV upload (a UTF-8 BOM is tolerated). Header row must be exactly question,response, with at least one data row and no extra columns; max 5 MB.

knowledge_base_id
string
required

Target knowledge base id. Required (a 400 is returned if absent) and must reference an existing KB in the caller's workspace (else 404).

mode
enum<string>
default:replace

replace overwrites the KB's existing rows; append adds to them.

Available options:
replace,
append

Response

Rows ingested. ingested is the number of Q&A rows written, echoing the effective mode and target knowledge_base_id.