# List analysis groups

> GET https://api.nabrah.ai/api/ext/analysis

Group: Analysis groups. Page: https://www.nabrah.ai/en/docs/api-reference/analysis-groups/list-analysis-groups

Returns a brief listing of every analysis group in the workspace tied to your API key. Analysis groups define the post-call analysis (data extraction and evaluation collections) that can be linked to one or more agents. Use this endpoint to discover analysis groups and obtain the `id` values needed by the per-group endpoints (get, update, delete, link agents) and by the agent linking endpoints.

## What an analysis group is

- **Concept**: An analysis group is a named set of data collections (extraction/evaluation definitions) applied after a call. The same group can be linked to many agents, and an agent can have many groups — a many-to-many relationship.

## Response shape

Returns an object with an `analysis_groups` array (brief form, no data collections).

- **Fields per item**: Each item lists the group's `id`, `name`, owning `project_id`, and timestamps. Call GET /api/ext/analysis/{analysis_group_id} to see the full `data_collections`. This endpoint returns all groups in the project without pagination. Fields: `name`, `id`, `project_id`, `created_at`, `updated_at`.

## Authorization

- `X-API-Key` (string, header, required): your workspace API key.

## Response

### 200 Successful Response

Content type: `application/json`

```json
{
  "analysis_groups": [
    {
      "name": "string",
      "id": "00000000-0000-4000-8000-000000000000",
      "project_id": "00000000-0000-4000-8000-000000000000",
      "created_at": "2026-01-15T12:00:00.000Z",
      "updated_at": "2026-01-15T12:00:00.000Z"
    }
  ]
}
```

## Request examples

### cURL

```bash
curl --request GET \
  --url 'https://api.nabrah.ai/api/ext/analysis' \
  --header 'X-API-Key: <your-api-key>'
```

### Python

```python
import requests

url = "https://api.nabrah.ai/api/ext/analysis"
headers = {"X-API-Key": "<your-api-key>"}

response = requests.get(url, headers=headers)
response.raise_for_status()
print(response.json())
```

### JavaScript

```javascript
const response = await fetch("https://api.nabrah.ai/api/ext/analysis", {
  method: "GET",
  headers: { "X-API-Key": "<your-api-key>" },
});

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

### Go

```go
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	req, _ := http.NewRequest("GET", "https://api.nabrah.ai/api/ext/analysis", nil)
	req.Header.Set("X-API-Key", "<your-api-key>")

	res, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer res.Body.Close()

	out, _ := io.ReadAll(res.Body)
	fmt.Println(string(out))
}
```
