Skip to main content
POST
Read artifact files

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"

artifactId
string
required

The artifact ID.

Body

application/json
fileNames
string[]
required

The file names to read.

Example:

Response

Requested files.

files
object[]