Store design
Manage your store's appearance through the API or an AI assistant connected through MCP. Start by reading the current design, then send only the values you want to change.
Choose what to change
| Area | What it controls | Start with |
|---|---|---|
| General design | Theme, main color, typography, mobile display and store-wide options | GET /store_themes/settings |
| Header and footer | Shared header/footer settings | GET /modules/global_settings/header or /footer |
| Page layouts | Settings for existing page types, such as category and product pages | GET /layouts |
| Modules and banners | Content blocks, images and their order | GET /modules |
| Custom code | Custom CSS/JS, saved versions and supported template files | Saved CSS/JS versions |
A layout is a page type, such as the homepage or category page. A module is a content block placed inside a layout, header or footer. An individual product or category still needs its own page ID when opening its URL.
Saving design settings, modules or banners changes the live store immediately. There is no separate publish step or draft preview for these operations. Review the proposed change before saving, then check the storefront in a browser on desktop and mobile.
Make a small change safely
- Read the current settings or module and keep a copy of the response.
- Select the existing layout, module or banner by its returned ID.
- Send only the fields you intend to change.
- Check the response for success and read the updated values again.
- Open the affected pages on desktop and mobile.
Fields left out of a partial update keep their saved values. For example, changing the mobile grid does not require resending your color, theme or font. If an option has never been saved, the API may return the existing theme defaults.
For the design, layout and global-settings endpoints below, both PUT and PATCH accept partial updates. Module updates also preserve omitted fields; the Modules and banners guide explains how nested settings and image lists behave.
General design
Read GET /store_themes/settings to get theme_id, color, theme_options, and the available themes and colors. Use the returned theme IDs rather than guessing them. Font choices are included as fonts when available.
Fields and example requests
To display two product columns on mobile, send PATCH /store_themes/settings:
Code(json)
To change only the main color, send:
Code(json)
The update response contains the resulting theme_id, color and theme_options. Available themes and colors are included on the read response.
| Field | Accepted value |
|---|---|
theme_id | An existing theme ID returned by the read endpoint |
color | Hex color, such as #369 or #336699 |
theme_options.mobile_grid | 1 or 2 |
theme_options.mobile_nav_style | side or bottom |
theme_options.type_contact | email or phone |
theme_options.theme_font | A supported font key; keep the current value unless intentionally changing typography |
theme_options.theme_mail | classic or dynamic |
theme_options.show_price_range | 0, 1 or 2 |
theme_options.product_images_hover | 1, 2, 3 or 4 |
Other supported options, such as search, sticky, top_bar, categories_bar, show_breadcrumbs and quick_view, accept boolean values. The API reference lists the supported keys. How an option appears depends on the active theme.
Header and footer
Read the shared settings with:
Settings and example request
GET /modules/global_settings/headerGET /modules/global_settings/footer
The response includes position, settings and allowed_modules. These settings are separate from the content modules placed in the header or footer.
To enable a sticky header, send PATCH /modules/global_settings/header:
Code(json)
Send the fields directly, without a settings wrapper.
| Position | Settings |
|---|---|
| Header | top_bar, sticky, search, categories_bar, flex_menu_display, overflow_menu: 0 or 1; type_contact: email or phone |
| Footer | bottom_bar: a list containing any of about_us, account, newsletter, customer_service |
A supplied bottom_bar replaces that list. Sending {"bottom_bar": []} clears it; leaving it out keeps the saved list.
Page layouts
Use GET /layouts to discover editable layouts. Each entry includes its layout_id, name, route, saved settings, allowed module codes and positions. GET /layouts/{layout_id} also includes the layout's modules and banners.
Supported settings and example request
When a layout points to a specific product, category or information page, url can be null. Use url_template and its entity_parameter, replacing the placeholder with a real page ID. Wildcard routes can have no direct URL.
To change a category layout's product limit, send PATCH /layouts/{layout_id}/settings with the ID returned for product/category:
Code(json)
Send settings directly, without a settings wrapper. Only settings supported by that page type are accepted for saving.
| Layout route | Editable settings |
|---|---|
product/category | subcategory_type (side/top/none), show_thumb, categories_mode, price_filter_status, brands_filter_status, filter_status, options_filter_status, bogo_filter_status, product_limit (3–300), sort (sales/p.viewed, or null) |
product/product | show_purchase_now_button, image_slider_infinite_loop |
product/search | price_filter_status, brands_filter_status, product_limit (3–300) |
product/special | price_filter_status, show_bogo_products, selected_bogo (IDs belonging to the store, or null) |
Switches accept 0 or 1. A supplied selected_bogo list replaces the saved list. Other layouts can still be read and contain modules, but may have no editable layout settings.
These endpoints manage existing layouts. Creating, duplicating or assigning new layouts is not available through them.
Modules and banners
Use the Modules and banners guide for creating content blocks, editing individual banner fields, moving modules and changing their order.
Example: hide a module
For example, hide one module with PATCH /modules/{layout_module_id}:
Code(json)
Its other settings and banners remain saved. To remove a banner, use the explicit banner delete endpoint; leaving a banner out of an update does not delete it.
Saved CSS/JS versions
Read saved versions of your custom CSS or JavaScript. Use version IDs returned for the same store and code type.
Response fields and examples
| Operation | Endpoint |
|---|---|
| List saved CSS versions | GET /store_themes/css/versions |
| List saved JS versions | GET /store_themes/js/versions |
| Read current or saved CSS | GET /store_themes/css |
| Read current or saved JS | GET /store_themes/js |
CSS reads require the themesCss permission; JS reads require themesJs. Authenticate with your API bearer token.
A versions list returns at most 30 available entries, newest saved date first, then highest ID. Each item contains only these fields:
Code(json)
The normal response envelope may also include request_id. version is the saved version number shown in the editor and equals version_id; it is not a sequential position in the list. Empty history returns response: []. Lists have no code content or pagination.
To read one version's content, use GET /store_themes/css?version_id=123 (or the matching JS path). The response keeps the existing shape:
Code(json)
Omitting version_id keeps the existing latest/current read behavior; no current code returns code: "". A supplied ID must be a non-empty positive integer. Invalid IDs and IDs missing from this store/code type return HTTP 422; they never silently select the latest version.
Reading a version does not activate it. In the editor, Use version loads that version into the editable draft; Save creates a new saved version and makes that saved content current. The existing PUT /store_themes/css and PUT /store_themes/js writes remain unchanged. Saved version history is separate from MCP snapshots and template-file backups.
Read versions through MCP
Use list_theme_versions with required kind (css or js), then pass a returned version_id to read_theme. Both are read-only. Omit version_id on read_theme for its existing current-code behavior.
Code(json)
Code(json)
list_theme_versions returns the metadata list in the API response envelope; read_theme returns its existing kind, code and bytes fields. Use the returned IDs for this store, rather than copying the example ID.
Use an AI assistant through MCP
Connect using the MCP connection guide. Your connection identifies the store automatically.
Tools, arguments and example request
A useful starting request:
Code(text)
| Task | MCP tools |
|---|---|
| Read/change general design | read_design_settings, update_design_settings |
| Discover layouts and read one | list_layouts, get_layout |
| Change page-type settings | update_layout_settings |
| Read/change header or footer | read_global_settings, update_global_settings |
| Read content modules | list_modules, get_module |
| Add/edit content | create_module, update_module |
| Move or reorder content | reorder_modules |
| Remove a module or banner | delete_module, delete_banner |
Example MCP call to change just the mobile grid:
Code(json)
MCP deletions require confirmed: true after you approve the exact module or banner. If a tool reports a missing OAuth scope, reconnect and grant the required permission.
MCP arguments
| Tool | Arguments |
|---|---|
read_design_settings, list_layouts | No required arguments |
get_layout | layoutId |
update_design_settings | payload containing only changed design fields |
update_layout_settings | layoutId, payload containing direct layout-setting fields |
read_global_settings | position: header or footer |
update_global_settings | position, payload containing direct header/footer fields |
list_modules | Optional layoutId, position, page and limit (1–100) |
get_module | layoutModuleId |
create_module | payload containing a complete new-module body |
update_module | layoutModuleId, payload containing only changed module fields |
reorder_modules | payload containing layout_id, sorted_modules and, when moving from another layout, layout_module_id |
delete_module | layoutModuleId, confirmed: true |
delete_banner | layoutModuleId, bannerImageId, confirmed: true |
Top-level MCP arguments use names such as layoutId; fields inside payload use the API names such as layout_id. Use your store's returned IDs, never the example IDs unchanged.
Authentication and API coverage
Use the base URL in this site's API reference. API requests use Authorization: Bearer YOUR_TOKEN; JSON writes also need Content-Type: application/json. Include a User-Agent header identifying your integration.
API permissions and MCP scopes
| Feature | API permission | MCP OAuth scopes |
|---|---|---|
| General design | themesModify | themes:read, themes:update |
| Layouts and global settings | themesModules | modules:read, modules:update |
| Modules and banners | themesModules | modules:read, modules:create, modules:update, modules:delete as needed |
Preview, backups and simultaneous edits
Editing and recovery guidance
- A storefront preview link shows the store's current state. It does not provide an isolated preview of these proposed changes.
- CSS/JS snapshots restore custom CSS/JS only. They do not restore design settings, layouts, modules or banners. Template files use separate file backups.
- Keeping read responses helps you put earlier values back through the matching update endpoints. It is not a full-store backup and cannot automatically recover deleted modules or banners.
- Partial updates preserve fields you leave out. There is no version check or
If-Matchsupport for these writes. If two people change the same field, the later save can overwrite it. Read again before saving and coordinate edits. - After a timeout, read the current state before retrying a write, especially module creation. The first request may already have completed.
Common errors
Status codes and next steps
| Status | What to do |
|---|---|
| 400 | Check the ordering request for duplicate IDs, invalid positions or a moved module missing from the order. Also check for repeated banner IDs. |
| 401 | Authenticate again. |
| 403 | Check permissions and access to the selected layout. |
| 404 | Read the module, layout or banner list again and use an ID belonging to this store. |
| 422 | Read the field errors and correct the supplied values. A theme update can also report a save failure. |
| 429 | Honor Retry-After when present; otherwise wait and use backoff. |
For support, include the response's request_id and the operation that failed. Never include your token.