> ## Documentation Index
> Fetch the complete documentation index at: https://help.abacusdocs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Chat-id sections

> List parsed sections for a Deep Reader chat.

Parsed sections for a Deep Reader chat. `{id}` is the **chat** pk. Prefer [Sections](/api-reference/documents/attachment-sections) when you already hold `att_id`.


## OpenAPI

````yaml GET /api/v2/documents/{id}/sections/
openapi: 3.1.0
info:
  title: Abacus Docs API
  version: 1.0.0
  description: |
    REST + SSE surface for Abacus Docs on the same host as the web app
    (`https://abacusdocs.com`). Paths are `/api/v2/…`.

    Authenticate with an organisation API key (`sk-abacus-*`) as a Bearer
    token, or an Auth0 access token. Cross-tenant reads return **404**, not
    403. Page-based lists use `?page=` and `?page_size=`.

    Extraction, reprocess, schema tests, and chat turns spend credits.
    See the help centre Credits pages for rates.
  contact:
    name: Abacus Docs
    url: https://abacusdocs.com/contact
servers:
  - url: https://abacusdocs.com
    description: Production (Extract)
security: []
paths:
  /api/v2/documents/{id}/sections/:
    get:
      tags:
        - v2/documents
      summary: Get document sections
      description: >-
        Returns parsed sections with bounding-box coordinates for overlay
        rendering. Optional `language` param switches to a translated version.
        Returns 404 when the document attachment is still in `pending` state
        (not yet processed).
      operationId: v2_documents_sections_retrieve
      parameters:
        - in: path
          name: id
          schema:
            type: integer
          required: true
        - in: query
          name: language
          schema:
            type: string
          description: Language code for a translated version (empty = original).
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SectionsResponse'
          description: ''
        '404':
          description: No response body
      security:
        - extractApiKey: []
        - bearerAuth: []
        - cookieAuth: []
components:
  schemas:
    SectionsResponse:
      type: object
      description: Response envelope for the sections endpoint.
      properties:
        sections:
          type: array
          items:
            $ref: '#/components/schemas/ParsedSection'
        status:
          type: string
        available_versions:
          type: array
          items:
            type: string
        file_url:
          type:
            - string
            - 'null'
      required:
        - available_versions
        - file_url
        - sections
        - status
    ParsedSection:
      type: object
      description: >-
        Thin serializer over ParsedSection.to_dict() with typed bbox fields.


        Delegates to to_dict() for the pixel_bbox optional field (only present
        when

        non-zero), so the schema accurately reflects conditional presence.
      properties:
        id:
          type: integer
          readOnly: true
        type:
          type: string
        page:
          type: integer
        bbox:
          allOf:
            - $ref: '#/components/schemas/Bbox'
          readOnly: true
        pixel_bbox:
          oneOf:
            - $ref: '#/components/schemas/PixelBbox'
            - type: 'null'
          readOnly: true
        content:
          type: string
        color:
          type: string
        order:
          type: integer
          maximum: 2147483647
          minimum: 0
      required:
        - bbox
        - color
        - content
        - id
        - page
        - pixel_bbox
        - type
    Bbox:
      type: object
      description: Normalised bounding box (0-1 range) with precision flag.
      properties:
        x:
          type: number
          format: double
        'y':
          type: number
          format: double
        width:
          type: number
          format: double
        height:
          type: number
          format: double
        precise:
          type: boolean
      required:
        - height
        - precise
        - width
        - x
        - 'y'
    PixelBbox:
      type: object
      description: Absolute pixel bounding box from Lynx OCR.
      properties:
        x:
          type: integer
        'y':
          type: integer
        width:
          type: integer
        height:
          type: integer
      required:
        - height
        - width
        - x
        - 'y'
  securitySchemes:
    extractApiKey:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: |
        Organisation API key from Settings → API / `/api/keys/`. The secret is
        shown once. Send `Authorization: Bearer sk-abacus-…`. One active key
        per organisation. Ingest (`/api/v2/ingest/*`) refuses API keys — that
        surface is Auth0-only with `ingest:read` / `ingest:write` scopes.
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >
        Auth0 access token for a signed-in user. Send `Authorization: Bearer
        <token>`.

        The SPA and desktop agent use this. Prefer an organisation API key for

        server-to-server integrations.
    cookieAuth:
      type: apiKey
      in: cookie
      name: sessionid
      description: |
        Django session cookie from a browser login. Present so the web app can
        call `/api/v2` without a header. Do not rely on this for integrations.

````