---
title: "AI-format raw recipe text into structured recipe"
method: POST
path: "/api/cookbook/format"
tags: ["Cookbook"]
---

# AI-format raw recipe text into structured recipe

`POST /api/cookbook/format`

## Request

- Base URL: `https://api.rewritelifestyle.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.rewritelifestyle.ai/api/cookbook/format`
- Auth: HTTP bearer

## Request body

- FormatRecipeDto
  - `recipeText` string
  - `title` string
  - `description` string
  - `mealType` string
  - `servings` number

## Response `200`

- unknown

---

[API](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api.md) - [All operations](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/revisions/28695827f27a?raw)
