## List saved views for an owner **get** `/v2/prism/{teamId}/{objectType}/views` Returns saved view bundles for the path team. Pass `?list_id=` to scope to a list (CRM) instead. Cursor pagination matches other Prism list endpoints. ### Path Parameters - `teamId: optional string` - `objectType: "comment" or "action" or "deal" or 5 more` - `"comment"` - `"action"` - `"deal"` - `"engagement"` - `"document"` - `"event"` - `"identity"` - `"organization"` ### Query Parameters - `cursor: optional string` Opaque pagination cursor (from a prior response's next_cursor); supersedes page/limit when present. - `limit: optional number` Maximum items per page (<= 50; defaults to 50). - `list_id: optional string` List (CRM) id to scope the listing to. When omitted, views owned by the path team are returned. - `page: optional number` 1-based page number. Prefer cursor. ### Returns - `data: array of object { name, view_type, id, 18 more }` - `name: string` - `view_type: string` - `id: optional string` - `aggregation_prop_def_id: optional string` - `aggregation_type: optional string` - `column_layout: optional map[unknown]` - `combinator: optional "AND" or "OR"` - `"AND"` - `"OR"` - `created_at: optional string` - `filter: optional array of map[unknown]` Each entry is { slug: { comparator: value } } - `group_by: optional string` Property slug to group by - `group_hidden_option_ids: optional array of unknown or unknown` - `array of unknown` - `unknown` - `group_hide_empty: optional boolean` - `group_sort: optional string` - `icon: optional string` - `list_id: optional string` - `select: optional array of string` Property slugs (dot-paths permitted for refs) - `sort: optional array of map[unknown]` Each entry is { slug: 'asc' | 'desc' } - `sort_order: optional number` - `team_id: optional string` - `updated_at: optional string` - `user_id: optional string` - `has_more: boolean` True if more views exist beyond this page. - `next_cursor: optional string` Opaque cursor for the next page; null when has_more is false. ### Example ```http curl https://developers.micro.so/v2/prism/$TEAM_ID/$OBJECT_TYPE/views \ -H "x-api-key: $MICRO_API_KEY" ``` #### Response ```json { "data": [ { "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" } ], "has_more": true, "next_cursor": "next_cursor" } ```