Skip to navigation

October 19, 2026

List pages with their element trees from the REST API

The List Pages endpoint now accepts include=elements, returning each page’s element tree alongside the page records.

GET /v6/pages?siteId={siteId}&include=elements
  • Opt-in: omit include and every page’s elements is null. include accepts only elements (any other value returns a 400).

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 List Pages.


October 15, 2026

Create regions in batches from the REST API

A new v1 endpoint creates many regions in one request.

POST /v1/regions/batch

Creates up to 1000 regions, each like Create Region. Each region is created on its own: the response has one result per region, in request order, and a region that fails does not stop the others.

[
{ "success": true, "data": { "object": "region", "id": "header", "version": 1, ... } },
{ "success": false, "error": { "code": "REGION_EXISTS", "message": "..." } }
]
  • Error codes: a failed region reports REGION_EXISTS, BASE_REGION_MISSING, INVALID_LOCALE, INVALID_ELEMENT_TREE, DUPLICATE_IN_BATCH, or INTERNAL_ERROR. Only INTERNAL_ERROR is worth retrying.
  • Default locale first: regions in the default locale are created before regions in site locales, so a region in a site locale may come before its default locale’s region in the same batch.

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 Create Regions.


October 13, 2026

Update and delete regions from the REST API

Two new v1 endpoints complete the region API: you can now replace a region’s element tree and delete a region.

PATCH /v1/regions/{id}?siteId={siteId}

Replaces a region’s element tree in one locale. The component type at the root of elements becomes the region’s type. Updating the default locale also updates the localized regions that inherit from it.

DELETE /v1/regions/{id}?siteId={siteId}

Deletes a region in one locale. Only the draft changes: the live site changes when you publish.

  • Region versions: every region response now includes version, which increases with every change to the region’s element tree.
  • Safe updates: pass the version from an earlier read to Update Region. If the region changed since, the request returns 409 and changes nothing. Leave version out to update the region regardless.

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 Update Region and Delete Region.


October 13, 2026

Delete typographies from the REST API

A new v4 endpoint lets you delete a site’s typography.

DELETE /v4/typographies/{id}

The delete is unconditional: Text elements that still reference the typography aren’t checked, so update them first if they should keep a style.

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 Delete Typography.


October 7, 2026

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.

GET /v1/regions?siteId={siteId}

Returns a site’s regions for one locale, with cursor-based pagination through limit (1–100, default 20) and startingAfter.

POST /v1/regions

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 /v1/regions/{id}?siteId={siteId}

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 locale parameter, as either a locale code like en-US or 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=elements to List Regions or Get Region to get each region’s element tree. Without it, elements is null.

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.
  • cacheKey renamed to classNamePrefix. The cacheKey prop on <RootStyleRegistry> is now classNamePrefix (default ms). 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> inside ReactRuntimeProvider:
src/pages/_app.tsx
<ReactRuntimeProvider runtime={runtime} siteVersion={siteVersion}>
<RootStyleRegistry>
<Component {...pageProps} />
</RootStyleRegistry>
</ReactRuntimeProvider>
  • New forceImportant prop. Set forceImportant on <RootStyleRegistry> to add !important to 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.


October 7, 2026

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.

GET /v4/typographies?siteId={siteId}

Returns a site’s typographies in position order, with cursor-based pagination through limit (1–100, default 20) and startingAfter.

POST /v4/typographies

Adds a typography to a site. siteId is required; name and style are optional.

GET /v4/typographies/{id}

Returns a single typography.

PATCH /v4/typographies/{id}

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: style is an array of { deviceId, value } entries. Each value can set fontFamily, fontSize ({ value, unit }), fontWeight, lineHeight, letterSpacing, textAlign, italic, underline, strikethrough, uppercase, and color.
  • Colors come from swatches: color.swatchId takes the id of 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. referenceId is the value a Text element’s typography prop 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.


October 1, 2026

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.

POST /v6/pages
PATCH /v6/pages/{pageIdOrPathname}
  • 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 type set to ./components/Root/index.js, a key (a UUID that’s unique within the tree), and props. This is the same shape that include=elements returns on Get Page.
  • Responses: Create Page and Update Page return elements: null. To read the tree after a write, call Get Page with include=elements.

Error response changes

  • A pathname that’s invalid or already in use now returns 400 instead of 409. A 400 is also returned for an invalid element tree.
  • Create Page returns 404 if the site doesn’t exist. Update Page returns 404 if 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.


September 29, 2026

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.

GET /v4/swatches?siteId={siteId}

Returns a site’s swatches, with cursor-based pagination through limit (1–100, default 20) and startingAfter.

POST /v4/swatches

Adds a swatch to a site. siteId, hue, saturation, and lightness are required; name is optional.

GET /v4/swatches/{id}

Returns a single swatch.

PATCH /v4/swatches/{id}

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 /v4/swatches/{id}

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.


September 28, 2026

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.