Skip to main content
POST
Send a prompt

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
prompt
string
required

Natural language description of the change to make.

Example:

"Add a footer with three columns of links."

Response

Prompt accepted. Generation runs in the background.

requestId
string

Opaque identifier for this generation run.