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

# Saved Views

> Team and personal saved views for the contract workspace.

All endpoints require `contract_view` (view).

## List views

`GET /saved-views/contracts`

## Create a view

`POST /saved-views/contracts`

<ParamField body="name" type="string" required />

<ParamField body="mode" type="string" required>`table` | `board` | `calendar` | `tasks`</ParamField>
<ParamField body="scope" type="string" default="personal">`personal` | `team`</ParamField>

<ParamField body="groupBy" type="string" required />

<ParamField body="filters" type="object" required>Arbitrary filter state, same shape as [List contracts](/api-reference/contracts#list-contracts) query params.</ParamField>

<ParamField body="sortKey" type="string" required />

<ParamField body="visibleFields" type="string[]" required />

<ParamField body="cardFields" type="string[]" required />

<ParamField body="description" type="string" />

`team` views are governed by tenant admins; `personal` views belong to the creating user. See
[Contract Workspace](/guides/contract-workspace#filtering-and-saved-views).

## Delete a view

`DELETE /saved-views/:id`
