Developer Documentation
API Reference
Integrate VegeWell's nutrition data and AI capabilities into your health applications.
Authentication
All API requests require authentication using a Bearer token. Include your API key in the Authorization header.
Authorization: Bearer YOUR_API_KEYGet your API Key
Access your API key from the Developer Dashboard in your account settings.
API Endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/v1/user/profile | Retrieve user profile and health data |
| POST | /api/v1/assessment | Submit health assessment responses |
| GET | /api/v1/meal-plan | Get personalized meal plan recommendations |
| GET | /api/v1/nutrition/{food_id} | Get nutritional data for specific foods |
| POST | /api/v1/track/meal | Log a meal to user's daily intake |
Code Examples
const response = await fetch('https://api.vegewell.site/v1/meal-plan', {
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
}
});
const mealPlan = await response.json();
console.log(mealPlan);Fitness Tracker Integrations
🏃
Fitbit
Available
🍎
Apple Health
Available
📱
Google Fit
Coming Soon
💪
MyFitnessPal
Available
Rate Limits
| Tier | Daily Requests | Burst Limit |
|---|---|---|
| Free | 100/day | 10/min |
| Pro | 10,000/day | 100/min |
| Enterprise | Unlimited | 1,000/min |
Webhook Events
Subscribe to real-time events to keep your application in sync with user activities.
user.assessment.completedFired when a user completes a health assessmentmeal.loggedFired when a user logs a mealgoal.achievedFired when a user achieves a nutrition goal