Read artifact files
Artifacts
Read artifact files
Returns the contents of one or more files in an artifact. Files that don’t exist in the artifact are simply omitted from the response.
This endpoint uses POST (with a request body) rather than GET (with a
query string) so file names containing /, commas, or other special
characters don’t need URL encoding.
POST
Read artifact files
Authorizations
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
The design's editor ID.
Example:
"abc123"
The artifact ID.
Body
application/json
The file names to read.
Example:
["App.tsx", "index.css"]Response
Requested files.