---
title: "Get class"
method: GET
path: "/datasets/{id}/classes/{class}"
tags: ["Datasets"]
---

# Get class

`GET /datasets/{id}/classes/{class}`

## Request

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

## Path parameters

- `id` string, uuid, required
- `class` string, required

## Response `200`

OK

- Class
  - `slug` string, required: URL-safe identifier, unique per dataset.
  - `name` string, required: Human-readable display name.
  - `description` string
  - `color` string
  - `schemaHash` string, required: SHA-256 of field definitions only. Changes on structural field changes.
  - `classHash` string, required: SHA-256 of full class definition (schema + display + behavior). Changes on any modification.
  - `fields` SchemaField[], required
    - `name` string, required
    - `type` 'string' | 'number' | 'boolean' | 'date' | 'enum' | 'array' | 'object' | 'currency' | 'percentage' | 'email' | 'phone' | 'url' | 'address', required
    - `description` string
    - `required` boolean, required
    - `children` SchemaField[]
    - `arrayItemType` string
    - `arrayItemFields` SchemaField[]
    - `enumValues` union[]
      - union
        - string
        - number
  - `createdAt` string, date-time
  - `updatedAt` string, date-time

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