API
Retrieve a specific generation
GET
/
pattern
/
{patternId}
/
generation
/
{snapshotIndex}
/
{generationId}
Authorizations
x-mp-api-key
string
headerrequiredPath Parameters
patternId
string
requiredThe unique ID of the pattern.
snapshotIndex
integer
requiredThe index of the snapshot in the pattern's history.
generationId
string
requiredThe unique ID of the generation.
Response
200 - application/json
id
string
Unique identifier for the generation.
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
sourceCode
string
Final code.
error
string | null
Error message if the generation failed.
previewJob
object
Was this page helpful?