---
title: "Start a cook operation"
method: POST
path: "/api/v1/cook"
tags: ["cook"]
---

# Start a cook operation

`POST /api/v1/cook`

Triggers a recipe cook on one or more sprouts. The request body
specifies the recipe path, target sprouts/cohorts, and options.

## Request body

- CookRequest — Request body for triggering a cook operation. The exact structure depends on the farmer implementation and may include fields like target (sprout IDs or cohort expression), recipe path, and test mode flag.

## Response `200`

Cook initiated

- unknown

## Other responses

- `400` — Bad request — missing or invalid parameters
- `502` — NATS communication error — farmer unreachable or returned an error

## Changes

- **2026-03-15** `1aab0676c2b4` — 1 breaking, 4 warning
  - the response's body type changed from `object` to no type for status `200`
  - removed the request property `action`
  - removed the request property `target`
  - removed the optional property `error` from the response with the `200` status
  - …1 more
- **2026-03-13** `26871a2f667f` — 1 breaking, 4 warning
  - the response's body type changed from `object` to no type for status `200`
  - removed the request property `action`
  - removed the request property `target`
  - removed the optional property `error` from the response with the `200` status
  - …1 more

[Change history](https://skmtc.dev/gogrlx/apis/grlx-cli-api/changes/api/v1/cook/post.md)

---

[API](https://skmtc.dev/gogrlx/apis/grlx-cli-api.md) · [All operations](https://skmtc.dev/gogrlx/apis/grlx-cli-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gogrlx/grlx-cli-api/revisions/1aab0676c2b4/schema)
