---
title: "Get record (nested)"
method: GET
path: "/records-nested/{id}"
tags: ["Records"]
---

# Get record (nested)

`GET /records-nested/{id}`

## Request

- Base URL: `https://klaaro.ai/api/v1`
- URL: `https://klaaro.ai/api/v1/records-nested/{id}`
- Auth: HTTP bearer

Record with nested data tree (container FieldView at object/array fields, leaf FieldView at scalars). No flat fields map. (nested)

## Path parameters

- `id` string, uuid, required

## Query parameters

- `include` string: Comma-separated: events,comments

## Response `200`

OK

- RecordNested: Record with nested data tree: container FieldView at schema object/array paths, leaf FieldView at scalars; no flat fields map.
  - `id` string, uuid, required
  - `documentId` string, uuid, required
  - `datasetId` string, uuid, required: UUID of the dataset this record belongs to
  - `datasetSlug` string, required: Slug of the dataset this record belongs to
  - `rowIndex` integer, required
  - `class` RecordClassRef, required
    - `slug` string, nullable, required
    - `name` string, nullable, required
    - `schemaHash` string, nullable, required: SHA-256 of field definitions at extraction time (pinned on record).
    - `classHash` string, nullable, required: SHA-256 of full class definition at extraction time (pinned on record).
  - `sourcePage` integer, nullable
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required
  - `approval` object, nullable
    - `status` 'pending' | 'approved' | 'approved_with_changes' | 'rejected'
    - `triggeredBy` string[]
  - `crossField` object, required
    - `validation` FieldValidation
      - `violations` Violation[]
        - `ruleId` string
        - `ruleKind` string
        - `status` 'fail' | 'error'
        - `message` string
      - `hasViolations` boolean
  - `comments` object, required
    - `count` integer
    - `preview` Comment[]
      - `id` string, required: UUID for native field_events rows; legacy rows use `legacy:comment:{uuid}`.
      - `body` string, required
      - `author` object, required
        - `kind` 'user' | 'api_key'
        - `id` string, uuid, nullable
        - `name` string, nullable
      - `createdAt` string, date-time, required
      - `updatedAt` string, date-time, required
      - `source` string, nullable: Present when sourced from legacy record_comments.
  - `data` unknown, required

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `429`: Rate limited

---

[API](https://skmtc.dev/klaaro/apis/klaaro-api.md) · [All operations](https://skmtc.dev/klaaro/apis/klaaro-api/llms.txt) · [OpenAPI document](https://skmtc.dev/klaaro/apis/klaaro-api/revisions/053a1638b76c?raw)
