# viewGroup

Query

Return a single user-created view group by ID for the current workspace, or null if no such group exists here.

Available to agents as MCP tool `getViewGroup` — see [Read tools](/api/v2/docs/mcp/read-tools#get-view-group).

## Arguments

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `id` | `ID!` | Yes | — | UUID of the ViewGroup to fetch. |

## Returns

Returns [`ViewGroup`](/api/v2/docs/types/view-group).

## Examples

### Get a view group by ID

Fetch a single user-created view group by ID.

```graphql
query ViewGroupDefault($id: ID!) {
  viewGroup(id: $id) {
    id
    name
    createdAt
    updatedAt
  }
}
```

Variables:

```json
{
  "id": "8e0f0ff1-8024-5af5-9506-49091f53a920"
}
```

Response — HTTP 200:

```json
{
  "data": {
    "viewGroup": {
      "id": "8e0f0ff1-8024-5af5-9506-49091f53a920",
      "name": "Northwind Sidebar",
      "createdAt": "2024-12-31T17:00:00Z",
      "updatedAt": "2024-12-31T17:00:00Z"
    }
  }
}
```
