curl --request GET \
--url https://api.example.com/plan/current{
"id": 123,
"user_id": 123,
"active": true,
"created_at": {},
"updated_at": {},
"daily_menus": [
{
"id": 123,
"day_of_week": 123,
"meal_details": [
{
"id": 123,
"recipe_id": 123,
"schedule": 123,
"status": 123,
"meal_type": "<string>",
"recipe": {
"id": 123,
"name": "<string>",
"calories": 123,
"protein": 123,
"carbs": 123,
"fat": 123,
"image_url": "<string>",
"recipe_url": "<string>",
"recipe_id": 123,
"ingredients": "<string>",
"meal_types": [
{
"id": 123,
"name": "<string>"
}
],
"diet_types": [
{
"id": 123,
"name": "<string>"
}
]
}
}
]
}
]
}Retrieve the current active meal plan for the authenticated user
curl --request GET \
--url https://api.example.com/plan/current{
"id": 123,
"user_id": 123,
"active": true,
"created_at": {},
"updated_at": {},
"daily_menus": [
{
"id": 123,
"day_of_week": 123,
"meal_details": [
{
"id": 123,
"recipe_id": 123,
"schedule": 123,
"status": 123,
"meal_type": "<string>",
"recipe": {
"id": 123,
"name": "<string>",
"calories": 123,
"protein": 123,
"carbs": 123,
"fat": 123,
"image_url": "<string>",
"recipe_url": "<string>",
"recipe_id": 123,
"ingredients": "<string>",
"meal_types": [
{
"id": 123,
"name": "<string>"
}
],
"diet_types": [
{
"id": 123,
"name": "<string>"
}
]
}
}
]
}
]
}Authorization: Bearer <token>
breakfast, lunch, dinner, snack{
"id": 1,
"user_id": 42,
"active": true,
"created_at": "2026-03-01T10:00:00Z",
"updated_at": "2026-03-01T10:00:00Z",
"daily_menus": [
{
"id": 1,
"day_of_week": 1,
"meal_details": [
{
"id": 1,
"recipe_id": 12345,
"schedule": 1,
"status": 0,
"meal_type": "breakfast",
"recipe": {
"id": 1,
"name": "Spaghetti Carbonara",
"calories": 400,
"protein": 20,
"carbs": 50,
"fat": 15,
"image_url": "https://example.com/image.jpg",
"recipe_url": "https://example.com/recipe",
"recipe_id": 12345,
"ingredients": "Spaghetti, eggs, pancetta, parmesan cheese, black pepper",
"meal_types": [
{
"id": 1,
"name": "lunch"
}
],
"diet_types": [
{
"id": 1,
"name": "high_protein"
}
]
}
}
]
}
]
}
{
"detail": "Not authenticated"
}
{
"detail": "Plan not found"
}
{
"detail": "Internal server error"
}