BETTERMENU
Studio

Calculate and save nutrition to a recipe

Calculate and save total recipe nutrition (batch-level, all ingredients summed).

⑥ of 8 | Next: ⑦ setRecipeServing 409? No ingredients — call ⑤ updateRecipeIngredients, then retry.

Use this to answer: "calculate nutrition for my recipe", "run nutrition analysis", "update the nutrition numbers", "generate the nutrition"

Computes the sum of all ingredient contributions and saves the result to the recipe. reference_weight_grams in the response is the total weight of all ingredients combined (full recipe batch) — not per-serving.

Recipe must be in DRAFT status with at least one ingredient.

Response includes next_steps array. Retrieve the stored result any time via getRecipeNutrition (GET).

POST
/studio/recipes/{recipe_id}/nutrition

Authorization

BearerAuth
AuthorizationBearer <token>

JWT Bearer token authentication

In: header

Path Parameters

recipe_id*string

Unique recipe identifier

Response Body

application/json

application/json

curl -X POST "https://loading/studio/recipes/string/nutrition"
{
  "data": {
    "recipe_id": "string",
    "nutrition": {
      "nutrients": [
        {
          "id": 0,
          "bmid": "string",
          "name": "string",
          "total_amount": "string",
          "unit": "string"
        }
      ],
      "reference_weight_grams": "string"
    },
    "next_steps": [
      {
        "operation": "string",
        "operationId": "string",
        "status": "string",
        "reason": "string"
      }
    ]
  },
  "meta": {
    "version": "string",
    "request_id": "string",
    "timestamp": "string"
  }
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}