Skip to main content
POST
Re-chunk a knowledge-base document

Authorizations

Authorization
string
header
required

Dashboard JWT token from Clerk

Path Parameters

agentId
string
required
docId
string
required

Body

application/json
chunk_size
integer

New target chunk size in tokens. Defaults to the tenant setting when omitted.

Required range: 100 <= x <= 8000
chunk_overlap
integer

New chunk overlap in tokens; must be smaller than chunk_size.

Required range: 0 <= x <= 2000

Response

200 - application/json

The document was re-chunked; the result summarises the new chunking.

data
object
meta
object