> ## 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.

# Get full object chunks

> 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.



## OpenAPI

````yaml /openapi.json get /vault/{id}/objects/{objectId}/chunks
openapi: 3.1.0
info:
  title: Case.dev API
  description: >-
    The AI-native platform for legal technology. Build smarter legal
    applications with our suite of AI-powered APIs.
  version: 1.0.0
  contact:
    name: Case.dev Support
    email: support@casemark.com
    url: https://case.dev
  license:
    name: Proprietary
    url: https://case.dev/terms
servers:
  - url: https://api.case.dev
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Vaults
    description: Secure document storage with semantic search and GraphRAG
  - name: Memory
    description: >-
      Persistent memory for AI agents with semantic search and 12 generic
      indexed tag fields
  - name: OCR
    description: Extract text from PDFs, images, and scanned documents
  - name: Voice
    description: Audio transcription and text-to-speech
  - name: LLMs
    description: Access 40+ language models through a unified API
  - name: Search
    description: Web search, AI answers, and deep research
  - name: Mail
    description: Managed inboxes for agent email workflows
  - name: Media
    description: Transcript retrieval and captioned media clip generation
  - name: Legal
    description: Legal research tools including citation verification
  - name: Privilege
    description: Privilege detection for e-discovery and litigation workflows
  - name: Compute
    description: Serverless GPU and CPU infrastructure
  - name: Format
    description: Document formatting and template rendering (MD/JSON to PDF/DOCX)
  - name: SuperDoc
    description: Document conversion and template automation
  - name: Webhooks
    description: Webhook endpoint management
  - name: System
    description: Public system metadata and discovery endpoints
  - name: Usage
    description: Usage reporting and webhook subscriptions
  - name: Database
    description: Serverless PostgreSQL databases with instant branching
  - name: Translation
    description: Language detection and translation for multilingual legal workflows
  - name: Skills
    description: Search and read legal AI skills for agents
  - name: Agents
    description: >-
      Create, manage, and execute AI agents with tool access, sandbox
      environments, and async run workflows
  - name: Matters
    description: Matter-native legal workspaces and orchestration primitives
  - name: Applications Projects
    description: Web application project management
  - name: Applications Deployments
    description: Web application deployment management
  - name: Applications Domains
    description: Custom domain configuration for applications
  - name: Applications Env Vars
    description: Environment variable management for applications
paths:
  /vault/{id}/objects/{objectId}/chunks:
    get:
      tags:
        - Vaults
      summary: Get full object chunks
      description: >-
        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.
      operationId: getVaultObjectChunks
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: The vault ID containing the document.
        - name: objectId
          in: path
          required: true
          schema:
            type: string
          description: The processed object ID whose chunk text should be retrieved.
        - name: start
          in: query
          required: false
          schema:
            type: integer
            default: 0
            minimum: 0
          description: The first chunk index to return (0-based). Defaults to 0.
        - name: end
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
          description: >-
            The last chunk index to return (inclusive). If omitted, only the
            `start` chunk is returned. Ranges are limited to 10 chunks.
      responses:
        '200':
          description: Successfully retrieved full chunk text for the requested range
          content:
            application/json:
              schema:
                type: object
                required:
                  - object_id
                  - vault_id
                  - chunks
                  - total_chunks
                properties:
                  object_id:
                    type: string
                    description: The object ID
                  vault_id:
                    type: string
                    description: The vault ID
                  chunks:
                    type: array
                    description: Full chunk objects for the requested range
                    items:
                      type: object
                      required:
                        - index
                        - text
                        - page_start
                        - page_end
                        - word_start_index
                        - word_end_index
                      properties:
                        index:
                          type: integer
                          description: Chunk index within the document
                        text:
                          type: string
                          description: Full text for the chunk
                        page_start:
                          type: integer
                          nullable: true
                          description: >-
                            First page covered by the chunk, if page mapping is
                            available
                        page_end:
                          type: integer
                          nullable: true
                          description: >-
                            Last page covered by the chunk, if page mapping is
                            available
                        word_start_index:
                          type: integer
                          nullable: true
                          description: >-
                            First OCR word index covered by the chunk, if
                            available
                        word_end_index:
                          type: integer
                          nullable: true
                          description: >-
                            Last OCR word index covered by the chunk, if
                            available
                        start_ms:
                          type: integer
                          description: >-
                            Source media timestamp for the first word in the
                            chunk. Present only for media-backed transcripts
                            with real word timing.
                        end_ms:
                          type: integer
                          description: >-
                            Source media timestamp for the last word in the
                            chunk. Present only for media-backed transcripts
                            with real word timing.
                  total_chunks:
                    type: integer
                    description: Total number of chunks stored for the object
              example:
                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
        '400':
          description: >-
            Bad request - invalid range, missing parameters, or object not
            processed yet
        '401':
          description: Unauthorized - invalid API key
        '403':
          description: Forbidden - API key lacks vault service access or object scope
        '404':
          description: Object or vault not found, or no chunk data is available
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: API key starting with `sk_case_`

````