List datasets
GET https://weights.fyi/run/v1/datasets
Authorization: Bearer <token> scope: read- Available since
- 2026-10-08; merged 2026-10-09. Storage limits apply from the deploy carrying that change.
- Answer time
- synchronous.
Lists your account's datasets, newest first, in the shape returned by GET /v1/datasets/{dataset_id}. Find dataset IDs, upload readiness and associated training jobs before deleting unused datasets. Deleted datasets are omitted but remain readable by ID.
Statuses are uploading (awaiting a file), failed (upload refused, with an error such as unknown_label), or ready (accepted file, available for training). jobs lists every associated training job, including finished jobs. At most 1,000 datasets are returned. There is no cursor; read older datasets by ID. Listing remains available when fine-tuning is disabled: Fine-tuning is switched on for this service.
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. |
Return value
200 OK with two fields: datasets, a list, newest first, of datasets that are not deleted, and limits, where your account and the service stand against the dataset limits that POST /v1/datasets applies (merged 2026-10-18, live from the deploy that carries it). Each datasets entry has these fields:
| Field | Meaning |
|---|---|
dataset_id | The dataset's identifier, ds_ followed by 24 hexadecimal characters. |
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, ready or failed, as described above. |
error | The code of the last refused upload, such as unknown_label, or null. It is cleared when a later upload is accepted. |
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. |
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, as job ids. |
limits has account and service, each with count (datasets not deleted), max_count, bytes (stored or reserved) and max_bytes, and reserved_per_dataset, the bytes a new dataset reserves until its upload is accepted. A POST /v1/datasets is admitted while count < max_count and bytes + reserved_per_dataset <= max_bytes for both; otherwise it answers 429 dataset_count_limit or dataset_storage_limit. Delete a dataset you no longer train on to make room.
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. |
Examples
curl -s https://weights.fyi/run/v1/datasets -H "Authorization: Bearer $WEIGHTS_API_KEY"Two datasets: the newest had its upload refused for a label, the older one is ready and was used by one training job.
{
"datasets": [
{
"dataset_id": "ds_3c5312a9a04e76a477cec491",
"name": "bad",
"format": "laya-page-role/jsonl",
"base_model": "laya-page-role-base",
"labels": ["detail", "listing", "landing", "not_vacancy", "unresolved"],
"status": "failed",
"error": "unknown_label",
"rows": null,
"train_rows": null,
"validation_rows": null,
"bytes": null,
"sha256": null,
"created_at": "2026-10-09T08:28:09.830Z",
"ready_at": null,
"jobs": []
},
{
"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
failedoruploadingone with the largest size until it is deleted; see POST /v1/datasets.
See also
- GET /v1/datasets/{dataset_id} for one dataset, deleted ones included.
- DELETE /v1/datasets/{dataset_id} to remove one.
- Fine-tune a model, the topic.