Skip to main content
POST
Create a new artifact

Authorizations

x-mp-api-key
string
header
required

Magic Patterns API key. The same key authenticates v3 REST and the MCP server. Create one at https://www.magicpatterns.com/settings/api-keys.

Path Parameters

editorId
string
required

The design's editor ID.

Example:

"abc123"

Body

application/json
sourceArtifactId
string
required

The artifact ID to clone from (usually the current active artifact).

name
string
required

A name for this artifact version, shown in the design timeline.

Example:

"Header tweaks"

Response

New artifact created and set as active.

artifactId
string
files
string[]