---
title: "Bakes a recipe"
method: POST
path: "/bake"
tags: ["Single Operations"]
---

# Bakes a recipe

`POST /bake`

Bake a recipe defined in JSON. For an example JSON recipe, build a recipe on  [CyberChef](https://gchq.github.io/CyberChef/) and click save. Select "clean JSON".

The Recipe property in the payload is designed so that you only need to provide arguments for operations if they are required, or you want to change them from the default. For more information on accepted recipe formats, see the [bake section of the Node API docs](https://github.com/gchq/CyberChef/wiki/Node-API#bake)

## Request body

- union
  - SingleOpRecipe
    - `input` string
    - `recipe` Operation
      - `op` string, required
      - `args` union
        - object[]
        - ArgObject
  - MultiOpRecipe
    - `input` string
    - `recipe` Operation[]
      - `op` string, required
      - `args` union
        - object[]
        - ArgObject

## Response `200`

Recipe baked successfully

- BakeResponse
  - `type` string
  - `value` union
    - string
    - number

## Other responses

- `400` — Bad request

## Changes

- **2025-02-26** `07f31d47280a` — 1 info
  - api tag `Single Operations` added
- **2024-08-01** `3f87085d6c08` — 5 breaking, 2 info
  - the request property `oneOf[#/components/schemas/MultiOpRecipe]/recipe/items/op` became required
  - the request property `oneOf[#/components/schemas/SingleOpRecipe]/recipe/op` became required
  - the `oneOf[#/components/schemas/MultiOpRecipe]/recipe/items/args/oneOf[#/components/schemas/ArgArray]/items/` request property type/format changed from ``/`` to `object`/``
  - the `oneOf[#/components/schemas/SingleOpRecipe]/recipe/args/oneOf[#/components/schemas/ArgArray]/items/` request property type/format changed from ``/`` to `object`/``
  - …3 more
- **2019-09-09** `204fc14f3aec` — 2 breaking, 2 info
  - the `oneOf[#/components/schemas/MultiOpRecipe]/recipe/items/args/oneOf[#/components/schemas/ArgArray]/items/` request property type/format changed from `string`/`` to ``/``
  - the `oneOf[#/components/schemas/SingleOpRecipe]/recipe/args/oneOf[#/components/schemas/ArgArray]/items/` request property type/format changed from `string`/`` to ``/``
  - added the non-success response with the status `400`
  - added the success response with the status `200`
- …earlier changes not shown

[Full history](https://skmtc.dev/gchq/apis/cyberchef-api/changes/bake/post.md)

---

[API](https://skmtc.dev/gchq/apis/cyberchef-api.md) · [All operations](https://skmtc.dev/gchq/apis/cyberchef-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gchq/cyberchef-api/revisions/6f033ed6592d/schema)
