Storefront themes

Ask AI for a new version of one theme file, checked like an upload (nothing is saved)

POST
/v1/stores/{storeId}/storefront/themes/{themeId}/ai-code

Authorization

AuthorizationBearer <token>

API key from Settings → API keys

In: header

Path Parameters

storeId*string
themeId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/v1/stores/string/storefront/themes/string/ai-code" \  -H "Content-Type: application/json" \  -d '{    "path": "string",    "content": "string",    "instruction": "string"  }'
{  "content": "string",  "summary": "string",  "changed": true,  "model": "string",  "costUsd": 0}