Pinter
ENID
Documents
Lihat sebagai Markdown

List Chunks of a Knowledge Document (paged)

GET/api/knowledge/documents/hub-documents/{document_id}/chunks

Overview

Pages through every indexed chunk of the active, processed version, ordered by chunk_index. The detail endpoint only embeds the first 50 (chunk_total there gives the full count). Same access as the detail view. Active when KNOWLEDGE_BACKEND=parser.

Query Parameters

  • offset (int >= 0, default 0); limit (1-100, default 50). offset >= total returns items: [].

Parameter

Path

document_idstringwajib
Unique UUID of the knowledge document stored in the vector database.

Query

offsetinteger
Number of initial records to skip for pagination.
limitinteger
Maximum number of records to return in the paginated response (1 to 100).

Respons

200 A page of chunks

400 Bad Request - The request parameters or headers are invalid (e.g. unsupported API-Version).

401 Unauthorized - Missing, invalid, or expired JWT Bearer token.

403 Forbidden - Insufficient role permissions or resource access denied by RBAC policy.

404 Not found/not visible, no processed version, or hub backend

410 Share link expired

422 `offset`/`limit` out of range

detailobject[]
detail[].locstring | integer[]wajib
detail[].msgstringwajib
detail[].typestringwajib
detail[].inputobject
detail[].ctxobject
{
  "detail": [
    {
      "loc": [
        null
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}

503 Chunk store temporarily unavailable

Contoh

curl -X GET "$PINTER_URL/api/knowledge/documents/hub-documents/doc_it_guidelines_2026/chunks" \
  -H "Authorization: Bearer $ACCESS_TOKEN"