GET
/
pattern
/
{patternId}
/
generation
/
{snapshotIndex}
/
{generationId}

Authorizations

x-mp-api-key
string
header
required

Path Parameters

patternId
string
required

The unique ID of the pattern.

snapshotIndex
integer
required

The index of the snapshot in the pattern's history.

generationId
string
required

The unique ID of the generation.

Response

200 - application/json
error
string | null

Error message if the generation failed.

id
string

Unique identifier for the generation.

previewJob
object
sourceCode
string

Final code.

status
enum<string>

Status of the generation process.

Available options:
NOT_STARTED,
GENERATING,
ERROR,
COMPLETE
type
enum<string>

Type of generation.

Available options:
NEW,
UPDATE