Skip to main content
POST
/
v3
/
designs
/
{editorId}
/
artifacts
Create a new artifact
curl --request POST \
  --url https://api.magicpatterns.com/api/v3/designs/{editorId}/artifacts \
  --header 'Content-Type: application/json' \
  --header 'x-mp-api-key: <api-key>' \
  --data '
{
  "sourceArtifactId": "<string>",
  "name": "Header tweaks"
}
'
{
  "artifactId": "<string>",
  "files": [
    "<string>"
  ]
}

Documentation Index

Fetch the complete documentation index at: https://magicpatterns.mintlify.dev/docs/llms.txt

Use this file to discover all available pages before exploring further.

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[]