def get_list_headless(self, **kwargs: Any) -> Response:
        """
        Get list of items from Model
        """
        response = dict()
        args = kwargs.get("rison", {})
        # handle select columns
        output_select_cols = args.get(API_SELECT_COLUMNS_RIS_KEY, [])
        select_cols = args.get(API_SELECT_SEL_COLUMNS_RIS_KEY, [])
        if select_cols and output_select_cols:
            return self.response_400(message="Cannot use both select and sel columns")
        list_select_columns = self.list_select_columns
        pruned_select_cols = []
        if output_select_cols:
            pruned_select_cols = [
                col for col in output_select_cols if col in self.list_columns
            ]
        if select_cols:
            pruned_select_cols = [
                col for col in select_cols if col in self.list_columns
            ]
            list_select_columns = [
                col for col in select_cols if col in self.list_select_columns
            ]
        # map decorated metadata
        self.set_response_key_mappings(
            response,
            self.get_list,
            args,
            **{API_SELECT_COLUMNS_RIS_KEY: pruned_select_cols},
        )
        # Create a response schema with the computed response columns,
        # defined or requested
        if pruned_select_cols:
            list_model_schema = self.model2schemaconverter.convert(pruned_select_cols)
        else:
            list_model_schema = self.list_model_schema
        # handle filters
        try:
            joined_filters = self._handle_filters_args(args)
        except FABException as e:
            return self.response_400(message=str(e))
        # handle base order
        try:
            order_column, order_direction = self._handle_order_args(args)
        except InvalidOrderByColumnFABException as e:
            return self.response_400(message=str(e))
        # handle pagination
        page_index, page_size = self._handle_page_args(args)
        # Make the query
        count, lst = self.datamodel.query(
            joined_filters,
            order_column,
            order_direction,
            page=page_index,
            page_size=page_size,
            select_columns=list_select_columns,
            outer_default_load=self.list_outer_default_load,
        )
        pks = self.datamodel.get_keys(lst)
        response[API_RESULT_RES_KEY] = list_model_schema.dump(lst, many=True)
        response["ids"] = pks
        response["count"] = count
        self.pre_get_list(response)
        return self.response(200, **response)

        Get list of items from Model
        
flask_appbuilder/api/__init__.py