View API endpoint