API endpoints for fetching user preferences and history

API endpoints for fetching user preferences and history