GET
/
v4
/
knowledge-bases
/
{knowledge_base_id}
/
chunks

Authorizations

x-api-key
string
headerrequired

Path Parameters

knowledge_base_id
string
required

Query Parameters

chunk_id
string | null

Optional search by chunk_id

metadata_filters
string | null

Optional search by metadata fields, encoded as a JSON object

max_chunks
integer
default: 10

Maximum number of chunks returned by the get_chunks endpoint. Defaults to 10 and cannot be greater than 2000.

Required range: 1 < x < 2000

Response

200 - application/json
chunks
object[]
required

List of chunks that match the chunk_id and metadata filters