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

# Affinity: V2 Lists List ID Saved Views View ID Get

> Get an Affinity saved view by ID: its name, type and creation date. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

Get an Affinity saved view by ID: its name, type and creation date.

> [!NOTE]
>
> Tool ID: `affinity_v2_lists_list_id_saved_views_view_id_get`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'affinity_v2_lists_list_id_saved_views_view_id_get',
  {
    "listId": 123,
    "viewId": 123
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute affinity_v2_lists_list_id_saved_views_view_id_get --input '{
  "listId": 123,
  "viewId": 123
}' --json
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "id": 123,
    "name": "Example",
    "type": "sheet",
    "createdAt": "2026-01-15T12:00:00Z"
  }
}
```

Use `deepline describe affinity_v2_lists_list_id_saved_views_view_id_get --json` for the latest machine-readable contract.

## Input reference

Retrieve detailed information about a specific Saved View you have access to view. Returns Saved View configuration including name, type, and creation date.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.listId` | `integer` | Yes | — | List ID Format: `int64`. Minimum: 1. Maximum: 9007199254740991. |
| `payload.viewId` | `integer` | Yes | — | Saved view ID Format: `int64`. Minimum: 1. Maximum: 9007199254740991. |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Retrieve detailed information about a specific Saved View you have access to view. Returns Saved View configuration including name, type, and creation date.",
    "properties": {
      "listId": {
        "type": "integer",
        "description": "List ID",
        "minimum": 1,
        "maximum": 9007199254740991,
        "format": "int64"
      },
      "viewId": {
        "type": "integer",
        "description": "Saved view ID",
        "minimum": 1,
        "maximum": 9007199254740991,
        "format": "int64"
      }
    },
    "required": [
      "listId",
      "viewId"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | — |
| `result.data.id` | `integer` | Yes | — | Format: `int64`. Minimum: 1. Maximum: 9007199254740991. |
| `result.data.name` | `string` | Yes | — | — |
| `result.data.type` | `"sheet" \| "board" \| "dashboard"` | Yes | — | Allowed: `sheet`, `board`, `dashboard`. |
| `result.data.createdAt` | `string` | Yes | — | Format: `date-time`. |
| `result.meta` | `object` | No | — | — |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "properties": {
      "data": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "minimum": 1,
            "maximum": 9007199254740991,
            "format": "int64"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "sheet",
              "board",
              "dashboard"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "createdAt",
          "id",
          "name",
          "type"
        ],
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [Affinity provider guide](https://deepline.com/docs/providers/affinity/guide.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.