Retrieves full extracted chunk text for a processed vault object. Use this after search when a truncated preview is not enough and you need the exact chunk text or adjacent chunks for surrounding context such as tables, exhibit lists, or multi-part passages.
curl --request GET \
--url https://api.case.dev/vault/{id}/objects/{objectId}/chunks \
--header 'Authorization: Bearer <token>'{
"object_id": "obj_abc123",
"vault_id": "vault_def456",
"chunks": [
{
"index": 12,
"text": "Exhibit A lists the devices, serial numbers, and maintenance dates for each unit.",
"page_start": 5,
"page_end": 5,
"word_start_index": 5544,
"word_end_index": 6055
},
{
"index": 13,
"text": "The following rows continue the exhibit table with replacement dates and service notes.",
"page_start": 5,
"page_end": 6,
"word_start_index": 6056,
"word_end_index": 6532
},
{
"index": 14,
"text": "Footnotes on the next page clarify which devices were decommissioned before transfer.",
"page_start": 6,
"page_end": 6,
"word_start_index": 6533,
"word_end_index": 6881
}
],
"total_chunks": 42
}API key starting with sk_case_
The vault ID containing the document.
The processed object ID whose chunk text should be retrieved.
The first chunk index to return (0-based). Defaults to 0.
x >= 0The last chunk index to return (inclusive). If omitted, only the start chunk is returned. Ranges are limited to 10 chunks.
x >= 0Successfully retrieved full chunk text for the requested range
Was this page helpful?
curl --request GET \
--url https://api.case.dev/vault/{id}/objects/{objectId}/chunks \
--header 'Authorization: Bearer <token>'{
"object_id": "obj_abc123",
"vault_id": "vault_def456",
"chunks": [
{
"index": 12,
"text": "Exhibit A lists the devices, serial numbers, and maintenance dates for each unit.",
"page_start": 5,
"page_end": 5,
"word_start_index": 5544,
"word_end_index": 6055
},
{
"index": 13,
"text": "The following rows continue the exhibit table with replacement dates and service notes.",
"page_start": 5,
"page_end": 6,
"word_start_index": 6056,
"word_end_index": 6532
},
{
"index": 14,
"text": "Footnotes on the next page clarify which devices were decommissioned before transfer.",
"page_start": 6,
"page_end": 6,
"word_start_index": 6533,
"word_end_index": 6881
}
],
"total_chunks": 42
}