---
title: "List Groups Api"
method: GET
path: "/api/servers/groups"
tags: ["Server Management"]
---

# List Groups Api

`GET /api/servers/groups`

List all scope groups via JWT Bearer Token authentication (External API).

This endpoint provides the same functionality as GET /api/internal/list-groups
but uses modern JWT Bearer token authentication.

**Authentication:** JWT Bearer token (via nginx X-User header)
**Authorization:** Requires valid JWT token from auth system

**Response:**
Returns a list of all groups and their synchronization status.

**Example:**
```bash
curl -X GET https://registry.example.com/api/servers/groups \
  -H "Authorization: Bearer $JWT_TOKEN"
```

## Query parameters

- `include_keycloak` boolean
- `include_scopes` boolean

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/ascending-llc/apis/mcp-gateway-registry.md) · [All operations](https://skmtc.net/ascending-llc/apis/mcp-gateway-registry/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ascending-llc/mcp-gateway-registry/versions/31381943e2e7/schema)
