---
title: "List Datasets"
method: GET
path: "/v1/datasets"
tags: ["datasets"]
---

# List Datasets

`GET /v1/datasets`

## Request

- Base URL: `https://api.fastino.ai`
- URL: `https://api.fastino.ai/v1/datasets`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/fastino-ai/apis/pioneer-inference-api/docs/v1/datasets/get.ts> (a function with typed inputs; its response is checked against the schema)

Lists visible datasets.

## Query parameters

- `include_all_versions` boolean
- `project_id` string, nullable: Filter by project ID. For a real project, orphan (no-project) datasets are included only when include_orphans=True. Omitted or the 'default' sentinel always includes orphans.
- `include_failed` boolean: When true, include the caller's own failed datasets (status='failed'). Defaults to false so the UI never renders broken-but-clickable records that 404 on preview/analyze. The result set is always scoped to the authenticated user — this flag does NOT grant cross-user visibility, so passing true is safe for any authenticated caller. Failed rows remain in the database for support / debugging; their original upload is preserved at raw_s3_key.
- `include_orphans` boolean: When true and project_id names a real project, also include the caller's own orphan (no-project) datasets alongside the project's own rows. Ignored when project_id is omitted or is the 'default' sentinel, where orphans are always included regardless. Defaults to false so an ordinary project-scoped list stays scoped to the project instead of being swamped by every one of the caller's orphans.
- `limit` integer, nullable: Maximum datasets to return, newest first, after collapsing to the latest version per name. Defaults to and is bounded at 200 (oversize requests are rejected, matching /v1/training/jobs and /projects/{id}/evaluation-runs). Callers that need the full set should page with limit and offset until a short page is returned.
- `offset` integer: Number of leading datasets to skip.

## Response `200`

Successful Response

- DatasetListResponse: Response model for listing datasets.
  - `count` integer, required
  - `datasets` DatasetResponse[], required
    - `annotation_config` object, nullable
    - `annotation_progress` object, nullable
    - `annotation_status` 'none' | 'in_progress' | 'completed', nullable
    - `column_mapping` object, nullable: Column mapping from original to standard names
    - `created_at` string, required
    - `dataset_name` string, required
    - `dataset_path` string, required
    - `dataset_type` string, required
    - `generation_type` string, nullable: Canonical operation that created this dataset version.
    - `id` string, required
    - `is_competition` boolean: Whether this dataset is a competition benchmark
    - `is_seed` boolean, nullable: Whether this dataset is a seed dataset (small set for review before full expansion)
    - `labels` string[], nullable: Label names (entity types for NER, class labels for classification). A training job accepts at most 250 unique labels across its datasets.
    - `processing_error` string, nullable: Error message if status is failed
    - `project_id` string, nullable
    - `provenance` DatasetProvenance: Record how a dataset was created and which inputs produced it. Attributes: schema_version: Contract version for future migrations. method: Canonical dataset generation type. sources: External source descriptors. fallback: Fallback reason and attempt count, when one was required. source_dataset_ids: Dataset inputs combined or transformed. parent_dataset_id: Immediate dataset version or transform parent. transform_context: Bounded details about a transform. generator_context: Bounded generator configuration or agent context. synthesis_session_id: Synthesis-log session shared with the dataset row.
      - `fallback` DatasetProvenanceFallback: Describe a fallback used after the preferred source or strategy failed. Attributes: reason: Why the preferred path could not be used. attempts: Number of attempts made before the fallback succeeded.
        - `attempts` integer, required
        - `reason` string, required
      - `generator_context` JsonObjectOutput
      - `method` 'synthesize' | 'upload' | 'external' | 'grow' | 'augment' | 'version' | 'merge' | 'auto_relabel' | 'manual_relabel' | 'evaluation_suite' | 'agent_curated', required
      - `parent_dataset_id` string, nullable
      - `schema_version` 1
      - `source_dataset_ids` string[]
      - `sources` DatasetProvenanceSource[]
        - `license` string, nullable
        - `raw_hash` string, nullable
        - `retrieved_at` string, date-time, nullable
        - `revision` string, nullable
        - `url` string, nullable
      - `synthesis_session_id` string, nullable
      - `transform_context` JsonObjectOutput
    - `root_dataset_id` string, nullable
    - `sample_size` integer, nullable
    - `schema` object, nullable
    - `schema_warnings` string[], nullable
    - `size` integer, nullable
    - `status` 'initialized' | 'uploading' | 'converting' | 'validating' | 'ready' | 'failed' | 'generating' | 'queued', nullable: Dataset status: initialized/uploading/converting/validating/ready/failed/generating/queued
    - `synthesis_session_id` string, nullable: UUID of the synthesis log session for this dataset, used to restore creation workflow on resume
    - `train_ratio` number, nullable: Train split ratio for this dataset version. Left-to-right split with no shuffle; validation is the tail.
    - `type` string: Dataset purpose tag: 'training', 'evaluation', or 'benchmark'
    - `updated_at` string, required
    - `user_id` string, required
    - `validation` object, nullable
    - `version_number` string
    - `visibility` string: Dataset visibility: 'private' or 'public'
    - `warnings` DatasetWarning[]: Why this dataset will not train well on its own: too few rows, a single class, or more labels than training accepts. Derived from the processed dataset, so it is empty until the dataset is ready.
      - `code` 'too_few_rows' | 'single_class' | 'too_many_labels', required: Machine-readable warning code
      - `message` string, required: What is wrong, and what training does with it
  - `success` boolean

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-12** `43d7e06a824b`: 1 warning
  - for the `query` request parameter `offset`, the max was set to `10000000.00`
- **2026-09-28** `b2e46909a0f8`: 1 info
  - added the optional property `datasets/items/warnings` to the response with the `200` status
- **2026-09-28** `54da122a2879`: 1 info
  - api operation id `list_datasets_datasets_get` removed and replaced with `list_datasets_v1_datasets_get`
- **2026-09-24** `a6b874d67be7`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/fastino-ai/apis/pioneer-inference-api/changes/v1/datasets/get.md)

---

[API](https://skmtc.dev/fastino-ai/apis/pioneer-inference-api.md) - [All operations](https://skmtc.dev/fastino-ai/apis/pioneer-inference-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fastino-ai/apis/pioneer-inference-api/revisions/81465e18c1d2?raw)
