---
title: "Get Dataset Detail"
method: GET
path: "/api/v1/optimization/datasets/{dataset_id}"
tags: ["optimization"]
---

# Get Dataset Detail

`GET /api/v1/optimization/datasets/{dataset_id}`

Return dataset metadata with the first 10 rows as preview.

## Path parameters

- `dataset_id` string, required — Identifier of the dataset to inspect.

## Response `200`

Successful Response

- DatasetDetailResponse — Dataset metadata with sample rows and URI.
  - `id` string, required — Unique dataset identifier.
  - `name` string, required — Human-readable dataset name.
  - `row_count` integer, required — Number of rows/examples in the dataset.
  - `format` string, required — File format (json or jsonl).
  - `module_slug` string, nullable — Associated module slug, when provided.
  - `created_at` string, required — ISO-8601 creation timestamp.
  - `sample_rows` object[], required — First rows from the dataset as preview.
  - `uri` string, required — Filesystem path to the dataset file.

## Other responses

- `401` — Authentication is required or the provided token is invalid.
- `404` — Dataset not found.
- `422` — Validation Error

---

[API](https://skmtc.net/qredence/apis/fleet-rlm.md) · [All operations](https://skmtc.net/qredence/apis/fleet-rlm/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/qredence/fleet-rlm/versions/62e8c152aa18/schema)
