## Read a view bundle `views.get(strview_id, ViewGetParams**kwargs) -> ViewGetResponse` **get** `/v2/prism/{teamId}/{viewObjectType}/views/{viewId}` Returns the view bundle. Pass `?include=records` to also fetch a page of records selected by the view in the same call; the response is then wrapped as `{view, records}`. ### Parameters - `team_id: Optional[str]` - `view_object_type: Literal["action", "deal", "document", 3 more]` - `"action"` - `"deal"` - `"document"` - `"event"` - `"identity"` - `"organization"` - `view_id: str` - `cursor: Optional[str]` Forwarded to the records sub-resource when `include=records`. - `include: Optional[str]` Comma-separated list of optional sub-resources to inline. Currently the only recognized value is `records` — when present, the response is `{view, records}` rather than the bare view bundle. - `limit: Optional[int]` Forwarded to the records sub-resource when `include=records`. - `page: Optional[int]` Forwarded to the records sub-resource when `include=records`. ### Returns - `ViewGetResponse` A view (saved configuration for displaying records of a given object type) plus its select/filter/sort children. Properties in select/filter/sort are referenced by slug. - `class ViewBundle: …` A view (saved configuration for displaying records of a given object type) plus its select/filter/sort children. Properties in select/filter/sort are referenced by slug. - `name: str` - `view_type: str` - `id: Optional[str]` - `aggregation_prop_def_id: Optional[str]` - `aggregation_type: Optional[str]` - `column_layout: Optional[Dict[str, object]]` - `combinator: Optional[Literal["AND", "OR"]]` - `"AND"` - `"OR"` - `created_at: Optional[str]` - `filter: Optional[List[Dict[str, object]]]` Each entry is { slug: { comparator: value } } - `group_by: Optional[str]` Property slug to group by - `group_hidden_option_ids: Optional[Union[List[object], object, null]]` - `List[object]` - `object` - `group_hide_empty: Optional[bool]` - `group_sort: Optional[str]` - `icon: Optional[str]` - `list_id: Optional[str]` - `select: Optional[List[str]]` Property slugs (dot-paths permitted for refs) - `sort: Optional[List[Dict[str, object]]]` Each entry is { slug: 'asc' | 'desc' } - `sort_order: Optional[int]` - `team_id: Optional[str]` - `updated_at: Optional[str]` - `user_id: Optional[str]` - `class ViewBundleWithRecords: …` Returned by `GET /views/{viewId}?include=records`. Same `records` shape as the standalone list-view-records endpoint. - `records: ViewBundleWithRecordsRecords` - `data: List[Dict[str, object]]` - `has_more: bool` - `next_cursor: Optional[str]` - `view: ViewBundleWithRecordsView` A view (saved configuration for displaying records of a given object type) plus its select/filter/sort children. Properties in select/filter/sort are referenced by slug. - `name: str` - `view_type: str` - `id: Optional[str]` - `aggregation_prop_def_id: Optional[str]` - `aggregation_type: Optional[str]` - `column_layout: Optional[Dict[str, object]]` - `combinator: Optional[Literal["AND", "OR"]]` - `"AND"` - `"OR"` - `created_at: Optional[str]` - `filter: Optional[List[Dict[str, object]]]` Each entry is { slug: { comparator: value } } - `group_by: Optional[str]` Property slug to group by - `group_hidden_option_ids: Optional[Union[List[object], object, null]]` - `List[object]` - `object` - `group_hide_empty: Optional[bool]` - `group_sort: Optional[str]` - `icon: Optional[str]` - `list_id: Optional[str]` - `select: Optional[List[str]]` Property slugs (dot-paths permitted for refs) - `sort: Optional[List[Dict[str, object]]]` Each entry is { slug: 'asc' | 'desc' } - `sort_order: Optional[int]` - `team_id: Optional[str]` - `updated_at: Optional[str]` - `user_id: Optional[str]` ### Example ```python import os from micro_so import Micro client = Micro( api_key=os.environ.get("MICRO_API_KEY"), # This is the default and can be omitted ) view = client.views.get( view_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", view_object_type="action", ) print(view) ``` #### Response ```json { "name": "name", "view_type": "view_type", "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", "aggregation_prop_def_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", "aggregation_type": "aggregation_type", "column_layout": { "foo": "bar" }, "combinator": "AND", "created_at": "created_at", "filter": [ { "foo": "bar" } ], "group_by": "group_by", "group_hidden_option_ids": [ {} ], "group_hide_empty": true, "group_sort": "group_sort", "icon": "icon", "list_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", "select": [ "string" ], "sort": [ { "foo": "bar" } ], "sort_order": 0, "team_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", "updated_at": "updated_at", "user_id": "user_id" } ```