{"openapi":"3.1.0","info":{"title":"anatome","version":"2.7.1","description":"Unified human-body API platform (exercise, anatomy, food, recipes, workouts, cardio, nutrition, supplements, goals, metrics, AI, progression analytics, share tokens, media). MCP-native. Multi-tenant. PROPRIETARY — this platform is not open source and is not self-hostable. The separate open-source wiki (exercise/anatomy reference only, no accounts, no database) lives at https://wiki.anatome.dev — it is not this API. The client app at https://anatome.dev is an ordinary tenant of this platform and is also proprietary. NOTE (v2.0): stateless reads (calculators, exercise/anatomy, food, public recipes) work WITHOUT a key via the per-IP fair-use tier (10/min, 50/day per IP) — security: [] on those paths means a key is optional. Per-user data, AI, and MCP require a key. Share-token reads (/v1/{resource}/by-token) are no-key. AI calls are quota-weighted by model cost (premium models consume more of your monthly AI quota); model overrides are available to direct paid keys only (not RapidAPI). NOTE (v2.2): Media (progress pictures + workout videos) is a separately-billed, per-project opt-in add-on stored on ns-fc-uploads and shared via stable long-UUID secure links. Media is NOT available through RapidAPI (it can't be metered via RapidAPI's plan system) — use a direct API key with the media:read/media:write scope.","contact":{"email":"support@anatome.dev"},"license":{"name":"Proprietary — (c) 2026 NextSolutions","url":"https://platform.anatome.dev/terms"}},"servers":[{"url":"https://platform.anatome.dev"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Bearer anp_..."}},"parameters":{"AppUserId":{"name":"X-App-User-Id","in":"header","required":false,"schema":{"type":"string"},"description":"The app's external user id (required for per-user routes)"},"AppActingAs":{"name":"X-App-Acting-As","in":"header","required":false,"schema":{"type":"string"},"description":"Coach external id or 'system' for cross-user workout writes (target_external_user_id)"},"CoachUserId":{"name":"X-Coach-User-Id","in":"header","required":false,"schema":{"type":"string"},"description":"Acting coach external id for /v1/coach/* read-delegation (trainee is X-App-User-Id)"},"IdempotencyKey":{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string"},"description":"POST replay protection — same key+body returns the cached response for 24h"},"XRequestId":{"name":"X-Request-Id","in":"header","required":false,"schema":{"type":"string"},"description":"Echoed back in the response for support lookup"}},"schemas":{"Envelope":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","const":true},"data":{},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}},"ErrorCode":{"type":"string","description":"Stable error.code values returned by envelope.err() / authorize()","enum":["acting_as_not_found","ai_error","ai_quota_exceeded","app_user_not_found","bad_request","bound_user_mismatch","coach_not_found","forbidden","insufficient_scope","internal","invalid_api_key","media_addon_disabled","media_not_available_on_rapidapi","media_quota_exceeded","media_storage_exceeded","missing_acting_as","missing_api_key","missing_app_user","missing_write_scope_for_cross_user_write","no_app","no_coach_relation","not_found","parse","photo_quota_exceeded","quota_exceeded","rate_limited","render_failed","too_large","trainee_not_found","unauthorized","uploads_not_configured","uploads_upstream_error","upstream_error","validation"]},"ErrorResponse":{"type":"object","required":["ok","error"],"properties":{"ok":{"type":"boolean","const":false},"error":{"type":"object","required":["code","message"],"properties":{"code":{"$ref":"#/components/schemas/ErrorCode"},"message":{"type":"string"}}},"meta":{"type":"object","additionalProperties":true}}},"Attribution":{"type":"object","properties":{"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","properties":{"food":{"type":"array","items":{"type":"string"}},"exercise":{"type":"string"},"anatomy":{"type":"string"},"recipes":{"type":"string"}},"additionalProperties":true}}},"GenericData":{"description":"Success payload when a domain-specific schema is not yet specialized","type":"object","additionalProperties":true},"ErrorEnvelope":{"$ref":"#/components/schemas/ErrorResponse"},"DeletedId":{"type":"object","required":["deleted"],"properties":{"deleted":{"type":"string","format":"uuid"}}},"ExerciseSetInput":{"type":"object","required":["exercise_name","set_number"],"properties":{"exercise_name":{"type":"string"},"anatome_exercise_id":{"type":"string","nullable":true},"activity_type":{"type":"string","description":"strength|cardio|… (default strength)"},"set_number":{"type":"integer","minimum":1},"reps":{"type":"number","nullable":true},"weight":{"type":"number","nullable":true,"description":"kg"},"duration_seconds":{"type":"number","nullable":true},"distance_m":{"type":"number","nullable":true},"avg_hr":{"type":"number","nullable":true},"avg_power_w":{"type":"number","nullable":true},"avg_pace_seconds_per_km":{"type":"number","nullable":true},"elevation_gain_m":{"type":"number","nullable":true},"rpe":{"type":"number","nullable":true},"rest_seconds":{"type":"number","nullable":true},"notes":{"type":"string"},"metadata":{"type":"object","additionalProperties":true}}},"WorkoutCreate":{"type":"object","required":["date"],"properties":{"date":{"type":"string","format":"date","description":"YYYY-MM-DD"},"title":{"type":"string"},"primary_sport":{"type":"string","description":"default strength"},"status":{"type":"string","description":"completed|planned|… (default completed)"},"notes":{"type":"string"},"target_external_user_id":{"type":"string","description":"Coach plan assignment — requires X-App-Acting-As (coach id or system)"},"sets":{"type":"array","items":{"$ref":"#/components/schemas/ExerciseSetInput"}}}},"ChangeEvent":{"type":"object","properties":{"seq":{"type":"string","description":"Monotonic cursor. Pass the last one back as `since`."},"entity":{"type":"string","enum":["workout","meal","cardio","body_metric","goal","note","water","weekly_checkin","media"]},"id":{"type":"string","format":"uuid"},"action":{"type":"string","enum":["created","updated","deleted"]},"at":{"type":"string","format":"date-time"}}},"WorkoutPatch":{"type":"object","description":"At least one field is required. `sets`, when present, REPLACES the workout's entire set list — it is not merged, because there is no stable set identity across a session in which the user adds, drops and reorders sets.","properties":{"status":{"type":"string","enum":["planned","in_progress","completed","skipped"],"description":"Setting `completed` marks every set completed too, unless the same request supplies `sets` with explicit per-set `completed` flags, which win."},"title":{"type":"string"},"notes":{"type":"string"},"date":{"type":"string","format":"date","description":"YYYY-MM-DD"},"sets":{"type":"array","items":{"$ref":"#/components/schemas/ExerciseSetInput"},"description":"Replaces the whole set list. Recomputes total_volume."}}},"WorkoutSummary":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"date":{"type":"string","format":"date","description":"YYYY-MM-DD"},"title":{"type":"string"},"primary_sport":{"type":"string"},"status":{"type":"string"},"completed_at":{"type":"string","format":"date-time","nullable":true},"duration":{"type":"number","nullable":true},"total_volume":{"type":"number","nullable":true},"total_volume_with_bodyweight":{"type":"number","nullable":true},"bodyweight_kg":{"type":"number","nullable":true},"created_at":{"type":"string","format":"date-time"}}},"WorkoutCreated":{"allOf":[{"$ref":"#/components/schemas/WorkoutSummary"},{"type":"object","properties":{"app_id":{"type":"string","format":"uuid"},"app_user_id":{"type":"string","format":"uuid"},"target_app_user_id":{"type":"string","format":"uuid","nullable":true},"assigned_by":{"type":"string","nullable":true},"sets_count":{"type":"integer"}}}]},"ExerciseSet":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"workout_id":{"type":"string","format":"uuid"},"exercise_name":{"type":"string"},"anatome_exercise_id":{"type":"string","nullable":true},"activity_type":{"type":"string"},"set_number":{"type":"integer"},"reps":{"type":"number","nullable":true},"weight":{"type":"number","nullable":true},"duration_seconds":{"type":"number","nullable":true},"distance_m":{"type":"number","nullable":true},"rpe":{"type":"number","nullable":true},"rest_seconds":{"type":"number","nullable":true},"notes":{"type":"string"},"completed":{"type":"boolean"},"completed_at":{"type":"string","format":"date-time","nullable":true},"metadata":{"type":"object","additionalProperties":true}}},"WorkoutDetail":{"allOf":[{"$ref":"#/components/schemas/WorkoutSummary"},{"type":"object","properties":{"notes":{"type":"string"},"sets":{"type":"array","items":{"$ref":"#/components/schemas/ExerciseSet"}}}}]},"MealCreate":{"type":"object","required":["date","name"],"properties":{"date":{"type":"string","format":"date","description":"YYYY-MM-DD"},"name":{"type":"string"},"meal_type":{"type":"string","nullable":true,"description":"breakfast|lunch|dinner|snack|…"},"calories":{"type":"number","default":0},"protein":{"type":"number","default":0},"carbs":{"type":"number","default":0},"fats":{"type":"number","default":0},"fiber":{"type":"number","nullable":true,"description":"g. null = not recorded (NOT the same as 0)."},"sugar":{"type":"number","nullable":true,"description":"g. null = not recorded."},"saturated_fat":{"type":"number","nullable":true,"description":"g. null = not recorded."},"sodium":{"type":"number","nullable":true,"description":"mg. NOTE: not salt — sodium = salt ÷ 2.5. `salt` is deliberately NOT aliased."},"alcohol":{"type":"number","nullable":true,"description":"g of ethanol. null = not recorded."},"portion_amount":{"type":"number","nullable":true},"portion_unit":{"type":"string","nullable":true},"portion_label":{"type":"string","nullable":true},"serving_base":{"type":"number","nullable":true},"ingredients":{"type":"array","items":{"type":"object","additionalProperties":true}},"external_source":{"type":"string","nullable":true},"external_id":{"type":"string","nullable":true},"ai_parsed":{"type":"boolean","default":false},"ai_confidence":{"type":"number","nullable":true}}},"MealUpdate":{"type":"object","properties":{"date":{"type":"string","format":"date","description":"YYYY-MM-DD"},"meal_type":{"type":"string","nullable":true},"status":{"type":"string"},"name":{"type":"string"},"calories":{"type":"number"},"protein":{"type":"number"},"carbs":{"type":"number"},"fats":{"type":"number"},"portion_amount":{"type":"number","nullable":true},"portion_unit":{"type":"string","nullable":true},"portion_label":{"type":"string","nullable":true},"serving_base":{"type":"number","nullable":true},"ingredients":{"type":"array","items":{"type":"object","additionalProperties":true}},"image_url":{"type":"string","nullable":true},"metadata":{"type":"object","additionalProperties":true}}},"MealSummary":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"date":{"type":"string","format":"date","description":"YYYY-MM-DD"},"meal_type":{"type":"string","nullable":true},"status":{"type":"string"},"name":{"type":"string"},"calories":{"type":"number"},"protein":{"type":"number"},"carbs":{"type":"number"},"fats":{"type":"number"},"portion_label":{"type":"string","nullable":true},"image_url":{"type":"string","nullable":true},"ai_parsed":{"type":"boolean"},"created_at":{"type":"string","format":"date-time"}}},"MealDetail":{"allOf":[{"$ref":"#/components/schemas/MealSummary"},{"type":"object","properties":{"portion_amount":{"type":"number","nullable":true},"portion_unit":{"type":"string","nullable":true},"serving_base":{"type":"number","nullable":true},"ingredients":{"type":"array","items":{"type":"object","additionalProperties":true}},"external_source":{"type":"string","nullable":true},"external_id":{"type":"string","nullable":true},"ai_confidence":{"type":"number","nullable":true},"metadata":{"type":"object","additionalProperties":true},"updated_at":{"type":"string","format":"date-time"}}}]},"BodyMetricCreate":{"type":"object","required":["metric_type","value","unit","date"],"properties":{"metric_type":{"type":"string","description":"weight|height|body_fat|muscle_mass|bicep|forearm|waist|chest|hip|thigh|calf|neck|shoulder|bmi|resting_hr|…"},"value":{"type":"number"},"unit":{"type":"string","description":"kg|cm|%|bpm|…"},"date":{"type":"string","format":"date","description":"YYYY-MM-DD"},"notes":{"type":"string","nullable":true},"photo_url":{"type":"string","nullable":true}}},"BodyMetric":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"metric_type":{"type":"string"},"value":{"type":"number"},"unit":{"type":"string"},"date":{"type":"string","format":"date","description":"YYYY-MM-DD"},"notes":{"type":"string","nullable":true},"photo_url":{"type":"string","nullable":true},"logged_by_app_user_id":{"type":"string","format":"uuid","nullable":true,"description":"Set when a coach logs the metric on behalf of the trainee"},"created_at":{"type":"string","format":"date-time"}}},"GoalCreate":{"type":"object","required":["goal_type"],"properties":{"goal_type":{"type":"string"},"sport":{"type":"string","nullable":true},"target":{"type":"object","additionalProperties":true,"description":"e.g. { value, deadline, unit }"},"progress":{"type":"object","additionalProperties":true},"status":{"type":"string","description":"default active"},"notes":{"type":"string","nullable":true}}},"GoalUpdate":{"type":"object","properties":{"progress":{"type":"object","additionalProperties":true},"status":{"type":"string"},"notes":{"type":"string","nullable":true}}},"Goal":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"goal_type":{"type":"string"},"sport":{"type":"string","nullable":true},"target":{"type":"object","additionalProperties":true},"progress":{"type":"object","additionalProperties":true},"status":{"type":"string"},"notes":{"type":"string","nullable":true},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"GoalProgress":{"type":"object","properties":{"goal_id":{"type":"string","format":"uuid"},"goal_type":{"type":"string"},"target":{"type":"object","additionalProperties":true},"progress":{"type":"object","properties":{"current":{"type":"number","nullable":true},"target_value":{"type":"number","nullable":true},"fraction":{"type":"number","nullable":true},"on_track":{"type":"boolean"},"last_computed_at":{"type":"string","format":"date-time"}},"additionalProperties":true},"status":{"type":"string"}}},"GoalTrajectory":{"type":"object","properties":{"goal_id":{"type":"string","format":"uuid"},"target_value":{"type":"number","nullable":true},"deadline":{"type":"string","nullable":true},"current":{"type":"number","nullable":true},"fraction":{"type":"number","nullable":true},"projected_achieve_date":{"type":"string","nullable":true},"required_rate":{"type":"number","nullable":true},"days_remaining":{"type":"integer","nullable":true},"recommendation":{"type":"string","description":"insufficient_data|achieved|ahead_of_pace|at_risk|on_pace"}}},"GoalRecompute":{"type":"object","properties":{"goal_id":{"type":"string","format":"uuid"},"recomputed":{"type":"boolean"},"progress":{"type":"object","additionalProperties":true},"status":{"type":"string"}}},"RecipeCreate":{"type":"object","required":["name"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"instructions":{"type":"string"},"image_url":{"type":"string","nullable":true},"servings":{"type":"number","default":1},"ingredients":{"type":"array","items":{"type":"object","additionalProperties":true}},"total_calories":{"type":"number","default":0},"total_protein":{"type":"number","default":0},"total_carbs":{"type":"number","default":0},"total_fats":{"type":"number","default":0},"is_public":{"type":"boolean","default":false},"category":{"type":"string","nullable":true},"prep_time":{"type":"integer","nullable":true,"description":"minutes"},"locale":{"type":"string","enum":["en","pl"],"default":"en"},"origin":{"type":"string","enum":["human","ai"],"default":"human","description":"AI recipes must set origin=ai"},"metadata":{"type":"object","additionalProperties":true,"description":"AI: set metadata.ai_model"}}},"RecipePublic":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":"string"},"instructions":{"type":"string"},"image_url":{"type":"string","nullable":true},"servings":{"type":"number"},"ingredients":{"type":"array","items":{"type":"object","additionalProperties":true}},"total_calories":{"type":"number"},"total_protein":{"type":"number"},"total_carbs":{"type":"number"},"total_fats":{"type":"number"},"is_public":{"type":"boolean"},"category":{"type":"string","nullable":true},"prep_time":{"type":"integer","nullable":true},"locale":{"type":"string"},"origin":{"type":"string","enum":["human","ai"]},"is_ai":{"type":"boolean"},"use_count":{"type":"integer"},"metadata":{"type":"object","additionalProperties":true,"description":"Catalog rows carry image provenance: image_source (photo|ai), image_thumb_url, and for photos image_author, image_license, image_license_url, image_source_url (Wikimedia Commons); for AI images ai_image_model; AI recipes add warning."},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"RecipeOwner":{"allOf":[{"$ref":"#/components/schemas/RecipePublic"},{"type":"object","properties":{"share_token":{"type":"string","format":"uuid","nullable":true}}}]},"NoteCreate":{"type":"object","description":"At least one of title or body is required. kind=coach_note is rejected on POST /v1/notes — use POST /v1/coach/notes.","properties":{"title":{"type":"string"},"body":{"type":"string"},"kind":{"type":"string","enum":["note","journal"],"default":"note"},"visibility":{"type":"string","enum":["private","coach","shared"],"default":"private"},"related_workout_id":{"type":"string","format":"uuid","nullable":true},"related_meal_id":{"type":"string","format":"uuid","nullable":true}}},"CoachNoteCreate":{"type":"object","description":"Coach-authored note on the trainee journal. kind is always coach_note; visibility defaults to coach.","properties":{"title":{"type":"string"},"body":{"type":"string"},"visibility":{"type":"string","enum":["private","coach","shared"],"default":"coach"},"related_workout_id":{"type":"string","format":"uuid","nullable":true},"related_meal_id":{"type":"string","format":"uuid","nullable":true}}},"NoteUpdate":{"type":"object","properties":{"title":{"type":"string"},"body":{"type":"string"},"kind":{"type":"string","enum":["note","journal"]},"visibility":{"type":"string","enum":["private","coach","shared"]},"related_workout_id":{"type":"string","format":"uuid","nullable":true},"related_meal_id":{"type":"string","format":"uuid","nullable":true}}},"Note":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"},"body":{"type":"string"},"kind":{"type":"string","enum":["note","coach_note","journal"]},"visibility":{"type":"string","enum":["private","coach","shared"]},"related_workout_id":{"type":"string","format":"uuid","nullable":true},"related_meal_id":{"type":"string","format":"uuid","nullable":true},"authored_by":{"type":"string","format":"uuid","nullable":true,"description":"Coach app_user id when kind=coach_note"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"WeeklyCheckinCreate":{"type":"object","required":["week_start","week_end"],"properties":{"week_start":{"type":"string","format":"date","description":"YYYY-MM-DD"},"week_end":{"type":"string","format":"date","description":"YYYY-MM-DD"},"payload":{"type":"object","description":"metrics_delta, body_weight, measurements, adherence_score, training_summary, nutrition_summary, wins[], blockers[], motivation, satiety","additionalProperties":true},"ai_insights":{"type":"object","nullable":true,"additionalProperties":true},"status":{"type":"string","enum":["draft","submitted"],"default":"draft"},"coach_app_user_id":{"type":"string","format":"uuid","nullable":true}}},"WeeklyCheckinUpdate":{"type":"object","description":"Owner PATCH while status=draft only. coach_review / status are rejected.","properties":{"week_start":{"type":"string","format":"date","description":"YYYY-MM-DD"},"week_end":{"type":"string","format":"date","description":"YYYY-MM-DD"},"payload":{"type":"object","additionalProperties":true},"ai_insights":{"type":"object","nullable":true,"additionalProperties":true}}},"WeeklyCheckinReview":{"type":"object","properties":{"analysis":{"type":"string"},"decisions":{"type":"array","items":{"type":"object","additionalProperties":true}},"feedback_text":{"type":"string"},"status":{"type":"string","enum":["reviewed","adjusted"],"default":"reviewed"}}},"WeeklyCheckinResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"app_user_id":{"type":"string","format":"uuid"},"coach_app_user_id":{"type":"string","format":"uuid","nullable":true},"week_start":{"type":"string","format":"date","description":"YYYY-MM-DD"},"week_end":{"type":"string","format":"date","description":"YYYY-MM-DD"},"payload":{"type":"object","additionalProperties":true},"ai_insights":{"type":"object","nullable":true,"additionalProperties":true},"status":{"type":"string","enum":["draft","submitted","reviewed","adjusted"]},"coach_review":{"type":"object","nullable":true,"properties":{"analysis":{"type":"string"},"decisions":{"type":"array","items":{"type":"object","additionalProperties":true}},"feedback_text":{"type":"string"},"reviewed_at":{"type":"string","format":"date-time"},"reviewed_by":{"type":"string"}}},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"MealPlanItem":{"type":"object","required":["day_offset","meal_type"],"properties":{"id":{"type":"string","format":"uuid"},"plan_id":{"type":"string","format":"uuid"},"day_offset":{"type":"integer","minimum":0,"maximum":6,"description":"0=Mon … 6=Sun relative to target_week_start"},"meal_type":{"type":"string","enum":["breakfast","lunch","dinner","snack"]},"recipe_id":{"type":"string","format":"uuid","nullable":true},"meal_template":{"type":"object","additionalProperties":true,"description":"{name, foods, target_calories, macros}"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"MealPlanCreate":{"type":"object","required":["target_week_start"],"properties":{"title":{"type":"string"},"target_week_start":{"type":"string","format":"date","description":"YYYY-MM-DD"},"macros_target":{"type":"object","properties":{"calories":{"type":"number"},"protein_g":{"type":"number"},"carb_g":{"type":"number"},"fat_g":{"type":"number"}},"additionalProperties":true},"notes":{"type":"string"},"items":{"type":"array","items":{"$ref":"#/components/schemas/MealPlanItem"},"description":"Optional items inserted atomically with the plan"}}},"MealPlanUpdate":{"type":"object","description":"Draft-only updates. When items is present, replace-semantics (delete all + re-insert).","properties":{"title":{"type":"string"},"macros_target":{"type":"object","properties":{"calories":{"type":"number"},"protein_g":{"type":"number"},"carb_g":{"type":"number"},"fat_g":{"type":"number"}},"additionalProperties":true},"notes":{"type":"string"},"items":{"type":"array","items":{"$ref":"#/components/schemas/MealPlanItem"}}}},"MealPlanActivate":{"type":"object","description":"Empty body. Activates this plan and archives any prior active plan for the same (user, week).","properties":{},"additionalProperties":false},"MealPlanClone":{"type":"object","properties":{"target_week_start":{"type":"string","format":"date","description":"Defaults to source plan's target_week_start"},"title":{"type":"string"},"notes":{"type":"string"}}},"MealPlanResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"app_id":{"type":"string","format":"uuid"},"app_user_id":{"type":"string","format":"uuid"},"coach_app_user_id":{"type":"string","format":"uuid","nullable":true},"title":{"type":"string"},"status":{"type":"string","enum":["draft","active","archived","revised"]},"version":{"type":"integer","minimum":1},"target_week_start":{"type":"string","format":"date","description":"YYYY-MM-DD"},"macros_target":{"type":"object","additionalProperties":true},"notes":{"type":"string"},"items":{"type":"array","items":{"$ref":"#/components/schemas/MealPlanItem"}},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"MealPlanCloneResponse":{"allOf":[{"$ref":"#/components/schemas/MealPlanResponse"}],"description":"Cloned draft plan. meta.cloned_from carries the source plan id."},"RelationCreate":{"type":"object","required":["trainee_external_user_id"],"properties":{"trainee_external_user_id":{"type":"string","description":"Alias: trainee_app_user_id (external id string)"},"trainee_app_user_id":{"type":"string","description":"Alias for trainee_external_user_id"},"coach_external_user_id":{"type":"string","description":"Defaults to X-App-User-Id; app_admin may set another coach"},"role":{"type":"string","enum":["coach","dietitian"],"default":"coach"},"can_view_workouts":{"type":"boolean","default":false},"can_edit_workouts":{"type":"boolean","default":false},"can_view_nutrition":{"type":"boolean","default":false},"can_edit_nutrition":{"type":"boolean","default":false},"can_view_cardio":{"type":"boolean","default":false},"can_view_metrics":{"type":"boolean","default":false},"can_edit_metrics":{"type":"boolean","default":false},"can_view_goals":{"type":"boolean","default":false},"can_edit_goals":{"type":"boolean","default":false},"can_view_notes":{"type":"boolean","default":false},"can_edit_notes":{"type":"boolean","default":false}}},"RelationUpdate":{"type":"object","properties":{"role":{"type":"string","enum":["coach","dietitian"]},"status":{"type":"string","enum":["active","revoked"]},"can_view_workouts":{"type":"boolean"},"can_edit_workouts":{"type":"boolean"},"can_view_nutrition":{"type":"boolean"},"can_edit_nutrition":{"type":"boolean"},"can_view_cardio":{"type":"boolean"},"can_view_metrics":{"type":"boolean"},"can_edit_metrics":{"type":"boolean"},"can_view_goals":{"type":"boolean"},"can_edit_goals":{"type":"boolean"},"can_view_notes":{"type":"boolean"},"can_edit_notes":{"type":"boolean"}}},"Relation":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"app_id":{"type":"string","format":"uuid"},"coach_app_user_id":{"type":"string","format":"uuid"},"trainee_app_user_id":{"type":"string","format":"uuid"},"role":{"type":"string","enum":["coach","dietitian"]},"status":{"type":"string"},"can_view_workouts":{"type":"boolean"},"can_edit_workouts":{"type":"boolean"},"can_view_nutrition":{"type":"boolean"},"can_edit_nutrition":{"type":"boolean"},"can_view_cardio":{"type":"boolean"},"can_view_metrics":{"type":"boolean"},"can_edit_metrics":{"type":"boolean"},"can_view_goals":{"type":"boolean"},"can_edit_goals":{"type":"boolean"},"can_view_notes":{"type":"boolean"},"can_edit_notes":{"type":"boolean"},"created_at":{"type":"string","format":"date-time"},"deleted_at":{"type":"string","format":"date-time","nullable":true},"coach_external_user_id":{"type":"string"},"coach_display_name":{"type":"string","nullable":true},"trainee_external_user_id":{"type":"string"},"trainee_display_name":{"type":"string","nullable":true}}},"RelationRevoked":{"type":"object","properties":{"revoked":{"type":"boolean"},"id":{"type":"string","format":"uuid"},"status":{"type":"string"},"deleted_at":{"type":"string","format":"date-time"}}},"CoachTrainee":{"type":"object","properties":{"relation_id":{"type":"string","format":"uuid"},"role":{"type":"string"},"status":{"type":"string"},"can_view_workouts":{"type":"boolean"},"can_edit_workouts":{"type":"boolean"},"can_view_nutrition":{"type":"boolean"},"can_edit_nutrition":{"type":"boolean"},"can_view_cardio":{"type":"boolean"},"can_view_metrics":{"type":"boolean"},"can_edit_metrics":{"type":"boolean"},"can_view_goals":{"type":"boolean"},"can_edit_goals":{"type":"boolean"},"can_view_notes":{"type":"boolean"},"can_edit_notes":{"type":"boolean"},"created_at":{"type":"string","format":"date-time"},"trainee_app_user_id":{"type":"string","format":"uuid"},"trainee_external_user_id":{"type":"string"},"trainee_display_name":{"type":"string","nullable":true},"trainee_email":{"type":"string","nullable":true}}},"Workout":{"allOf":[{"$ref":"#/components/schemas/WorkoutDetail"}],"description":"Canonical workout + sets"},"Meal":{"allOf":[{"$ref":"#/components/schemas/MealDetail"}],"description":"Canonical meal row"},"MealCreated":{"type":"object","description":"POST /v1/meals RETURNING columns","properties":{"id":{"type":"string","format":"uuid"},"date":{"type":"string","format":"date","description":"YYYY-MM-DD"},"meal_type":{"type":"string","nullable":true},"name":{"type":"string"},"calories":{"type":"number"},"protein":{"type":"number"},"carbs":{"type":"number"},"fats":{"type":"number"},"created_at":{"type":"string","format":"date-time"}}},"CardioIntervalInput":{"type":"object","required":["interval_number"],"properties":{"interval_number":{"type":"integer","minimum":1},"interval_type":{"type":"string","description":"default work"},"distance_m":{"type":"number","nullable":true},"duration_seconds":{"type":"number","nullable":true},"avg_pace_seconds_per_km":{"type":"number","nullable":true},"avg_hr":{"type":"number","nullable":true},"max_hr":{"type":"number","nullable":true},"avg_power_w":{"type":"number","nullable":true},"avg_cadence":{"type":"number","nullable":true},"stroke_count":{"type":"number","nullable":true},"swolf":{"type":"number","nullable":true},"elevation_gain_m":{"type":"number","nullable":true},"rpe":{"type":"number","nullable":true},"notes":{"type":"string","nullable":true},"metadata":{"type":"object","additionalProperties":true}}},"CardioCreate":{"type":"object","required":["sport","date"],"properties":{"sport":{"type":"string"},"date":{"type":"string","format":"date","description":"YYYY-MM-DD"},"sub_type":{"type":"string","nullable":true},"title":{"type":"string"},"notes":{"type":"string"},"route_name":{"type":"string","nullable":true},"duration_seconds":{"type":"number"},"distance_m":{"type":"number"},"avg_pace_seconds_per_km":{"type":"number","nullable":true},"avg_speed_kmh":{"type":"number","nullable":true},"max_speed_kmh":{"type":"number","nullable":true},"avg_hr":{"type":"number","nullable":true},"max_hr":{"type":"number","nullable":true},"avg_cadence":{"type":"number","nullable":true},"elevation_gain_m":{"type":"number","nullable":true},"elevation_loss_m":{"type":"number","nullable":true},"avg_power_w":{"type":"number","nullable":true},"normalized_power_w":{"type":"number","nullable":true},"max_power_w":{"type":"number","nullable":true},"tss":{"type":"number","nullable":true},"intensity_factor":{"type":"number","nullable":true},"calories":{"type":"number","nullable":true},"perceived_effort":{"type":"number","nullable":true},"pool_length_m":{"type":"number","nullable":true},"stroke_type":{"type":"string","nullable":true},"swolf":{"type":"number","nullable":true},"stroke_count":{"type":"number","nullable":true},"temperature_c":{"type":"number","nullable":true},"is_race":{"type":"boolean"},"is_indoor":{"type":"boolean"},"gpx_url":{"type":"string","nullable":true},"status":{"type":"string","description":"default completed"},"completed_at":{"type":"string","format":"date-time","nullable":true},"intervals":{"type":"array","items":{"$ref":"#/components/schemas/CardioIntervalInput"}}}},"CardioCreated":{"type":"object","description":"POST /v1/cardio RETURNING columns + intervals_count","properties":{"id":{"type":"string","format":"uuid"},"date":{"type":"string","format":"date","description":"YYYY-MM-DD"},"sport":{"type":"string"},"sub_type":{"type":"string","nullable":true},"title":{"type":"string"},"duration_seconds":{"type":"number"},"distance_m":{"type":"number"},"avg_hr":{"type":"number","nullable":true},"max_hr":{"type":"number","nullable":true},"calories":{"type":"number","nullable":true},"status":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"intervals_count":{"type":"integer"}}},"CardioActivity":{"type":"object","description":"Full cardio_activities row (+ intervals on GET by id)","properties":{"id":{"type":"string","format":"uuid"},"date":{"type":"string","format":"date","description":"YYYY-MM-DD"},"sport":{"type":"string"},"sub_type":{"type":"string","nullable":true},"title":{"type":"string"},"notes":{"type":"string"},"route_name":{"type":"string","nullable":true},"duration_seconds":{"type":"number"},"distance_m":{"type":"number"},"avg_pace_seconds_per_km":{"type":"number","nullable":true},"avg_speed_kmh":{"type":"number","nullable":true},"max_speed_kmh":{"type":"number","nullable":true},"avg_hr":{"type":"number","nullable":true},"max_hr":{"type":"number","nullable":true},"avg_cadence":{"type":"number","nullable":true},"elevation_gain_m":{"type":"number","nullable":true},"elevation_loss_m":{"type":"number","nullable":true},"avg_power_w":{"type":"number","nullable":true},"normalized_power_w":{"type":"number","nullable":true},"max_power_w":{"type":"number","nullable":true},"tss":{"type":"number","nullable":true},"intensity_factor":{"type":"number","nullable":true},"calories":{"type":"number","nullable":true},"perceived_effort":{"type":"number","nullable":true},"is_race":{"type":"boolean"},"is_indoor":{"type":"boolean"},"gpx_url":{"type":"string","nullable":true},"status":{"type":"string"},"completed_at":{"type":"string","format":"date-time","nullable":true},"created_at":{"type":"string","format":"date-time"},"intervals":{"type":"array","items":{"type":"object","additionalProperties":true}}}},"WaterCreate":{"type":"object","required":["date","amount_ml"],"properties":{"date":{"type":"string","format":"date","description":"YYYY-MM-DD"},"amount_ml":{"type":"number","minimum":0}}},"WaterEntry":{"type":"object","description":"POST/GET /v1/water row shape (RETURNING / SELECT)","properties":{"id":{"type":"string","format":"uuid"},"date":{"type":"string","format":"date","description":"YYYY-MM-DD"},"amount_ml":{"type":"number"},"created_at":{"type":"string","format":"date-time"}}},"CustomFoodCreate":{"type":"object","required":["name"],"properties":{"name":{"type":"string"},"brand":{"type":"string","nullable":true},"barcode":{"type":"string","nullable":true},"category":{"type":"string","nullable":true},"calories_per_100g":{"type":"number","default":0},"protein_per_100g":{"type":"number","default":0},"carbs_per_100g":{"type":"number","default":0},"fat_per_100g":{"type":"number","default":0},"serving_size_g":{"type":"number","nullable":true},"source":{"type":"string","description":"default manual"}}},"CustomFood":{"type":"object","description":"POST /v1/custom-foods RETURNING columns","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"calories_per_100g":{"type":"number"},"protein_per_100g":{"type":"number"},"carbs_per_100g":{"type":"number"},"fat_per_100g":{"type":"number"},"created_at":{"type":"string","format":"date-time"}}},"SupplementCreate":{"type":"object","required":["name"],"properties":{"name":{"type":"string"},"brand":{"type":"string","nullable":true},"category":{"type":"string","nullable":true},"serving_size":{"type":"string","nullable":true},"dose":{"type":"string","nullable":true},"frequency":{"type":"string","nullable":true},"is_active":{"type":"boolean","default":true},"metadata":{"type":"object","additionalProperties":true}}},"SupplementCreated":{"type":"object","description":"POST /v1/supplements RETURNING columns","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"brand":{"type":"string","nullable":true},"category":{"type":"string","nullable":true},"serving_size":{"type":"string","nullable":true},"dose":{"type":"string","nullable":true},"frequency":{"type":"string","nullable":true},"is_active":{"type":"boolean"},"created_at":{"type":"string","format":"date-time"}}},"Supplement":{"type":"object","description":"GET /v1/supplements list row","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"brand":{"type":"string","nullable":true},"category":{"type":"string","nullable":true},"serving_size":{"type":"string","nullable":true},"dose":{"type":"string","nullable":true},"frequency":{"type":"string","nullable":true},"is_active":{"type":"boolean"},"metadata":{"type":"object","additionalProperties":true},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"AppUserCreate":{"type":"object","required":["external_user_id"],"properties":{"external_user_id":{"type":"string"},"display_name":{"type":"string","nullable":true},"email":{"type":"string","nullable":true},"metadata":{"type":"object","additionalProperties":true}}},"AppUser":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"app_id":{"type":"string","format":"uuid"},"external_user_id":{"type":"string"},"display_name":{"type":"string","nullable":true},"email":{"type":"string","nullable":true},"metadata":{"type":"object","additionalProperties":true},"created_at":{"type":"string","format":"date-time"}}},"Key":{"type":"object","properties":{"key_prefix":{"type":"string"},"plan_id":{"type":"string"},"scopes":{"type":"string"},"app_id":{"type":"string","format":"uuid","nullable":true},"bound_app_user_id":{"type":"string","format":"uuid","nullable":true},"quota_monthly":{"type":"integer"},"ai_quota_monthly":{"type":"integer"},"rate_per_min":{"type":"integer"},"unlimited":{"type":"boolean"}}},"App":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"owner_email":{"type":"string","nullable":true},"metadata":{"type":"object","additionalProperties":true},"created_at":{"type":"string","format":"date-time"}}},"Plan":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"quota_monthly":{"type":"integer"},"ai_quota_monthly":{"type":"integer"},"rate_per_min":{"type":"integer"}}},"MCPToolCall":{"type":"object","required":["jsonrpc","method"],"properties":{"jsonrpc":{"type":"string","const":"2.0"},"id":{},"method":{"type":"string","enum":["initialize","tools/list","tools/call"]},"params":{"type":"object","properties":{"name":{"type":"string"},"arguments":{"type":"object","additionalProperties":true}}}}},"MCPToolResult":{"type":"object","properties":{"jsonrpc":{"type":"string","const":"2.0"},"id":{},"result":{"type":"object","properties":{"content":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"text":{"type":"string"}}}},"structuredContent":{"type":"object","additionalProperties":true},"tools":{"type":"array","items":{"type":"object","additionalProperties":true}},"protocolVersion":{"type":"string"},"capabilities":{"type":"object","additionalProperties":true},"serverInfo":{"type":"object","additionalProperties":true}},"additionalProperties":true},"error":{"type":"object","properties":{"code":{"type":"integer"},"message":{"type":"string"}}}}}}},"tags":[{"name":"demo"},{"name":"exercise"},{"name":"anatomy"},{"name":"routines"},{"name":"food"},{"name":"calculators"},{"name":"charts"},{"name":"users"},{"name":"profile"},{"name":"workouts"},{"name":"cardio"},{"name":"nutrition"},{"name":"supplements"},{"name":"goals"},{"name":"metrics"},{"name":"notes"},{"name":"weekly-checkins"},{"name":"progression"},{"name":"share"},{"name":"coach"},{"name":"media"},{"name":"ai"},{"name":"mcp"},{"name":"meta"}],"paths":{"/v1/demo/key":{"post":{"summary":"Mint a free demo key + app_user for a personal AI assistant (ChatGPT/Claude/Cursor). No auth needed — returns both prepopulated headers. AI tools upsell; data is ephemeral + swept daily; claimable by email.","tags":["demo"],"security":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"none","x-anatome-rate-limit-category":"demo_mint","x-anatome-anon-allowed":true}},"/v1/demo/whoami":{"get":{"summary":"Recover which assistant/email a key belongs to + its quotas (Bearer-gated; works for any active key, richest for demo keys)","tags":["demo"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/demo/claim":{"post":{"summary":"Migrate a demo key's data into a real app (ADMIN_TOKEN-gated; the dashboard proxies this for a logged-in user). Detect-by-mail. Revokes the demo key.","tags":["demo"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/exercise/search":{"get":{"summary":"Search exercises (federated to anatome)","tags":["exercise"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"anon","x-anatome-anon-allowed":true}},"/v1/exercise/get":{"get":{"summary":"Get one exercise by name/id/random","tags":["exercise"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"anon","x-anatome-anon-allowed":true}},"/v1/exercise/resolve":{"get":{"summary":"Resolve exercise name → muscle layers","tags":["exercise"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"anon","x-anatome-anon-allowed":true}},"/v1/anatomy/muscles":{"get":{"summary":"List muscle slugs","tags":["anatomy"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"anon","x-anatome-anon-allowed":true}},"/v1/anatomy/image":{"get":{"summary":"Generate muscle SVG diagram","tags":["anatomy"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"anon","x-anatome-anon-allowed":true},"post":{"summary":"Generate muscle SVG diagram (JSON body)","tags":["anatomy"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":true}},"/v1/anatomy/workout-image":{"post":{"summary":"Session heatmap — stack muscle activation across multiple exercises (combined SVG + per-muscle counts)","tags":["anatomy"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":true}},"/v1/routines":{"get":{"summary":"Browse curated workout routines (PPL, upper/lower, full-body, 5x5…)","tags":["routines"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"anon","x-anatome-anon-allowed":true}},"/v1/routines/featured":{"get":{"summary":"Featured curated routines (landing page)","tags":["routines"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"anon","x-anatome-anon-allowed":true}},"/v1/routines/push":{"get":{"summary":"PPL shortcut — canonical push day slots","tags":["routines"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"anon","x-anatome-anon-allowed":true}},"/v1/routines/pull":{"get":{"summary":"PPL shortcut — canonical pull day slots","tags":["routines"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"anon","x-anatome-anon-allowed":true}},"/v1/routines/legs":{"get":{"summary":"PPL shortcut — canonical legs day slots","tags":["routines"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"anon","x-anatome-anon-allowed":true}},"/v1/routines/{slug}":{"get":{"summary":"Get a curated routine with day refs","tags":["routines"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"anon","x-anatome-anon-allowed":true}},"/v1/routines/{slug}/full":{"get":{"summary":"Get a curated routine fully expanded (days + slots)","tags":["routines"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"anon","x-anatome-anon-allowed":true}},"/v1/my-routines":{"get":{"summary":"List the user's routines","tags":["routines"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false},"post":{"summary":"Create a user routine (with days + slots)","tags":["routines"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/my-routines/{id}":{"get":{"summary":"Get a user routine with days + slots","tags":["routines"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false},"patch":{"summary":"Update a user routine","tags":["routines"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false},"delete":{"summary":"Soft-delete a user routine","tags":["routines"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/DeletedId"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/my-routines/{id}/instantiate":{"post":{"summary":"Schedule a routine into planned workouts (one per non-rest day)","tags":["routines"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/my-routines/{id}/fork/{publicSlug}":{"post":{"summary":"Fork a curated routine into the user's library","tags":["routines"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/food/search":{"get":{"summary":"Search food products (federated to ns-food)","tags":["food"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"anon","x-anatome-anon-allowed":true}},"/v1/food/barcode/{barcode}":{"get":{"summary":"Barcode lookup","tags":["food"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"anon","x-anatome-anon-allowed":true}},"/v1/food/autocomplete":{"get":{"summary":"Food prefix autocomplete","tags":["food"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"anon","x-anatome-anon-allowed":true}},"/v1/calculators/bmr":{"get":{"summary":"Basal Metabolic Rate (mifflin|harris-benedict|katch-mcArdle)","tags":["calculators"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"anon","x-anatome-anon-allowed":true}},"/v1/calculators/tdee":{"get":{"summary":"Total Daily Energy Expenditure","tags":["calculators"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"anon","x-anatome-anon-allowed":true}},"/v1/calculators/bmi":{"get":{"summary":"Body Mass Index + category","tags":["calculators"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"anon","x-anatome-anon-allowed":true}},"/v1/calculators/body-fat":{"get":{"summary":"Body fat % (navy|jackson-pollock|ymca) — estimates vary ±5%","tags":["calculators"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"anon","x-anatome-anon-allowed":true}},"/v1/calculators/one-rep-max":{"get":{"summary":"1RM (epley|brzycki|lombardi)","tags":["calculators"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"anon","x-anatome-anon-allowed":true}},"/v1/calculators/water-intake":{"get":{"summary":"Daily water recommendation","tags":["calculators"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"anon","x-anatome-anon-allowed":true}},"/v1/calculators/ideal-weight":{"get":{"summary":"Ideal body weight (devine|robinson|miller)","tags":["calculators"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"anon","x-anatome-anon-allowed":true}},"/v1/charts/render":{"post":{"summary":"Render a chart (macro_rings|macro_bars) to PNG/SVG from a data spec — stateless, no DB, no PII stored. Used by aironcoach connector (Telegram/WhatsApp) macro graphs. format=png|svg, theme=dark|light, locale=pl|en.","tags":["charts"],"security":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":true}},"/v1/users":{"post":{"summary":"Create an app_user","tags":["users"],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppUserCreate"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/AppUser"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"users","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false},"get":{"summary":"List app_users","tags":["users"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/AppUser"}},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"users","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/users/{external_user_id}":{"get":{"summary":"Get app_user","tags":["users"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/AppUser"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"users","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false},"delete":{"summary":"Soft-delete app_user (30d rollback)","tags":["users"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/DeletedId"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"users","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/profile":{"get":{"summary":"Get user fitness profile (incl. timezone + nutrient targets)","tags":["profile"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false},"post":{"summary":"Upsert user fitness profile. Set `timezone` to an IANA name (e.g. Europe/Warsaw) — it determines the user's calendar day for every daily rollup, streak and adherence window, and defaults to UTC. Also carries daily_fiber_goal, daily_sugar_limit and daily_sodium_limit.","tags":["profile"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/workouts":{"post":{"summary":"Log a workout with sets","tags":["workouts"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"$ref":"#/components/parameters/AppActingAs"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkoutCreate"}}}},"responses":{"200":{"description":"Workout created","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/WorkoutCreated"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false},"get":{"summary":"List workouts","tags":["workouts"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"date_from","in":"query","schema":{"type":"string","format":"date","description":"YYYY-MM-DD"}},{"name":"date_to","in":"query","schema":{"type":"string","format":"date","description":"YYYY-MM-DD"}}],"responses":{"200":{"description":"Workout list","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/WorkoutSummary"}},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/workouts/{id}":{"get":{"summary":"Get workout + sets","tags":["workouts"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"Resource UUID"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/WorkoutDetail"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false},"patch":{"summary":"Update a workout (plan → in_progress → completed)","tags":["workouts"],"security":[{"bearerAuth":[]}],"description":"Flip a planned workout's status, or replace its set list with what was actually performed. `sets` is a whole-list replacement, not a merge. A per-set `completed` flag wins over the workout status, so a session with 2 of 3 sets ticked records exactly those 2 as completed. Only completed sets count toward volume, PRs, 1RM and adherence.","parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"Resource UUID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkoutPatch"}}}},"responses":{"200":{"description":"Workout updated","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/WorkoutDetail"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false},"delete":{"summary":"Soft-delete workout","tags":["workouts"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"Resource UUID"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/DeletedId"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/cardio":{"post":{"summary":"Log cardio activity","tags":["cardio"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CardioCreate"}}}},"responses":{"200":{"description":"Cardio activity created","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/CardioCreated"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false},"get":{"summary":"List cardio activities","tags":["cardio"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"date_from","in":"query","schema":{"type":"string","format":"date","description":"YYYY-MM-DD"}},{"name":"date_to","in":"query","schema":{"type":"string","format":"date","description":"YYYY-MM-DD"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/CardioActivity"}},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/cardio/gpx":{"post":{"summary":"Import cardio activity from GPX XML","tags":["cardio"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/CardioActivity"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/cardio/{id}":{"get":{"summary":"Get cardio activity + intervals","tags":["cardio"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"Resource UUID"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/CardioActivity"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false},"delete":{"summary":"Soft-delete cardio activity","tags":["cardio"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"Resource UUID"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/DeletedId"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/meals":{"post":{"summary":"Log a meal","tags":["nutrition"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MealCreate"}}}},"responses":{"200":{"description":"Meal created","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/MealCreated"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false},"get":{"summary":"List meals","tags":["nutrition"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"name":"date","in":"query","schema":{"type":"string","format":"date","description":"YYYY-MM-DD"}},{"name":"date_from","in":"query","schema":{"type":"string","format":"date","description":"YYYY-MM-DD"}},{"name":"date_to","in":"query","schema":{"type":"string","format":"date","description":"YYYY-MM-DD"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/MealSummary"}},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/meals/{id}":{"get":{"summary":"Get a meal by id","tags":["nutrition"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"Resource UUID"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/MealDetail"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false},"patch":{"summary":"Update meal macros/ingredients/status/name","tags":["nutrition"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"Resource UUID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MealUpdate"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/MealDetail"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false},"delete":{"summary":"Soft-archive a meal","tags":["nutrition"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"Resource UUID"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/DeletedId"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/water":{"post":{"summary":"Log water","tags":["nutrition"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WaterCreate"}}}},"responses":{"200":{"description":"Water logged","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/WaterEntry"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false},"get":{"summary":"List water for a date or a date range","tags":["nutrition"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"name":"date","in":"query","schema":{"type":"string","format":"date","description":"YYYY-MM-DD"}},{"name":"date_from","in":"query","schema":{"type":"string","format":"date","description":"YYYY-MM-DD"}},{"name":"date_to","in":"query","schema":{"type":"string","format":"date","description":"YYYY-MM-DD"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/WaterEntry"}},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/custom-foods":{"post":{"summary":"Save a food for re-use","tags":["nutrition"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomFoodCreate"}}}},"responses":{"200":{"description":"Custom food created","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/CustomFood"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false},"get":{"summary":"List the caller's saved foods, favourites first then most recently touched. ?q= filters on name or brand.","tags":["nutrition"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/CustomFood"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/recipes":{"post":{"summary":"Create recipe","description":"Create a user recipe. Fields: name (required), description, instructions, image_url, servings, ingredients[], totals, category, prep_time, locale (en|pl), origin (human|ai — AI must be explicit), is_public, metadata. AI recipes should set origin=ai and metadata.ai_model.","tags":["nutrition"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecipeCreate"}}}},"responses":{"200":{"description":"Recipe created","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/RecipeOwner"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false},"get":{"summary":"List own recipes","description":"Owner-scoped list. Query: q, category, is_public, locale, origin (human|ai|all), limit.","tags":["nutrition"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"name":"q","in":"query","schema":{"type":"string"}},{"name":"category","in":"query","schema":{"type":"string"}},{"name":"is_public","in":"query","schema":{"type":"string","enum":["true","false"]}},{"name":"locale","in":"query","schema":{"type":"string","enum":["en","pl"]}},{"name":"origin","in":"query","schema":{"type":"string","enum":["human","ai","all"]}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/RecipeOwner"}},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/recipes/catalog":{"get":{"summary":"Browse public recipe catalog","description":"Public curated + shared recipes (read|anon). Query: q, category, locale (en|pl), origin (default human; use ai or all to include AI-generated), limit, offset. Native EN and PL human recipes are seeded (CC BY-SA Wikibooks / traditional). AI rows always carry origin=ai and is_ai=true.","tags":["nutrition"],"security":[{"bearerAuth":[]}],"parameters":[{"name":"q","in":"query","schema":{"type":"string"}},{"name":"category","in":"query","schema":{"type":"string"}},{"name":"locale","in":"query","schema":{"type":"string","enum":["en","pl"]}},{"name":"origin","in":"query","schema":{"type":"string","enum":["human","ai","all"],"default":"human"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/RecipePublic"}},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"anon","x-anatome-anon-allowed":true}},"/v1/recipes/by-token":{"get":{"summary":"Get recipe by share token","description":"No auth. Query: token= (UUID share_token).","tags":["nutrition"],"security":[],"parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/RecipePublic"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"anon","x-anatome-anon-allowed":true}},"/v1/recipes/{id}":{"get":{"summary":"Get public recipe by id","description":"No auth. Returns public or share-token-bearing recipes. Response includes locale, origin, is_ai.","tags":["nutrition"],"security":[],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"Resource UUID"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/RecipePublic"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"anon","x-anatome-anon-allowed":true}},"/v1/supplements":{"post":{"summary":"Create supplement","tags":["supplements"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplementCreate"}}}},"responses":{"200":{"description":"Supplement created","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/SupplementCreated"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false},"get":{"summary":"List supplements","tags":["supplements"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"name":"active","in":"query","schema":{"type":"string","enum":["true","false"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Supplement"}},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/supplement-logs":{"post":{"summary":"Log supplement intake","tags":["supplements"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false},"get":{"summary":"List supplement logs","tags":["supplements"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/goals":{"post":{"summary":"Create exercise goal","tags":["goals"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoalCreate"}}}},"responses":{"200":{"description":"Goal created","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Goal"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false},"get":{"summary":"List goals","tags":["goals"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"name":"status","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Goal"}},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/goals/{id}":{"patch":{"summary":"Update goal progress/status","tags":["goals"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"Resource UUID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoalUpdate"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Goal"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false},"delete":{"summary":"Soft-delete goal","tags":["goals"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"Resource UUID"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/DeletedId"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/body-metrics":{"post":{"summary":"Log a body metric (weight, height, body_fat, bicep, waist, chest, muscle_mass, etc.). Canonical metric_types: weight(kg), height(cm), body_fat(%), muscle_mass(kg), bicep/forearm/waist/chest/hip/thigh/calf/neck/shoulder(cm), bmi, resting_hr(bpm). Logging `weight` unlocks bodyweight-inclusive training volume.","tags":["metrics"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyMetricCreate"}}}},"responses":{"200":{"description":"Body metric logged","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/BodyMetric"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false},"get":{"summary":"List body metrics (filter by metric_type + date range)","tags":["metrics"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"name":"metric_type","in":"query","schema":{"type":"string"}},{"name":"from","in":"query","schema":{"type":"string","format":"date","description":"YYYY-MM-DD"},"description":"date_from (YYYY-MM-DD)"},{"name":"to","in":"query","schema":{"type":"string","format":"date","description":"YYYY-MM-DD"},"description":"date_to (YYYY-MM-DD)"},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":500,"default":100}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/BodyMetric"}},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/body-metrics/{id}":{"delete":{"summary":"Soft-delete body metric","tags":["metrics"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"Resource UUID"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/DeletedId"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/nutrition/daily":{"get":{"summary":"Per-day kcal/macro/water/fiber/sugar/sodium/alcohol rollup vs profile targets + adherence %. The default window ends on the USER's today, resolved from profile.timezone.","tags":["nutrition"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/nutrition/weekly":{"get":{"summary":"Per-week rollup of daily figures","tags":["nutrition"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/nutrition/balance":{"get":{"summary":"Macro split (% of calories) over a date range","tags":["nutrition"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/meals/import":{"post":{"summary":"Bulk-import meal history from another tracker (MyFitnessPal, Cronometer, Lose It!, MacroFactor, FatSecret, YAZIO, Lifesum). Up to 500 rows. Run with dry_run:true first. expected_row_count + expected_total_kcal are reconciled against the parsed rows and a mismatch refuses the whole batch. Dedup on (external_source, external_id) makes a re-run idempotent.","tags":["nutrition"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/custom-foods/{id}":{"delete":{"summary":"Remove a saved food. Hard delete: a saved food is a shortcut, not a record of something that happened, and meals carry their own macros.","tags":["nutrition"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/DeletedId"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/events":{"get":{"summary":"Change feed: what changed since a cursor. Events name the entity and id and carry no payload, so the consumer re-reads through the normal endpoint and there is no second copy to go stale. Deletes are included, which list reads cannot show. Pass meta.cursor back as ?since=. meta.truncated means your cursor predates the 30-day retention and a full re-read is needed. ?entities=workout,meal filters.","tags":["sync"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/export":{"get":{"summary":"Export all of the caller's own data (meals, water, workouts, sets, cardio, body metrics, goals, notes, supplements, profile) as JSON or CSV. GDPR Art. 20 portability. ?format=json|csv&domains=meals,workouts","tags":["meta"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/quickstart":{"get":{"summary":"Paste-ready connection config for a given assistant (?assistant=claude|claude-code|cursor|chatgpt|generic) plus a first call to try. No auth.","tags":["meta"],"security":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":true}},"/v1/progression/prs":{"get":{"summary":"PRs per exercise (heaviest, Epley 1RM, set/session volume, most reps, true-1RM flag). ?include_bodyweight=true adds the user's bodyweight to bodyweight exercises (pull-ups, dips, muscle-ups).","tags":["progression"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/progression/volume":{"get":{"summary":"Volume over time per exercise/muscle (day/week/month buckets). ?include_bodyweight=true adds the user's bodyweight to bodyweight exercises so calisthenics volume is counted.","tags":["progression"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/progression/1rm":{"get":{"summary":"Estimated 1RM time series per exercise (Epley)","tags":["progression"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/progression/compare-periods":{"get":{"summary":"Period-over-period comparison for any metric (?include_bodyweight=true for volume metric)","tags":["progression"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/progression/weight-trend":{"get":{"summary":"EWMA weight-trend smoothing (carry-forward, weekly change rate)","tags":["progression"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/progression/training-load":{"get":{"summary":"PMC training load: CTL/ATL/TSB + TSS estimation (power/HR/RPE)","tags":["progression"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/progression/correlate":{"get":{"summary":"Cross-source Pearson correlation (weight↔adherence, volume↔bodyweight)","tags":["progression"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/progression/cardio-prs":{"get":{"summary":"Cardio PRs by distance (5K/10K PB) + pace trend","tags":["progression"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/progression/adherence":{"get":{"summary":"Calorie/macro/water target adherence % over a range","tags":["progression"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/progression/streaks":{"get":{"summary":"Current + longest streak of consecutive active days","tags":["progression"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/progression/body-delta":{"get":{"summary":"Body-composition delta (body_fat/muscle/waist) over a range","tags":["progression"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/progression/muscle-recovery":{"get":{"summary":"Per-muscle 7-day recovery % (Fitbod parity; AI 'what to train' input). ?include_bodyweight=true adds the user's bodyweight to bodyweight exercises.","tags":["progression"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/progression/cohort/compare":{"get":{"summary":"Coach-scoped multi-trainee cohort ranking (verifyCoachRelation)","tags":["progression"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/relations":{"post":{"summary":"Create coach→trainee relation with permission flags (role=coach|dietitian). X-App-User-Id = coach (or app_admin).","tags":["coach"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RelationCreate"}}}},"responses":{"201":{"description":"Relation created or reactivated","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Relation"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false},"get":{"summary":"List relations for current user (?as=coach|trainee, default coach)","tags":["coach"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"name":"as","in":"query","schema":{"type":"string","enum":["coach","trainee"],"default":"coach"}},{"name":"status","in":"query","schema":{"type":"string","enum":["active","revoked","all"]},"description":"default active only"},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":500,"default":100}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Relation"}},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/relations/{id}":{"get":{"summary":"Get one relation (party or app_admin)","tags":["coach"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"Resource UUID"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Relation"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false},"patch":{"summary":"Update relation flags/status/role (coach or app_admin)","tags":["coach"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"Resource UUID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RelationUpdate"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Relation"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false},"delete":{"summary":"Soft-revoke relation (status=revoked + deleted_at)","tags":["coach"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"Resource UUID"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/RelationRevoked"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/coach/trainees":{"get":{"summary":"List active trainees for X-App-User-Id as coach (convenience)","tags":["coach"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":500,"default":100}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/CoachTrainee"}},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/coach/workouts":{"get":{"summary":"Coach reads a trainee's workouts (X-Coach-User-Id + X-App-User-Id)","tags":["coach"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"$ref":"#/components/parameters/CoachUserId"},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"date_from","in":"query","schema":{"type":"string","format":"date","description":"YYYY-MM-DD"}},{"name":"date_to","in":"query","schema":{"type":"string","format":"date","description":"YYYY-MM-DD"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/WorkoutSummary"}},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/coach/meals":{"get":{"summary":"Coach reads a trainee's meals","tags":["coach"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"$ref":"#/components/parameters/CoachUserId"},{"name":"date","in":"query","schema":{"type":"string","format":"date","description":"YYYY-MM-DD"}},{"name":"date_from","in":"query","schema":{"type":"string","format":"date","description":"YYYY-MM-DD"}},{"name":"date_to","in":"query","schema":{"type":"string","format":"date","description":"YYYY-MM-DD"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/MealSummary"}},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/coach/meal-plans":{"get":{"summary":"Coach lists a trainee's meal plans (can_view_nutrition)","tags":["coach"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"$ref":"#/components/parameters/CoachUserId"},{"name":"week","in":"query","schema":{"type":"string","format":"date","description":"YYYY-MM-DD"}},{"name":"status","in":"query","schema":{"type":"string","enum":["draft","active","archived","revised"]}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/MealPlanResponse"}},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false},"post":{"summary":"Coach creates a draft meal plan for a trainee (can_edit_nutrition)","tags":["coach"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"$ref":"#/components/parameters/CoachUserId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MealPlanCreate"}}}},"responses":{"200":{"description":"Coach creates draft plan for trainee (requires can_edit_nutrition)","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/MealPlanResponse"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/coach/meal-plans/{id}":{"get":{"summary":"Coach reads one trainee meal plan (can_view_nutrition)","tags":["coach"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"$ref":"#/components/parameters/CoachUserId"},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"Resource UUID"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/MealPlanResponse"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false},"patch":{"summary":"Coach updates a draft meal plan for a trainee (can_edit_nutrition)","tags":["coach"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"$ref":"#/components/parameters/CoachUserId"},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"Resource UUID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MealPlanUpdate"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/MealPlanResponse"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/coach/meal-plans/{id}/activate":{"post":{"summary":"Coach activates a trainee meal plan (archives prior active for week)","tags":["coach"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"$ref":"#/components/parameters/CoachUserId"},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"Resource UUID"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MealPlanActivate"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/MealPlanResponse"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/coach/meal-plans/{id}/clone":{"post":{"summary":"Coach clones a trainee meal plan to a new draft version","tags":["coach"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"$ref":"#/components/parameters/CoachUserId"},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"Resource UUID"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MealPlanClone"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/MealPlanCloneResponse"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/coach/cardio":{"get":{"summary":"Coach reads a trainee's cardio activities","tags":["coach"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/coach/body-metrics":{"get":{"summary":"Coach reads a trainee's body metrics","tags":["coach"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"$ref":"#/components/parameters/CoachUserId"},{"name":"metric_type","in":"query","schema":{"type":"string"}},{"name":"from","in":"query","schema":{"type":"string","format":"date","description":"YYYY-MM-DD"}},{"name":"to","in":"query","schema":{"type":"string","format":"date","description":"YYYY-MM-DD"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/BodyMetric"}},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false},"post":{"summary":"Coach logs a body metric as the trainee (requires can_edit_metrics; sets logged_by_app_user_id)","tags":["coach"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"$ref":"#/components/parameters/CoachUserId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyMetricCreate"}}}},"responses":{"200":{"description":"Coach logged body metric as trainee (requires can_edit_metrics)","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/BodyMetric"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/coach/goals":{"get":{"summary":"Coach reads a trainee's goals (requires can_view_goals)","tags":["coach"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"$ref":"#/components/parameters/CoachUserId"},{"name":"status","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Goal"}},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/coach/notes":{"get":{"summary":"Coach reads a trainee's notes (requires can_view_notes)","tags":["coach"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"$ref":"#/components/parameters/CoachUserId"},{"name":"kind","in":"query","schema":{"type":"string","enum":["note","coach_note","journal"]}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Note"}},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false},"post":{"summary":"Coach authors a coach_note on the trainee journal (requires can_edit_notes)","tags":["coach"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"$ref":"#/components/parameters/CoachUserId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoachNoteCreate"}}}},"responses":{"200":{"description":"Coach-authored note created on trainee journal (requires can_edit_notes)","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Note"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/coach/notes/{id}":{"patch":{"summary":"Update a coach-authored note (authored_by must be the acting coach)","tags":["coach"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"$ref":"#/components/parameters/CoachUserId"},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"Resource UUID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteUpdate"}}}},"responses":{"200":{"description":"Update coach-authored note only","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Note"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false},"delete":{"summary":"Soft-archive a coach-authored note (authored_by must be the acting coach)","tags":["coach"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"$ref":"#/components/parameters/CoachUserId"},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"Resource UUID"}],"responses":{"200":{"description":"Soft-archive coach-authored note only","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/DeletedId"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/coach/weekly-checkins":{"get":{"summary":"Coach lists a trainee's weekly check-ins (requires can_view_notes; X-Coach-User-Id + X-App-User-Id)","tags":["coach"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"$ref":"#/components/parameters/CoachUserId"},{"name":"week_start","in":"query","schema":{"type":"string","format":"date","description":"YYYY-MM-DD"}},{"name":"status","in":"query","schema":{"type":"string","enum":["draft","submitted","reviewed","adjusted"]}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/WeeklyCheckinResponse"}},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/coach/weekly-checkins/{id}/review":{"post":{"summary":"Coach reviews a weekly check-in (requires can_edit_notes; sets coach_review + status reviewed|adjusted)","tags":["coach"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"$ref":"#/components/parameters/CoachUserId"},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"Resource UUID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WeeklyCheckinReview"}}}},"responses":{"200":{"description":"Reviewed","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/WeeklyCheckinResponse"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/coach/progression/prs":{"get":{"summary":"Coach reads a trainee's PRs per exercise","tags":["coach"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/coach/progression/training-load":{"get":{"summary":"Coach reads a trainee's PMC training load (CTL/ATL/TSB)","tags":["coach"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/notes":{"post":{"summary":"Create a journal note","tags":["notes"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteCreate"}}}},"responses":{"200":{"description":"Note created","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Note"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false},"get":{"summary":"List journal notes","tags":["notes"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"name":"kind","in":"query","schema":{"type":"string","enum":["note","coach_note","journal"]}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Note"}},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/notes/{id}":{"get":{"summary":"Get a journal note by id","tags":["notes"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"Resource UUID"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Note"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false},"patch":{"summary":"Update a journal note","tags":["notes"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"Resource UUID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteUpdate"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/Note"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false},"delete":{"summary":"Soft-archive a journal note","tags":["notes"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"Resource UUID"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/DeletedId"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/meal-plans":{"post":{"summary":"Create a draft meal plan (optional items array, atomic)","tags":["nutrition"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MealPlanCreate"}}}},"responses":{"200":{"description":"Draft meal plan created","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/MealPlanResponse"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false},"get":{"summary":"List own meal plans (?week=&status=)","tags":["nutrition"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"name":"week","in":"query","schema":{"type":"string","format":"date","description":"YYYY-MM-DD"},"description":"Filter by target_week_start (alias: target_week_start)"},{"name":"target_week_start","in":"query","schema":{"type":"string","format":"date","description":"YYYY-MM-DD"}},{"name":"status","in":"query","schema":{"type":"string","enum":["draft","active","archived","revised"]}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/MealPlanResponse"}},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/meal-plans/{id}":{"get":{"summary":"Get a meal plan with items","tags":["nutrition"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"Resource UUID"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/MealPlanResponse"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false},"patch":{"summary":"Update a draft meal plan (items replace-semantics)","tags":["nutrition"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"Resource UUID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MealPlanUpdate"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/MealPlanResponse"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false},"delete":{"summary":"Soft-delete a draft or archived meal plan","tags":["nutrition"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"Resource UUID"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/DeletedId"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/meal-plans/{id}/activate":{"post":{"summary":"Activate a meal plan; archives prior active for same week","tags":["nutrition"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"Resource UUID"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MealPlanActivate"}}}},"responses":{"200":{"description":"Plan activated; prior active for week archived","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/MealPlanResponse"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/meal-plans/{id}/clone":{"post":{"summary":"Clone a meal plan to a new draft with bumped version","tags":["nutrition"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"Resource UUID"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MealPlanClone"}}}},"responses":{"200":{"description":"New draft with bumped version","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/MealPlanCloneResponse"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/weekly-checkins":{"post":{"summary":"Create a weekly check-in (draft or submitted)","tags":["weekly-checkins"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WeeklyCheckinCreate"}}}},"responses":{"200":{"description":"Weekly check-in created","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/WeeklyCheckinResponse"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false},"get":{"summary":"List own weekly check-ins (?week_start, ?status)","tags":["weekly-checkins"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"name":"week_start","in":"query","schema":{"type":"string","format":"date","description":"YYYY-MM-DD"}},{"name":"status","in":"query","schema":{"type":"string","enum":["draft","submitted","reviewed","adjusted"]}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"type":"array","items":{"$ref":"#/components/schemas/WeeklyCheckinResponse"}},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/weekly-checkins/{id}":{"get":{"summary":"Get a weekly check-in by id (owner)","tags":["weekly-checkins"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"Resource UUID"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/WeeklyCheckinResponse"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false},"patch":{"summary":"Update a draft weekly check-in (owner; blocked after submit)","tags":["weekly-checkins"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"Resource UUID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WeeklyCheckinUpdate"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/WeeklyCheckinResponse"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false},"delete":{"summary":"Soft-delete a draft weekly check-in (owner)","tags":["weekly-checkins"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"Resource UUID"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/DeletedId"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/weekly-checkins/{id}/submit":{"post":{"summary":"Submit a draft weekly check-in (resolves coach_app_user_id from active relation)","tags":["weekly-checkins"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"Resource UUID"}],"responses":{"200":{"description":"Submitted","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/WeeklyCheckinResponse"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/goals/{id}/progress":{"get":{"summary":"Live-computed goal progress from underlying data (no persist)","tags":["goals"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"Resource UUID"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GoalProgress"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/goals/{id}/trajectory":{"get":{"summary":"Goal on-track projection (required_rate vs actual_rate)","tags":["goals"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"Resource UUID"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GoalTrajectory"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/goals/{id}/recompute":{"post":{"summary":"Persist recomputed goal progress + auto-achieve","tags":["goals"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/AppUserId"},{"$ref":"#/components/parameters/IdempotencyKey"},{"$ref":"#/components/parameters/XRequestId"},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"Resource UUID"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GoalRecompute"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/workouts/{id}/share":{"post":{"summary":"Mint a share token for a workout (owner)","tags":["share"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/WorkoutSummary"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false},"delete":{"summary":"Revoke a workout share token (owner)","tags":["share"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/DeletedId"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/workouts/by-token":{"get":{"summary":"Read a shared workout by token (NO KEY — no-key tier)","tags":["share"],"security":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/WorkoutSummary"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":true}},"/v1/meals/{id}/share":{"post":{"summary":"Mint a share token for a meal (owner)","tags":["share"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false},"delete":{"summary":"Revoke a meal share token (owner)","tags":["share"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/DeletedId"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/meals/by-token":{"get":{"summary":"Read a shared meal by token (NO KEY — no-key tier)","tags":["share"],"security":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/MealDetail"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":true}},"/v1/cardio/{id}/share":{"post":{"summary":"Mint a share token for a cardio activity (owner)","tags":["share"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/CardioActivity"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false},"delete":{"summary":"Revoke a cardio share token (owner)","tags":["share"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/DeletedId"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/cardio/by-token":{"get":{"summary":"Read a shared cardio activity by token (NO KEY — no-key tier)","tags":["share"],"security":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/CardioActivity"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":true}},"/v1/body-metrics/{id}/share":{"post":{"summary":"Mint a share token for a body metric (owner)","tags":["share"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/BodyMetric"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false},"delete":{"summary":"Revoke a body-metric share token (owner)","tags":["share"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/DeletedId"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"write","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/body-metrics/by-token":{"get":{"summary":"Read a shared body metric by token (NO KEY — no-key tier)","tags":["share"],"security":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/BodyMetric"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":true}},"/v1/media":{"post":{"summary":"Upload a progress picture / workout video (multipart; federated to ns-fc-uploads; media:write; NOT on RapidAPI)","tags":["media"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"media:write","x-anatome-rate-limit-category":"media","x-anatome-anon-allowed":false},"get":{"summary":"List the user's media (media:read; NOT on RapidAPI)","tags":["media"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"media:read","x-anatome-rate-limit-category":"media","x-anatome-anon-allowed":false}},"/v1/media/{id}":{"get":{"summary":"Get one media record (media:read; NOT on RapidAPI)","tags":["media"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"media:read","x-anatome-rate-limit-category":"media","x-anatome-anon-allowed":false},"delete":{"summary":"Soft-delete a media record (media:write; NOT on RapidAPI)","tags":["media"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/DeletedId"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"media:write","x-anatome-rate-limit-category":"media","x-anatome-anon-allowed":false}},"/v1/media/{id}/share":{"post":{"summary":"Mint a stable long-UUID secure link for a media file (media:write; NOT on RapidAPI)","tags":["media"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"media:write","x-anatome-rate-limit-category":"media","x-anatome-anon-allowed":false},"delete":{"summary":"Revoke a media secure link (media:write; NOT on RapidAPI)","tags":["media"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/DeletedId"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"media:write","x-anatome-rate-limit-category":"media","x-anatome-anon-allowed":false}},"/v1/media/{share_id}":{"get":{"summary":"Read a media file by secure link (NO KEY — 302 to byte URL; stable long-UUID link)","tags":["media"],"security":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"media","x-anatome-anon-allowed":true}},"/v1/ai/parse-meal":{"post":{"summary":"AI parse meal text → items + macros (OpenRouter)","tags":["ai"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"ai","x-anatome-rate-limit-category":"ai","x-anatome-anon-allowed":false}},"/v1/ai/parse-ingredients":{"post":{"summary":"AI extract ingredients","tags":["ai"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"ai","x-anatome-rate-limit-category":"ai","x-anatome-anon-allowed":false}},"/v1/ai/photo-macros":{"post":{"summary":"AI image → macros (vision model; capped separately)","tags":["ai"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"ai","x-anatome-rate-limit-category":"photo","x-anatome-anon-allowed":false}},"/v1/ai/meal-plan":{"post":{"summary":"AI multi-day meal plan","tags":["ai"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"ai","x-anatome-rate-limit-category":"ai","x-anatome-anon-allowed":false}},"/v1/ai/workout-plan":{"post":{"summary":"AI workout plan","tags":["ai"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"ai","x-anatome-rate-limit-category":"ai","x-anatome-anon-allowed":false}},"/v1/ai/coach-chat":{"post":{"summary":"AI coach chat","tags":["ai"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"ai","x-anatome-rate-limit-category":"ai","x-anatome-anon-allowed":false}},"/v1/mcp":{"post":{"summary":"MCP JSON-RPC 2.0 server (unified tools; mixed per-tool scopes)","tags":["mcp"],"security":[{"bearerAuth":[]}],"description":"Single MCP gateway for catalog reads, per-user writes, AI, and media tools. Required scope VARIES by tool name — see x-anatome-per-tool-scopes. Write/AI/media tools require a Bearer key + X-App-User-Id (bound or header). Do not assume endpoint-level read/anon auth is sufficient for every tools/call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MCPToolCall"}}}},"responses":{"200":{"description":"MCP JSON-RPC 2.0 (raw)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MCPToolResult"}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"varies","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false,"x-anatome-per-tool-scopes":{"get_events":"read","get_progress":"read","get_weekly_checkins":"read","log_weekly_checkin":"write","my_training_context":"read","search_exercises":"read","get_exercise":"read","resolve_exercise":"read","list_muscles":"read","generate_muscle_image":"read","workout_image":"read","list_routines":"read","get_routine":"read","get_ppl_day":"read","instantiate_routine":"write","search_foods":"read","lookup_barcode":"read","autocomplete_food":"read","log_workout":"write","get_workouts":"read","log_meal":"write","get_meals":"read","log_water":"write","log_body_metric":"write","get_body_metrics":"read","upsert_profile":"write","get_profile":"read","log_cardio":"write","get_cardio_activities":"read","parse_gpx":"write","ai_parse_meal":"ai","ai_photo_macros":"ai","ai_meal_plan":"ai","ai_workout_plan":"ai","get_prs":"read","get_volume":"read","get_1rm_progression":"read","get_training_load":"read","get_muscle_recovery":"read","get_goal_trajectory":"read","correlate_progression":"read","register_media":"media:write","list_media":"media:read","share_media":"media:write","revoke_media_share":"media:write","get_nutrition_daily":"read","get_nutrition_weekly":"read","get_nutrition_balance":"read","get_water":"read","update_meal":"write","delete_meal":"write","delete_workout":"write","delete_entry":"write","update_sets":"write","import_meals":"write","export_data":"read","get_adherence":"read","get_streaks":"read","compare_periods":"read","get_weight_trend":"read","get_body_delta":"read","get_cardio_prs":"read","get_goal_progress":"read","list_goals":"read","calculate":"anon"}}},"/v1/health":{"get":{"summary":"Health (operator)","tags":["meta"],"security":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":true}},"/v1/status":{"get":{"summary":"Public status + SLA posture","tags":["meta"],"security":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":true}},"/v1/usage":{"get":{"summary":"Calling key's quota usage (agent self-report)","tags":["meta"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/usage/daily":{"get":{"summary":"Calling key's daily request time series (self-service /account + sparklines)","tags":["meta"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":false}},"/v1/models":{"get":{"summary":"Selectable AI models + per-model quota weight + tier (free/RapidAPI pinned to free_tier_pin)","tags":["meta"],"security":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["ok","data"],"properties":{"ok":{"type":"boolean","enum":[true]},"data":{"$ref":"#/components/schemas/GenericData"},"meta":{"type":"object","additionalProperties":true},"attribution":{"type":"string"},"license":{"type":"string","example":"proprietary","description":"Always \"proprietary\" for this platform."},"data_attributions":{"type":"object","additionalProperties":true}}}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-anatome-required-scope":"read","x-anatome-rate-limit-category":"standard","x-anatome-anon-allowed":true}},"/v1/openapi.json":{"get":{"summary":"OpenAPI 3.1.0 spec (canonical)","tags":["meta"],"security":[],"x-anatome-required-scope":"none","x-anatome-rate-limit-category":"none","x-anatome-anon-allowed":true,"responses":{"200":{"description":"OpenAPI 3.1 document (raw — not envelope-wrapped)","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"400":{"description":"Validation / bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized — missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden — insufficient scope or quota","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}}}