API endpoints for profiles