Implement get profile api