---
title: "Admin Assign Machines"
method: GET
path: "/admin/surveys/assign-machines"
---

# Admin Assign Machines

`GET /admin/surveys/assign-machines`

## Request

- Base URL: `https://api.local-mcp.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.local-mcp.com/admin/surveys/assign-machines`
- Auth: none declared. Required headers: `x-admin-key`

Lightweight machine list for the survey assignment panel. /admin/machines takes ~20s/page
(full-history DISTINCT ON + an events UNION for first_seen) and the panel paged it serially —
minutes of 'Loading machines…'. Assignment only needs recently-alive machines and the segment
fields, so: one query over the last `days` of heartbeats + tool totals. Sub-second.

## Query parameters

- `days` integer

## Headers

- `x-admin-key` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/local-mcp/apis/lmcp-api.md) · [All operations](https://skmtc.dev/local-mcp/apis/lmcp-api/llms.txt) · [OpenAPI document](https://skmtc.dev/local-mcp/apis/lmcp-api/revisions/f1f1c502623a?raw)
