FruxonDocs
IntegrationsAssets

Lists chunks for a document using cursor-based pagination.

Returns the ordered chunks produced by the ingestion pipeline — the indivisible units that searches return and that the embedding model encoded. Chunk size and overlap are determined by the asset's embedding configuration, not by this call. Primarily used to inspect what the model actually sees for a given document when debugging poor search relevance or unexpected agent answers.

GET
/v1/tenants/{tenant}/assets/{asset}/documents/{document}/chunks
AuthorizationBearer <token>

JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.

In: header

Path Parameters

asset*string

The asset ID.

Formatuuid
document*string

The document ID.

Formatuuid
tenant*string

The tenant identifier

Query Parameters

PageSize?integer
Formatint32
PageToken.Skip?integer
Formatint32
PageToken.Cursor?string

Opaque cursor token from an external system (e.g. RAG API). When set, M:Fruxon.Common.Collections.PageToken.AsString returns this value directly instead of encoding Fruxon.Common.Collections.PageToken.Skip.

Response Body

curl -X GET "https://api.fruxon.com/v1/tenants/string/assets/497f6eca-6276-4993-bfeb-53cbbbba6f08/documents/497f6eca-6276-4993-bfeb-53cbbbba6f08/chunks"
{
  "documentId": "00000000-0000-0000-0000-000000000000",
  "chunks": [
    {
      "chunkId": "00000000-0000-0000-0000-000000000000",
      "chunkIndex": 0,
      "content": "string",
      "contextText": "string",
      "headingPath": "string",
      "pageNumber": "string",
      "startCharIdx": 0,
      "endCharIdx": 0,
      "startLine": 0,
      "endLine": 0,
      "tokenCount": 0,
      "codeIntel": {}
    }
  ],
  "totalChunks": 0,
  "nextPageToken": "string"
}
Empty
Empty
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}