---
title: "Read the markup of a recipe"
method: GET
path: "/api/recipes/{id}/markup"
tags: ["Recipes"]
---

# Read the markup of a recipe

`GET /api/recipes/{id}/markup`

## Request

- Base URL: `https://trmnl.com`
- URL: `https://trmnl.com/api/recipes/{id}/markup`
- Auth: HTTP bearer

A starting point for a private plugin of your own; writeMarkup takes each size.

## Path parameters

- `id` integer, required

## Query parameters

- `sizes` string

## Response `200`

Success

- object
  - `data` object
    - `id` integer
    - `name` string
    - `strategy` string, nullable
    - `custom_fields` object[]
    - `markups` object: Markup by size

## Other responses

- `401`: Unauthorized
- `404`: Not a published recipe
- `422`: A size that does not exist

---

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