---
title: "List Accounts"
method: GET
path: "/api/admin/accounts"
tags: ["admin"]
---

# List Accounts

`GET /api/admin/accounts`

## Request

- Base URL: `https://api-v1.unusual.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api-v1.unusual.ai/api/admin/accounts`
- Auth: OAuth 2
  - Password
  - Token URL: `/auth/login`

List all customer accounts with summary information (paginated).

Default sort: by created_at desc (newest first).
All sorting is done at the SQL level to ensure correct ordering across pages.

## Query parameters

- `page` integer
- `page_size` integer
- `search` string, nullable
- `sort_by` string, nullable
- `sort_dir` string, nullable

## Headers

- `x-view-as` string, nullable

## Response `200`

Successful Response

- BackendDashboardServerRoutesAdminAccountListResponse
  - `accounts` BackendDashboardServerRoutesAdminAccountSummary[], required
    - `id` string, required
    - `name` string, required
    - `created_at` string, required
    - `has_active_plan` boolean, required
    - `last_customer_login` string, nullable
    - `domains` DomainSummary[], required
      - `id` string, required
      - `name` string, nullable
      - `host` string, required
      - `description` string, nullable
      - `no_content_features` boolean
      - `monitoring_onboarded` boolean
    - `user_count` integer, required
  - `total` integer, required
  - `page` integer
  - `page_size` integer

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/unusual/apis/dashboard-server.md) - [All operations](https://skmtc.dev/unusual/apis/dashboard-server/llms.txt) - [OpenAPI document](https://skmtc.dev/unusual/apis/dashboard-server/revisions/89f716930ead?raw)
