List machines
curl --request GET \
--url http://127.0.0.1:8765/v1/workspaces/{workspace_id}/machines \
--header 'Authorization: Bearer <token>'import requests
url = "http://127.0.0.1:8765/v1/workspaces/{workspace_id}/machines"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://127.0.0.1:8765/v1/workspaces/{workspace_id}/machines', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"items": [
{
"type": "host",
"name": "my-laptop",
"id": "my-laptop",
"state": "managed",
"checked_at": "2026-11-07T00:00:05.000Z"
}
]
}Machines
List machines
GET
/
v1
/
workspaces
/
{workspace_id}
/
machines
List machines
curl --request GET \
--url http://127.0.0.1:8765/v1/workspaces/{workspace_id}/machines \
--header 'Authorization: Bearer <token>'import requests
url = "http://127.0.0.1:8765/v1/workspaces/{workspace_id}/machines"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://127.0.0.1:8765/v1/workspaces/{workspace_id}/machines', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"items": [
{
"type": "host",
"name": "my-laptop",
"id": "my-laptop",
"state": "managed",
"checked_at": "2026-11-07T00:00:05.000Z"
}
]
}List machines used to run workspace programs, with the local host first. Each machine is checked when requested.
See error examples and recovery steps. The complete OpenAPI contract includes every response schema.
managed means Mirage can inspect and stop every process started by its programs. reachable limits control to processes Mirage started directly. unreachable means the latest check failed.
Errors
Errors
| Status | Meaning |
|---|---|
400 | The request is malformed: the body is not JSON (invalid_json) or not a JSON object, a field is missing (missing_field), unknown (unknown_field) or has a wrong value (invalid_value), or the request is otherwise invalid (invalid_request). param names the field at fault. |
401 | The token is missing or wrong (unauthorized). |
404 | The workspace, session, job, file or route does not exist, or the caller may not see it (not_found). |
429 | Past a rate limit (rate_limited), or a new session past max_sessions (session_limit). |