# Aggregate counts across all tenants (operator)

> Aggregate counts across all tenants (operator): CustomDomain™ API reference in the tenancy group. Covers parameters, request body, responses and error codes.

Source: https://docs.customdomain.ai/docs/api-reference/tenancy/getStats

## `GET https://api.customdomain.ai/v1/stats`

How many tenants, accepted members and pending invites the control plane holds. An operator surface for the owner dashboard, gated by the management key: no tenant API key can reach it, and it carries no tenant data. `members` counts accepted members only (owners and teammates who signed up); an invite that was sent and never accepted counts under `pending_invites`, so the two add up to the members table.

### Authentication

`managementKey`

### Responses

| Status | Description |
| --- | --- |
| `200` | Counts |
| `401` | Error envelope: {code, title, details, request_id}. |

### `200` response body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `tenants` | integer | yes |  |
| `members` | integer | yes | Accepted members only. |
| `pending_invites` | integer | yes | Invites sent and not yet accepted. |

The full specification is served at `GET https://api.customdomain.ai/v1/openapi.json`.
