Reps Agents API
AI-powered agents for nutrition, workouts, and client management
Food & Nutrition Endpoints
GET/api/food-item-autocomplete?query=חלבReturns: Array of food items with full details
POST/api/food-item-replacementBody: {"foodName": "חלב עיזים"}
Returns: Food replacement suggestions with full details
Agent Endpoints
GET/api/agentsReturns: List of all available agent names
Example: {"success": true, "agents": ["nutritionAssistantAgent", "workoutProgramAgent", ...], "count": 9}
Chat Endpoints
POST/api/chats/nutrition-assistantHeaders: user-id: <userId>
Body: {"messages": [...], "chatId": "..."}
Returns: Streaming response from nutrition assistant agent
POST/api/chats/workout-programHeaders: user-id: <userId>
Body: {"messages": [...], "chatId": "..."}
Returns: Streaming response from workout program agent
POST/api/chats/user-onboardingHeaders: user-id: <userId>
Body: {"messages": [...], "chatId": "..."}
Returns: Streaming response from user onboarding agent
POST/api/chats/marketingHeaders: user-id: <userId>
Body: {"messages": [...], "chatId": "..."}
Returns: Streaming response from marketing agent
POST/api/chats/plannerHeaders: user-id: <userId> (optional)
Body: {"messages": [...]}
Returns: JSON response from planner agent (REST API, non-streaming)