Cookbook
Save a recipe to cookbook
post/api/cookbook/recipes
Request
- Base URLhttps://api.rewritelifestyle.ai (the document declares no server; this is the origin it was published from)
- URLhttps://api.rewritelifestyle.ai/api/cookbook/recipes
- AuthHTTP bearer
Request body
Example request
{
"title": "Protein-Packed Chicken Bowl",
"description": "A healthy post-surgery meal",
"mealType": "dinner",
"calories": 350,
"protein": 35,
"carbs": 40,
"fat": 12,
"fiber": 5,
"journeyStage": "early-post-op",
"userTimezone": "Asia/Calcutta",
"localTimestamp": "2026-02-18T11:23:34.331Z",
"servings": 2,
"prepTime": "15 min",
"cookTime": "30 min",
"source": "ai-generated",
"isCommunity": true,
"nutrition": [
{
"name": "Sugar",
"value": 1,
"unit": "g"
},
{
"name": "Sodium",
"value": 150,
"unit": "mg"
}
]
}Response
unknown required
Example response
{
"success": true,
"recipe": {
"id": 1,
"user_id": 5,
"title": "High-Protein Chicken Bowl",
"meal_type": "lunch",
"calories": 420,
"protein": 48,
"carbs": 30,
"fat": 12,
"imageUrl": "https://cdn.example.com/signed-url",
"created_at": "2026-02-01T00:00:00.000Z"
}
}Changes
No recorded changes to this operation across all 34 revisions of this API.