AI Quickstart
Machine-friendly workflow for Claude / Cursor. Principle: AI controls presentation. Ettajer controls commerce.
- Authenticate — OAuth (docs) or API key from
/dashboard/developer. SendAuthorization: Bearer …. GET /api/v1/context— understand the store (branding, products, collections, themes).GET /api/v1/themes/schema— learn allowed sections, settings, and reference shapes.POST /api/v1/themes— create a private draft ({ "name": "Atlas Editorial", "provider": "claude" }).POST /api/v1/themes/:id/pages— optional custom pages (not cart / checkout / products).POST /api/v1/themes/:id/sections— add hero, product-grid with realproductIds, etc.- Preview —
POST /api/v1/themes/:id/preview-tokenreturns a short-lived signed URL (/store/{slug}?preview=true&previewThemeId=…&previewToken=…). Same storefront renderer on home, product, collection, and custom pages; real catalog/cart/checkout. Merchant session also works without a token. - Merchant Customize opens
/dashboard/themes/editor?themeId=…and hydrates the visual editor from the draft. POST /api/v1/themes/:id/publish— requiresthemes:publish. Transactional. Cart/checkout stay Ettajer.
MCP
Same auth on POST /api/v1/mcp. Prefer tools get_context → get_theme_schema → create_theme → create_section → preview_theme → publish_theme.
Full docs: llms-full.txt