Examples
Create a draft theme
POST /api/v1/themes
Authorization: Bearer etsk_live_…
{ "name": "Atlas Editorial", "provider": "claude" }Add a hero section
POST /api/v1/themes/{id}/sections
{
"templateKey": "home",
"sectionType": "hero",
"settings": { "headline": "New season", "ctaText": "Shop" }
}Preview then publish
GET /store/{slug}?preview=true&previewThemeId={id}
POST /api/v1/themes/{id}/publish # requires themes:publish