Skip to main content
GET
List 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

knowledge_base_id
string<uuid>
required

Knowledge base ID: the last segment of the Service API endpoint shown in the knowledge base's API Access dialog (…/knowledge-fs/spaces/<knowledge base ID>), and the segment after /datasets/new/ in the address bar.

document_id
string<uuid>
required

The document ID, from List Documents or from the address bar of the open document (/datasets/new/<knowledge base ID>/documents/<document ID>).

revision
integer
required

Revision number. From List Document Revisions.

Required range: x >= 1

Query Parameters

cursor
string

Cursor from the previous page's next_cursor.

Required string length: 1 - 1000
query
string

Case-insensitive substring to match against text. Not a semantic search. Omit it to list every chunk.

Required string length: 1 - 512
limit
integer
default:50

Chunks per page.

Required range: 1 <= x <= 100

Response

One page of chunks.

data
object[]

One page of chunks, ordered by chunk ID.

next_cursor
string | null

Cursor for the next page, or null on the last page. Send it back as cursor.