> ## Documentation Index
> Fetch the complete documentation index at: https://weights.fyi/run/llms.txt

# GET /v1/datasets/{dataset_id}

```text
GET https://weights.fyi/run/v1/datasets/<dataset_id>
Authorization: Bearer <token>                    scope: read
```

**Available since:** 2026-10-08, with fine-tuning, the day the service went live on weights.fyi/run. Merged on 2026-10-09 and live from the deploy that carries it: datasets count against storage limits.

**Answer time:** synchronous: the dataset is read from the service's own records and answered at once.

Reads one dataset of your account: its status, the counts and the digest of its file once one is accepted, and the training jobs that used it. This is the call to make after an upload whose answer you lost, to learn whether the file was accepted; and before a training job, to check that `train_rows` and `validation_rows` are what you expect, since the training estimate is computed from them.

The answer has the same shape as an entry of [GET /v1/datasets](/run/docs/reference/datasets-list.md). Unlike the list, this call also answers for a dataset you deleted: it shows the dataset in status `deleted`, with its name, counts and digest kept, so that a training job that names it still leads somewhere. The file itself is gone from storage once a dataset is deleted, and a deleted dataset can neither take an upload nor train. A dataset that belongs to another account answers exactly as one that does not exist, `404 dataset_not_found`, so an id can never tell you whether someone else has it. The call reads the service's records only, so it answers whether or not fine-tuning is switched on.

## Request

| Name | Where | Required | Meaning |
|---|---|---|---|
| `Authorization` | header | yes | `Bearer` and your token. The token needs the `read` scope; reads do not count against the request rate. |
| `dataset_id` | path | yes | The dataset's identifier, `ds_` followed by 24 hexadecimal characters. |

## Return value

**200 OK** with the dataset.

| Field | Meaning |
|---|---|
| `dataset_id` | The dataset's identifier. |
| `name` | The name you gave the dataset when you made it. |
| `format` | The file format, `laya-page-role/jsonl`. |
| `base_model` | The model the dataset trains, `laya-page-role-base`. |
| `labels` | The labels its rows may carry, in the base model's order. |
| `status` | `uploading` (no file accepted yet), `ready` (a file accepted; it can train), `failed` (the last upload was refused) or `deleted` (removed; its file is gone). |
| `error` | The code of the last refused upload, or `null`. |
| `rows`, `train_rows`, `validation_rows` | The rows in the accepted file, in all and per split; `null` until a file is accepted. |
| `bytes` | The accepted file's size in bytes, or `null`. |
| `sha256` | The SHA-256 of the accepted file, or `null`. Compare it with your own copy's digest. |
| `created_at` | When the dataset was made. |
| `ready_at` | When its file was accepted, or `null`. |
| `jobs` | Every training job that has used the dataset, oldest first. |

## Errors

| Status | Code | When it happens | What to do |
|---|---|---|---|
| `401` | `unauthorized`, `invalid_token`, `token_revoked`, `token_expired` | No token, or one that does not work (any more). | Use a valid token. |
| `403` | `scope_required`, `account_suspended` | The token lacks `read`, or the account is suspended. | Use a token with `read`. |
| `404` | `dataset_not_found` | There is no such dataset in your account. | Check the id with [GET /v1/datasets](/run/docs/reference/datasets-list.md). |

## Examples

```sh
curl -s https://weights.fyi/run/v1/datasets/DATASET_ID -H "Authorization: Bearer $WEIGHTS_API_KEY"
```

```json
{
  "dataset_id": "ds_12be8b8818ceaf13696e7ff9",
  "name": "my labelled pages",
  "format": "laya-page-role/jsonl",
  "base_model": "laya-page-role-base",
  "labels": ["detail", "listing", "landing", "not_vacancy", "unresolved"],
  "status": "ready",
  "error": null,
  "rows": 50,
  "train_rows": 40,
  "validation_rows": 10,
  "bytes": 8935,
  "sha256": "96c0db13101fe3bbdf7aa2fa278fe54799434ae60fc1ecbe52e66f9fb972f506",
  "created_at": "2026-10-09T08:28:09.826Z",
  "ready_at": "2026-10-09T08:28:09.829Z",
  "jobs": ["job_a698e920d5f0db918008bc43"]
}
```

## History

- 2026-10-08: live with fine-tuning.
- 2026-10-09 (merged, live from the deploy that carries it): every dataset not deleted counts against your account's storage limits, a `failed` or `uploading` one with the largest size until it is deleted; see [POST /v1/datasets](/run/docs/reference/datasets-create.md).

## See also

- [GET /v1/datasets](/run/docs/reference/datasets-list.md) for all of them.
- [PUT /v1/datasets/{dataset_id}/content](/run/docs/reference/datasets-upload.md) to send a file to a dataset in `uploading` or `failed`.
- [GET /v1/quote (finetune)](/run/docs/reference/quote-finetune.md) to price a training job on it.
