API endpoints for the profiles application