> ## 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.

# Validate a Code pattern

> Clean a pattern and check supported Rawchunks notation.

Clean a pattern and check supported Rawchunks notation.

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

## JSON body

**code** `string`

Pattern to check. Omitted input becomes an empty string.

## Response

**cleaned** `string`

Pattern after cleanup.

**valid** `boolean`

Whether the notation passes validation.

**error** `string`

Validation problem when invalid.

## Playback

Validation checks notation and supported methods. Use the client parser and audio engine to schedule the result. [Composer integration](https://docs.rawchunks.space/dev/guides/edit/strudel.md).


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