# API reference: models

Model-kind repo extras: model meta, and the policies listed from the Hugging Face Hub

## PUT /v1/models/{owner}/{repo}/meta

`putModelMeta` · scope `key:write` · Set model meta

Replaces the model meta block on a model-kind repo in full. The training worker sets `source_run_id` when packaging a trained model. Returns a 409 problem if the repo kind is not `model`. `robot` must be a robot repo the caller can read. A missing, private or malformed one gets the same `422`, word for word. `embodiment_fingerprint` is the interface fingerprint the policy's manifest records. `datasets` names the datasets it was trained on, under the same rule for a `lucen://` ref.

Parameters:

- `owner` (path, required): Repo owner handle (username or org slug).
- `repo` (path, required): Repo slug. A renamed repo's former slug also finds it, and the answer names its current address.

Request body: `application/json`, required.

Responses:

- `200`: Stored model meta.
- `401`: Missing or invalid credentials.
- `403`: Authenticated but not allowed (visibility, membership or scope).
- `404`: Resource not found (or hidden from the caller).
- `409`: State conflict (duplicate handle/slug, wrong repo kind, terminal job, ...).
- `422`: Request failed validation.

## GET /v1/external-models

`listExternalModels` · scope `none` · List the policies listed from Hugging Face

Policies from the Hugging Face Hub's LeRobot library, listed beside the hub's own. The hub stores their public metadata only. It hosts none of their files and has checked none of them. Each item links to its page on Hugging Face. `downloads` and `likes` are Hugging Face's own counts. They are kept apart from the hub's own counts and sorts. A daily sync refreshes the list, and `synced_at` says when it last succeeded. A failed sync keeps the last list.

Parameters:

- `q` (query): Search text. It matches the id (`author/name`) and the tags, case-insensitive.
- `sort` (query): Order by Hugging Face's downloads in the last 30 days, its likes, or its last update. Always descending.
- `limit` (query): Page size.
- `cursor` (query): Opaque cursor from the previous page's `next_cursor`.

Responses:

- `200`: Page of listed policies.
- `422`: Request failed validation.
