Skip to main content
POST
Create Chunks

Authorizations

Authorization
string
header
required

Every request authenticates with an API key: Authorization: Bearer {API_KEY}. App endpoints take an app API key; knowledge endpoints take a knowledge base API key (Get Started).

Keep keys server-side; never embed them in client code. Requests with a missing or invalid key fail with HTTP 401 (unauthorized).

Path Parameters

dataset_id
string<uuid>
required

Knowledge base ID. Obtain it from List Knowledge Bases.

document_id
string<uuid>
required

Document ID. Obtain it from List Documents.

Body

application/json
segments
object[]
required

Array of chunk objects to create.

Minimum array length: 1

Response

Chunks created successfully.

data
object[]

List of created chunks.

doc_form
string

Document chunking mode used by this document.