---
title: "Save a recipe"
method: POST
path: "/api/vega/recipes"
tags: ["Tracker"]
---

# Save a recipe

`POST /api/vega/recipes`

## Request

- Base URL: `https://getmyluna.app`
- URL: `https://getmyluna.app/api/vega/recipes`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `luna_session`

Store a named ingredient list so it can be logged as one solid meal.

## Request body

- RecipeRequest
  - `name` string, required
  - `ingredients` string[], required

## Response `200`

Success

- RecipeResponse
  - `status` 'ok', required
  - `recipe` object, required

## Other responses

- `400`: Bad Request
- `401`: Missing or invalid credentials
- `403`: `insufficient_scope`: the bearer token lacks the `write` scope

---

[API](https://skmtc.dev/getmyluna/apis/luna-api.md) · [All operations](https://skmtc.dev/getmyluna/apis/luna-api/llms.txt) · [OpenAPI document](https://skmtc.dev/getmyluna/apis/luna-api/revisions/ef7b359c9648?raw)
