---
title: "Get records (JSON)"
method: GET
path: "/datasets/{id}/records"
tags: ["Datasets"]
---

# Get records (JSON)

`GET /datasets/{id}/records`

## Request

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

Returns minimal record wrappers with pure extracted data ordered by class schema. No field metadata. (JSON)

## Path parameters

- `id` string, uuid, required

## Query parameters

- `classification` string
- `class` string: Alias for classification
- `approval` 'pending' | 'approved' | 'approved_with_changes' | 'rejected'
- `createdAfter` string, date-time
- `createdBefore` string, date-time
- `updatedAfter` string, date-time
- `limit` integer
- `cursor` string

## Response `200`

OK

- object
  - `data` RecordClean[]
    - `id` string, uuid, required
    - `documentId` string, uuid, 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).
    - `data` object, required: Pure nested extracted values ordered by class schema (no FieldView wrappers).
  - `meta` ListMeta
    - `nextCursor` string, nullable, required
    - `hasMore` boolean, 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)
