Add filtering to subscriptions/get REST API endpoint