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

# Resolve a Composer graph

> Inspect the musical routing for a request without generating code.

Inspect the musical routing for a request without generating code.

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

## JSON body

**prompt** `string` *required*

Nonempty musical request.

**songId** `string`

Saved project to supply metadata.

**currentCode** `string`

Existing pattern to transform.

**bpm** `number`

30 to 300.

**keyScale** `string`

For example, A minor.

**stylePrompt** `string`

Song style.

**timeSignature** `string`

For example, 4/4.

**selectedTrack** `string`

Reference track name.

**selection** `object`

Nonnegative `start`, `end` in seconds; optional `trackId`.

**playhead** `number`

Nonnegative position in seconds.

**stems** `string[]`

Active stem names.

**tracks** `object[]`

Each requires `id`, `name`, `type`; optional boolean `muted`, `solo`.

**songContext** `string`

Context, at most 4,000 characters. Takes precedence over the aliases.

**musicalContext** `string`

Context alias, at most 4,000 characters.

**musical\_context** `string`

Second context alias, at most 4,000 characters.

**stream** `boolean`

Enable NDJSON. `Accept: application/x-ndjson` also enables it.

## Response

**intent** `string`

`compose` or `transform`.

**targetLayers** `string[]`

`drums`, `bass`, `chords`, `arp`.

**mountedLibraries** `string[]`

Library slices selected for this request.

**archetypeId** `string`

Selected genre reference.

**archetypeLabel** `string`

Selected genre reference.

**refRole** `string`

`drums`, `bass`, `vocals`, `keys`, `master`.

**sectionNode** `string`

`intro`, `verse`, `build`, `drop`, `breakdown`.

**estimatedTokens** `integer`

Character-based estimate of the prepared messages.

**theory** `object`

Key, scale notes, bass roots, chord symbols, voicings, chord map and four-bar reference patterns.

**messages** `object[]`

Prepared `role` and `content` messages.

## Use the result

The response returns `estimatedTokens` with the routing and prepared messages. `stream` has no effect here. See [Composer](https://docs.rawchunks.space/ai-ml/composer.md#route-before-calling-the-model).


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