Skip to main content
POST
/
v3
/
designs
/
{editorId}
/
prompts
Send a prompt
curl --request POST \
  --url https://api.magicpatterns.com/api/v3/designs/{editorId}/prompts \
  --header 'Content-Type: application/json' \
  --header 'x-mp-api-key: <api-key>' \
  --data '
{
  "prompt": "Add a footer with three columns of links."
}
'
{
  "requestId": "<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
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.