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

# List component groups

` GET /status-pages/{id}/groups `

List component groups

## Servers

- ` https://happyuptime.com/api/v1 `

## Authentication

The operation accepts these alternatives. Schemes within one alternative are required together.

### Alternative 1

- ` bearerAuth `: ` http `

  - HTTP scheme: ` bearer ` (hu_api_key)

  - API key with `hu_` prefix. Send exactly `Authorization: Bearer hu_...`. `X-API-Key` is not supported. Create keys in Dashboard → Settings → API Keys.

## Parameters

### ` id ` (path, required)

- ` value `: type ` string `

## Responses

### ` 200 ` — List of component groups

Content type: ` application/json `

- ` value `: type ` object `

  - ` groups `: type ` array `

    - ` array item `: type ` object `

      - ` id `: type ` string `

      - ` name `: type ` string `

      - ` description `: type ` string `; nullable

      - ` display_order `: type ` integer `

      - ` is_collapsed `: type ` boolean `

## Request examples

### cURL

```curl
curl -X GET 'https://happyuptime.com/api/v1/status-pages/string/groups' \
  -H 'Authorization: Bearer YOUR_API_TOKEN'
```

### JavaScript

```javascript
const response = await fetch('https://happyuptime.com/api/v1/status-pages/string/groups', {
  method: 'GET',
  headers: {
      "Authorization": "Bearer YOUR_API_TOKEN"
  }
});

const data = await response.json();
console.log(data);
```

### Python

```python
import requests

headers = {
    'Authorization': 'Bearer YOUR_API_TOKEN'
}

response = requests.get('https://happyuptime.com/api/v1/status-pages/string/groups', headers=headers)
print(response.json())
```