Manage regions from the REST API
Three new v1 endpoints let you create, list, and read a site’s regions, including their element trees, from the REST API.
List Regions
Returns a site’s regions for one locale, with cursor-based pagination through limit (1–100, default 20) and startingAfter.
Create Region
Creates a region in one locale. siteId, id, name, and elements are required. The component type at the root of elements becomes the region’s type. Returns 409 if the region already exists.
Get Region
Returns a single region in one locale. URL-encode the id if it contains reserved characters such as /.
- You choose the ID: Makeswift doesn’t generate region IDs. You assign the ID (for example,
site-header), and it must be unique within a site and locale. - One locale per request: all three endpoints accept a
localeparameter, as either a locale code likeen-USor a site locale UUID. If you leave it out, the request uses the site’s default locale. A region has to exist in the default locale before you can create it in another locale. - Element trees are optional: pass
include=elementsto List Regions or Get Region to get each region’s element tree. Without it,elementsisnull.
The region endpoints are in beta and may change. Requests return 403 until the feature is enabled for your site or workspace. To opt in, contact support: support@makeswift.com.
For details, see List Regions, Create Region, and Get Region.
Runtime v0.29.0
@makeswift/runtime v0.29.0 fetches snapshots faster and rebuilds how Makeswift generates CSS and applies style updates. It also has breaking changes that may require updates to your host.
- React 19 required. Your host must run React 19. Next.js hosts must be on Next.js 15 or later.
cacheKeyrenamed toclassNamePrefix. ThecacheKeyprop on<RootStyleRegistry>is nowclassNamePrefix(defaultms). Use it to set a custom prefix for Makeswift-generated CSS class names.<RootStyleRegistry>required for Pages Router. Pages Router hosts must now wrap their content in<RootStyleRegistry>insideReactRuntimeProvider:
- New
forceImportantprop. SetforceImportanton<RootStyleRegistry>to add!importantto Makeswift-generated CSS declarations, so they win when your site’s own CSS conflicts with them.
For migration steps, see the v0.29.0 upgrade guide. For component details, see the <RootStyleRegistry> reference.
Manage site typographies from the REST API
Four new v4 endpoints let you create, read, and update a site’s typographies (the text styles in the Visual Builder) from the REST API.
List Typographies
Returns a site’s typographies in position order, with cursor-based pagination through limit (1–100, default 20) and startingAfter.
Create Typography
Adds a typography to a site. siteId is required; name and style are optional.
Get Typography
Returns a single typography.
Update Typography
Changes a typography’s name or style. Omitted fields keep their current values. When you send style, it replaces the full per-device array, so entries for individual devices aren’t merged. A / in the name nests the typography in a group, so renaming H1 to Headings / H1 moves it into the Headings group.
- Per-device styles:
styleis an array of{ deviceId, value }entries. Eachvaluecan setfontFamily,fontSize({ value, unit }),fontWeight,lineHeight,letterSpacing,textAlign,italic,underline,strikethrough,uppercase, andcolor. - Colors come from swatches:
color.swatchIdtakes theidof an existing swatch, so create the swatch first with the Swatch API.color.alpha(0–1) sets opacity. - Two IDs: the typography endpoints use
id.referenceIdis the value a Text element’stypographyprop uses in a page’s element tree, so use it to find a typography in page content.
The typography endpoints are in beta and may change. Requests return 403 until the feature is enabled for your site or workspace. To opt in, contact support: support@makeswift.com.
For details, see List Typographies, Create Typography, Get Typography, and Update Typography.
Write a page’s element tree from the REST API
The Create Page and Update Page endpoints now accept an optional elements field, so you can set a page’s element tree when you create or update the page.
- Create: if you leave out
elements, the page starts with an empty root. - Update: if you send
elements, it replaces the page’s entire tree. - Tree shape: the root node has
typeset to./components/Root/index.js, akey(a UUID that’s unique within the tree), andprops. This is the same shape thatinclude=elementsreturns on Get Page. - Responses: Create Page and Update Page return
elements: null. To read the tree after a write, call Get Page withinclude=elements.
Error response changes
- A pathname that’s invalid or already in use now returns
400instead of409. A400is also returned for an invalid element tree. - Create Page returns
404if the site doesn’t exist. Update Page returns404if the page or its site doesn’t exist.
The elements field is in beta and may change. Requests that send it return 403 until the feature is enabled for your site or workspace. To opt in, contact support: support@makeswift.com.
For details, see Create Page and Update Page.
Manage site swatches from the REST API
Five new v4 endpoints let you create, read, update, and delete a site’s colors from the REST API.
List Swatches
Returns a site’s swatches, with cursor-based pagination through limit (1–100, default 20) and startingAfter.
Create Swatch
Adds a swatch to a site. siteId, hue, saturation, and lightness are required; name is optional.
Get Swatch
Returns a single swatch.
Update Swatch
Changes a swatch’s name, hue, saturation, or lightness. Omitted fields keep their current values. Swatches are grouped by name prefix, so renaming White to Neutrals / White moves the swatch into the Neutrals group.
Delete Swatch
Removes a swatch.
Each swatch stores its color as HSL values: hue (0–360), saturation (0–100), and lightness (0–100).
The GET apis both provide id and referenceId for each swatch returned. All 5 endpoints above use id. referenceId is the value that appears as swatchId in a page’s element tree (GET /v6/pages/:id?include=elements). Use it as a reference to find swatches in page content.
The swatch endpoints are currently in beta and may change. Requests return 403 until the feature is enabled for your site or workspace. To opt-in, please contact support: support@makeswift.com.
For details, see List Swatches, Create Swatch, Get Swatch, Update Swatch, and Delete Swatch.
Docs MCP Server: clearer scope and Claude Code setup
Thanks to user feedback, the page for connecting AI tools to the Makeswift docs is now Docs MCP Server, says up front what the server does, and clarifies the Claude Code setup instructions.
- Docs search only. The server lets your agent search and reference the documentation. It has no access to your sites, pages, or workspace settings. To work with site data, use the Makeswift API.
- Claude Code setup in three steps. Copy, run, confirm, with the single-project and every-project (
--scope user) commands shown side by side so you pick before you run. - Buttons described accurately. Connect to Cursor installs the server directly. Connect to Claude Code copies the install command for you to paste.
Read a page’s element tree from the REST API
The Get Page endpoint now accepts include=elements, returning the page’s full element tree alongside the page record.
- Opt-in — omit
includeandelementsisnull.includeaccepts onlyelements(any other value returns a400). - Respects existing resolution — the returned tree honors the same
localeandversionRefparameters as the endpoint.?locale=returns the localized tree;?versionRef=ref:livereturns the published tree (default isref:draft). - Tree shape — each node has a
type, akey(a UUID unique within the tree), andprops. Nested elements live insideprops, at any depth.
include=elements is in beta and may change. Requests that pass it return 403 until the feature is enabled for your site or workspace. To opt in, contact support: support@makeswift.com.
For details, see the include parameter on Get Page.
Navigation Sidebar updates
The Navigation Sidebar has been reorganized around a split pane that shows your pages and the Elements Panel at the same time, and you can now sort elements directly in the Elements Panel.

- Split pane for pages and elements — pages and the Elements Panel share the sidebar, so you can move between pages and inspect the structure of the current page without switching panels.
- Settings in the site switcher — workspace and site settings have moved into the site switcher menu at the top of the sidebar.
- Files manager button — files open from the button beside the Content and Design tabs.
- Updated Help button — the ? button in the bottom left now opens Contact support, View docs, Shortcuts, and the updated Diagnostics dialog for gathering diagnostic information.
- Sort elements in the Elements Panel — drag an element in the Elements Panel to reorder it within its parent, without dragging it on the Canvas.
For details, see The basics.
Sort elements using keyboard arrows
Select an element in the Canvas or Elements Panel in the left sidebar and press an arrow key to move it within its parent, without dragging it.
- Left and right — reorder an element with its direct siblings in the same Box or Slot row.
- Up and down — move an element between rows, when it sits in a row by itself and the adjacent row above or below also holds a single element.
- Scoped to the parent — arrow keys move an element within its Box or Slot only.
Resource References in the Visual Builder
Some resource changes affect more than one page. Resource References show all of the places a resource is used, so you can add, edit, and delete resources with confidence.

- Supported resources: colors, text styles, files, and global components.
- Usage count in context: a Used in n place(s) item appears in the resource’s Action Menu (⋯), or in a color or text style’s edit panel.
- Pages and regions: the submenu lists the pages using the resource, plus the regions using it. Click a page to navigate to it; regions are listed for reference only, since they can be shared across multiple pages.
- Locale aware: expand a page to see which locales use the resource, and navigate straight to that page in a specific locale.
References are tracked through pages and regions, not through global components or text styles. A color that is used inside a global component that is used on 3 pages will report as being used on 3 pages. If that global component is not used on any pages or regions, the color will show no resource references.
For details, see Resource References.