---
title: "List all workspaces (admin)"
method: GET
path: "/api/admin/workspaces"
tags: ["Admin"]
---

# List all workspaces (admin)

`GET /api/admin/workspaces`

## Response `200`

OK

- AdminWorkspaceItem[]
  - `created_at` string, required
  - `id` string, required
  - `max_sandboxes` integer
  - `name` string, required
  - `owner` AdminOwnerInfo
    - `email` string, required
    - `id` string, required
    - `name` string, nullable
    - `picture` string, nullable
  - `sandbox_count` integer
  - `updated_at` string, required

## Other responses

- `401` — unauthorized
- `403` — admin role required
- `500` — internal error

---

[API](https://skmtc.dev/agentserver/apis/agentserver-api.md) · [All operations](https://skmtc.dev/agentserver/apis/agentserver-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/agentserver/agentserver-api/revisions/e8c329825b4e/schema)
