# contentView

Query

Return a single saved content (media deck) view by ID for the current workspace, or null if no such view exists here. Pair with `items(presetId:)` to fetch the items belonging to a view.

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

## Arguments

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

## Returns

Returns [`ContentView`](/api/v2/docs/types/content-view).

## Examples

### Get a content view by ID

Fetch a single saved media-deck view by its ID.

```graphql
query ContentViewDefault($id: ID!) {
  contentView(id: $id) {
    id
    name
    filters
    sort
    showReportingStats
    createdAt
    updatedAt
  }
}
```

Variables:

```json
{
  "id": "eaa824b8-374f-5db8-bee2-51dfd8c3776c"
}
```

Response — HTTP 200:

```json
{
  "data": {
    "contentView": {
      "id": "eaa824b8-374f-5db8-bee2-51dfd8c3776c",
      "name": "All Northwind Content",
      "filters": {},
      "sort": [],
      "showReportingStats": true,
      "createdAt": "2024-12-31T18:00:00Z",
      "updatedAt": "2024-12-31T18:00:00Z"
    }
  }
}
```
