> ## Documentation Index
> Fetch the complete documentation index at: https://docs.equa.cc/llms.txt
> Use this file to discover all available pages before exploring further.

# Admin Endpoints

> Site administration endpoints for user management, statistics, and data export

> **Source:** `equa-server/modules/api/src/endpoints/admin-endpoints.ts`

# Admin Endpoints

Endpoints for site-level administration. These are restricted to users with site admin privileges (`canReadSite` or `canWriteSite`).

## Admin Invite User

```
POST /v1/admin/invitation
```

| Field      | Value          |
| ---------- | -------------- |
| Auth       | Required       |
| Permission | `canWriteSite` |

Send an admin-level invitation to a user, bypassing normal invitation flows.

**Request:**

```json theme={null}
{
  "email": "newuser@example.com",
  "firstName": "Jane",
  "lastName": "Doe"
}
```

***

## Get Organization Users

```
GET /v1/organization/:organization/user
```

| Field      | Value         |
| ---------- | ------------- |
| Auth       | Required      |
| Permission | `canReadSite` |

List all users associated with an organization (admin view with full user details).

***

## Get Site Stats

```
GET /v1/site/stats
```

| Field | Value    |
| ----- | -------- |
| Auth  | Required |

Get platform-wide statistics (total users, organizations, etc.).

**Response:**

```json theme={null}
{
  "totalUsers": 1250,
  "totalOrganizations": 340,
  "totalShareholdings": 8920
}
```

***

## Export Cap Table CSV

```
GET /v1/site/captable
```

| Field      | Value         |
| ---------- | ------------- |
| Auth       | Required      |
| Permission | `canReadSite` |

Export all cap table data across the platform as a CSV file. This is a site admin data export for reporting purposes.
