Skip to main content
POST
Bulk create KB documents

Request

Max 20 docs per call. Currently sourceType: "doc" is supported in bulk; use POST /agents/{agentId}/kb for URL/sitemap sources.

Response

Each doc is processed independently — one failure does not roll back the others.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

agentId
string
required

Body

application/json
docs
object[]
required
Required array length: 1 - 20 elements

Response

Successful response

success
boolean
required
results
object[]
required