Skip to main content
GET
/
vault
/
{id}
/
objects
/
{objectId}
/
chunks
curl -X GET "https://api.case.dev/vault/%3Cstring%3E/objects/%3Cstring%3E/chunks" \ -H "Authorization: Bearer $CASEDEV_API_KEY"
{
  "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
}

Documentation Index

Fetch the complete documentation index at: https://docs.case.dev/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key starting with sk_case_

Path Parameters

id
string
required

The vault ID containing the document.

objectId
string
required

The processed object ID whose chunk text should be retrieved.

Query Parameters

start
integer
default:0

The first chunk index to return (0-based). Defaults to 0.

Required range: x >= 0
end
integer

The last chunk index to return (inclusive). If omitted, only the start chunk is returned. Ranges are limited to 10 chunks.

Required range: x >= 0

Response

Successfully retrieved full chunk text for the requested range

object_id
string
required

The object ID

vault_id
string
required

The vault ID

chunks
object[]
required

Full chunk objects for the requested range

total_chunks
integer
required

Total number of chunks stored for the object