> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rawchunks.space/llms.txt
> Use this file to discover all available pages before exploring further.

# Compose through the editing route

> Generate a Code pattern with a JSON-only response.

Generate a Code pattern with a JSON-only response.

Use [request setup](https://docs.rawchunks.space/dev/guides/connect.md) for account headers.

## JSON body

Use the [Composer request fields](https://docs.rawchunks.space/dev/endpoints/strudel/compose.md#json-body), excluding `stream`.

## Response

**code** `string`

Validated pattern.

## Choose a route

Use [POST /api/strudel/](https://docs.rawchunks.space/dev/endpoints/strudel/compose.md) for graph details, rationale and streaming.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.