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

# GET /v1/nodes

```text
GET https://weights.fyi/run/v1/nodes[?include_revoked=true]
Authorization: Bearer <token>                    scope: manage
```

**Available since:** 2026-10-19 worker enrollment: answered only where this service enrolls your own workers (otherwise the path answers 404); see [Bring your own model](/run/docs/your-model.md).

**Answer time:** synchronous: the list is read at once.

Lists the workers your workspace enrolled, oldest enrollment first, each with the models it offers. A worker is a computer of your own running the `weights` agent, which keeps an outbound connection to this service and answers calls for those models. `open_sessions` above 0 means the worker is connected now; a published model can answer only while one of its workers is.

An offer is the worker's statement, made when it enrolled, that it serves a model under the id callers send. It reads `offered` until it is published and `published` after, and only a published offer receives your workspace's calls. A revoked worker never connects again, so it is left out unless you ask for it. The worker's `id` is the `node_id` the revoke and publish calls take. The worker's own enrollment and certificate calls are made by the agent with its join token, not with a workspace key, and are not part of this reference.

## Request

| Name | Where | Required | Meaning |
|---|---|---|---|
| `Authorization` | header | yes | `Bearer` and a token with `manage`. |
| `include_revoked` | query | no | `true` or `1` also lists the workers that were revoked. |

## Return value

**200 OK** with `data`, a list of workers:

| Field | Meaning |
|---|---|
| `id` | The worker's identifier, a UUID: the `node_id` of the other calls. |
| `workspace_id`, `name` | The workspace it is enrolled in, and the name it enrolled under, one of a kind among the workspace's workers that are not revoked. |
| `status`, `revoked_at` | `active` or `revoked`, and when it was revoked or `null`. |
| `serving` | `serving` (offered your calls), `paused` or `draining` (offered none until you resume it). Set by [pause](/run/docs/reference/workers-pause.md), [drain](/run/docs/reference/workers-drain.md) and [resume](/run/docs/reference/workers-resume.md). |
| `serving_changed_at`, `serving_reason` | When it was last paused, drained or resumed, and the reason recorded with it; `null` if never. |
| `join_token_id` | The join token it enrolled with. |
| `facts` | What the agent reported at enrollment: its `agent_version` and `platform`. |
| `region` | The region its offers declared, or `null`. |
| `spki_sha256` | The SHA-256 of the public key its certificate is issued for. |
| `enrolled_at` | When it enrolled. |
| `open_sessions` | How many connections it holds now; 0 while it is away. |
| `offers` | Its offers, by model id: `model`, `status`, `pool` (the name the model's declaration is kept under, `null` while only offered), `priority` (its place among the model's workers, lowest asked first, or `null`), `upstream_model` (the name the worker's own server knows the model by), `backend_kind`, `max_in_flight`, `call_timeout_seconds`, `modalities`, `region` and `chat_fields` (the optional chat fields it takes). |

## 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 `manage`, or the account is suspended. | Use a token with `manage`. |
| `503` | `byoc_unavailable` | Worker enrollment is not available on this service right now. | Retry later. |

## Examples

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

```json
{"data": [
  {"id": "0b6f3c52-8f0e-4b57-9a54-3f1c2d7e9a10", "workspace_id": 7, "name": "studio-1", "status": "active",
   "join_token_id": 12, "facts": {"agent_version": "...", "platform": "Linux-aarch64"}, "region": null,
   "spki_sha256": "5f2c1b9e8a7d6c4b3a29180f7e6d5c4b3a2918f7e6d5c4b3a29180f7e6d5c4b3",
   "enrolled_at": "2026-11-14T09:30:00+00:00", "revoked_at": null, "serving": "serving",
   "serving_changed_at": null, "serving_reason": null, "open_sessions": 1,
   "offers": [
     {"model": "almanakje-gemma3-12b", "backend_kind": "openai", "upstream_model": "gemma3:12b", "max_in_flight": 4,
      "call_timeout_seconds": 300.0, "modalities": ["text"], "region": null, "status": "published",
      "pool": "byoc-7-almanakje-gemma3-12b", "priority": 1, "chat_fields": ["tools", "tool_choice"]}
   ]}
]}
```

## History

- 2026-10-19: built.
- 2026-11-16: this page added.
- 2026-11-16 (built, live with the deploy that carries it): `serving`, `serving_changed_at` and `serving_reason`.

## See also

- [`POST /v1/nodes/{node_id}/offers/{model}/publish`](/run/docs/reference/workers-offers-publish.md) to route calls to an offer.
- [`POST /v1/nodes/{node_id}/revoke`](/run/docs/reference/workers-revoke.md) to end a worker's enrollment.
- [`POST /v1/nodes/{node_id}/pause`](/run/docs/reference/workers-pause.md), [`/drain`](/run/docs/reference/workers-drain.md) and [`/resume`](/run/docs/reference/workers-resume.md) to stop and start its calls.
- [Bring your own model](/run/docs/your-model.md), the topic.
