## List records selected by a view (filters and sorts applied; pinned record_order overlaid first) `views.records.list(strview_id, RecordListParams**kwargs) -> RecordListResponse` **get** `/v2/prism/{teamId}/{viewObjectType}/views/{viewId}/records` List records selected by a view (filters and sorts applied; pinned record_order overlaid first) ### 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]` Opaque cursor from a previous response's `next_cursor`. Pass it back unchanged to fetch the next page. When set, `page` and `limit` are derived from the cursor. - `limit: Optional[int]` - `page: Optional[int]` Page number (1-based). Prefer `cursor`. ### Returns - `class RecordListResponse: …` - `data: List[Dict[str, object]]` - `has_more: bool` True if more records exist beyond this page. - `next_cursor: Optional[str]` Opaque cursor for the next page; null when `has_more` is false. ### 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 ) records = client.views.records.list( view_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", view_object_type="action", ) print(records.data) ``` #### Response ```json { "data": [ { "foo": "bar" } ], "has_more": true, "next_cursor": "next_cursor" } ```