Skip to content
Kaizena FlowDocs
Search

Search the docs

Website

The owner MCP's tools for the store's website.

ToolWhat it doesGatePermission
draft_storeDraft storenonewebsite:write
list_pagesList pagesnonewebsite:read
get_pageGet pagenonewebsite:read
list_page_buildsList page buildsnonewebsite:read
build_pageBuild pagenonewebsite:write
cancel_page_buildCancel page buildnonewebsite:write
edit_pageEdit pagenonewebsite:write
get_menusGet menusnonewebsite:read
set_header_footerSet header footerpublicwebsite:write
draft_header_footerDraft header footernonewebsite:write
use_header_footerUse header footerpublicwebsite:write
publish_pagePublish pagepublicwebsite:write
list_formsList formsnonewebsite:read
make_formMake formnonewebsite:write
change_formChange formpublicwebsite:write
place_formPlace formnonewebsite:write
get_brandGet brandnonewebsite:read
set_brandSet brandnonewebsite:write
make_brand_marksMake brand marksnonewebsite:write
look_at_pageLook at pagenonewebsite:read
look_at_storeLook at storenonewebsite:read
get_page_lookGet page looknonewebsite:read
set_page_placeSet page placepublicwebsite:write
save_menuSave menupublicwebsite:write
list_blogsList blogsnonewebsite:read
blog_commentsBlog commentsnonewebsite:read
moderate_blog_commentModerate blog commentpublicwebsite:write
schedule_articleSchedule articlepublicwebsite:write
list_scheduled_changesList scheduled changesnonewebsite:read
schedule_site_changeSchedule site changepublicwebsite:write
list_content_typesList content typesnonewebsite:read
list_entriesList entriesnonewebsite:read
get_entryGet entrynonewebsite:read
save_entrySave entrynonewebsite:write
publish_entryPublish entrypublicwebsite:write
unpublish_entryUnpublish entrypublicwebsite:write
save_content_typeSave content typepublicwebsite:write
list_themesList themesnonewebsite:read
add_themeAdd themenonewebsite:write
design_lookDesign looknonewebsite:write
try_themeTry themenonewebsite:read
make_theme_liveMake theme livepublicwebsite:write
redirect_overviewRedirect overviewnonewebsite:read
add_redirectAdd redirectpublicwebsite:write
unpublish_pageUnpublish pagepublicwebsite:write

Draft store

draft_store

Drafts the store from one description (D351): a front page and up to three more pages built by the page studio as DRAFTS in the background (a minute or two each, with pictures after), and, when you name one from list_themes, a free theme added to the library without going live. The owner reads them on Home's Your drafts card, changes what they like and publishes them with one press there (which also makes the first the front page, puts the others in the header's menu and makes the theme live). Nothing is on the site before that. One draft at a time. Give only facts the owner gave; never a price.

  • Gate: none: it runs when called

  • Permission: website:write

  • Scope: website:write

  • Hints: none

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
descriptionstring, 10 to 1,500 charactersyesWhat the store is, sells and stands for, in the owner's words.
frontobjectyesThe front page: what it is for and what it must say.
front.purposestring, 1 to 1,000 charactersyes
front.key_pointslist of string, 1 to 400 characters, at most 12 itemsno, default []
pageslist of objects, at most 3 itemsno, default []Up to three more pages (About us, Contact, a service page), each with its title and purpose.
pages[].titlestring, 1 to 200 charactersyes
pages[].purposestring, 1 to 1,000 charactersyes
factslist of string, 1 to 400 characters, at most 20 itemsno, default []Facts the owner gave that the pages may state; never a price.
themestring (uuid)noA free theme's id from list_themes, added to the library (not live until the drafts are published).
presetstring, 1 to 40 charactersnoOne of that theme's presets.

List pages

list_pages

The store's pages or blog articles: title, address and whether they are published.

  • Gate: none: it runs when called

  • Permission: website:read

  • Scope: website:read

  • Hints: read-only, idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
typeone of page, articleno, default "page"

Get page

get_page

One page or article as its draft stands: its texts by key (title, search texts, each heading, text, button and caption, with its longest length), its rows in order by id and number with the parts they hold (an empty picture says so), whether it is on the site, what publishing it would still need (the accessibility checker's problems) and its pictures still being made. Read it before edit_page.

  • Gate: none: it runs when called

  • Permission: website:read

  • Scope: website:read

  • Hints: read-only, idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
pagestring, 1 to 200 charactersyesThe page's id, or its address (slug) as list_pages gives it.
typeone of page, articleno, default "page"A page, or a blog article.

List page builds

list_page_builds

The pages build_page was asked to build, most recent first: being built, built as a draft (with its page and editor link, and what the AI left out and why) or not built (with why), and how its pictures are coming along.

  • Gate: none: it runs when called

  • Permission: website:read

  • Scope: website:read

  • Hints: read-only, idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
limitinteger, 1 to 20no, default 5How many at most (1–20).

Build page

build_page

Builds a new page as a DRAFT with the page studio, from a brief: it plans the sections from the builder's designs, writes each in the site's language, checks every word with the claims filter and saves the draft; pictures are made one at a time after, by the site's picture model. It runs after your answer and takes a minute or two: say so, and use list_page_builds to see when it is done. Give only facts the owner gave you (what they offer, how they work, opening hours, a video's address): the page states nothing else but the site's own, never a price. When list_page_builds says it is done, look at it with look_at_page and fix what it finds with edit_page; publish it with publish_page once the owner has seen it.

  • Gate: none: it runs when called

  • Permission: website:write

  • Scope: website:write

  • Hints: none

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
titlestring, 1 to 200 charactersyesThe page's title, as the owner would name it.
purposestring, 1 to 1,000 charactersyesWhat the page is for, in a sentence or two.
audiencestring, at most 500 charactersno, default ""Who it is for.
key_pointslist of string, 1 to 400 characters, at most 12 itemsno, default []What it must say, point by point.
factslist of string, 1 to 400 characters, at most 20 itemsno, default []Facts the owner gave that the page may state (what they offer, how they work, opening hours, a YouTube or Vimeo address for a video): only these and the site's own are written. Never invent one, and never a price.
sectionslist of string, 1 to 300 characters, at most 12 itemsno, default []Sections the owner asked for, if any (the AI plans them otherwise).
call_to_actionstring, at most 300 charactersno, default ""What visitors should do next.
tonestring, at most 300 charactersno, default ""How it should sound.
picturesbooleanno, default trueWhether the page has pictures made by the site's picture model, one at a time after it is built.
picture_stylestring, at most 500 charactersno, default ""What the pictures should show and look like.

Cancel page build

cancel_page_build

Stops a page build_page started, by its id from list_page_builds, when the owner no longer wants it: one still waiting is not built, and one being built that moment is stopped and its unfinished draft deleted, so nothing of it is left. One already built is not undone: say its draft stays in Pages, to delete there or with the owner.

  • Gate: none: it runs when called

  • Permission: website:write

  • Scope: website:write

  • Hints: destructive, idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
buildstring (uuid)yesThe build's id, from build_page or list_page_builds.

Edit page

edit_page

Changes a page's DRAFT, saved as the builder saves it with a version kept: set a text by its key from get_page, replace words everywhere on the page, add a section in one of the page studio's designs (its words written from your brief and the owner's facts, its picture made after), remove a row or move one. Several changes are made in order and saved together; one that cannot be made refuses them all, with why. Words in parts shared with other pages are changed in the builder. A page on the site stays as it is there until publish_page. After a change that moves things about, look at it again with look_at_page.

  • Gate: none: it runs when called

  • Permission: website:write

  • Scope: website:write

  • Hints: none

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
pagestring, 1 to 200 charactersyesThe page's id, or its address (slug) as list_pages gives it.
typeone of page, articleno, default "page"A page, or a blog article.
changeslist of shapes, 1 to 20 itemsyesThe changes, made in this order and saved together as the page's draft.

changes[] when do is set_text

FieldTypeRequiredDescription
changes[].do"set_text"yes
changes[].keystring, 1 to 200 charactersyesThe text's key, as get_page gives it (title, seo.description, block.{id}.text, …).
changes[].textstring, at most 20,000 charactersyesThe new words. A rich text takes paragraphs with a blank line between, lines starting "- " for a list, **bold** and [words](/address) for a link to the site's own address.

changes[] when do is replace

FieldTypeRequiredDescription
changes[].do"replace"yes
changes[].findstring, 1 to 200 charactersyesWords to find in every text of the page.
changes[].replacestring, at most 200 charactersyesWhat to put in their place.
changes[].match_casebooleanno, default false
changes[].whole_wordsbooleanno, default false

changes[] when do is add_section

FieldTypeRequiredDescription
changes[].do"add_section"yes
changes[].patternone of hero, features, checklist, textImage, text, steps, faq, tabs, products, articles, reviews, gallery, video, callToActionyesThe design: hero (Opening), features (Features), checklist (Checklist), textImage (Text and picture), text (Text), steps (Steps), faq (Questions and answers), tabs (Tabs), products (Products), articles (Articles), reviews (Google reviews), gallery (Pictures), video (Video), callToAction (Call to action). An opening (hero) only as the first row.
changes[].variantstring, at most 40 charactersno
changes[].namestring, 1 to 80 charactersyesWhat the section is called, for the owner.
changes[].briefstring, 1 to 1,500 charactersyesWhat it says: the AI writes its words from this, the facts and the page.
changes[].factslist of string, 1 to 400 characters, at most 20 itemsno, default []Facts the owner gave for it (as build_page's).
changes[].atinteger, 1 to 50noIts place among the rows, as get_page numbers them (1 is the top); at the end when left out.
changes[].pictureobjectnoIts picture, for the designs that have one.
changes[].picture.promptstring, 10 to 1,500 charactersyesWhat the picture shows, as a photographer's brief, in English, with no words or logos in it.
changes[].picture.altstring, 3 to 300 charactersyesWhat it shows, in one short sentence in the page's language.
changes[].pictureslist of objects, at most 4 itemsnoA gallery's pictures.
changes[].pictures[].promptstring, 10 to 1,500 charactersyesWhat the picture shows, as a photographer's brief, in English, with no words or logos in it.
changes[].pictures[].altstring, 3 to 300 charactersyesWhat it shows, in one short sentence in the page's language.
changes[].linkslist of string, at most 500 characters, at most 2 itemsnoAddresses its buttons go to: only the site's own.
changes[].categorystring, at most 100 charactersnoA product grid's category, by its address (slug).

changes[] when do is remove_row

FieldTypeRequiredDescription
changes[].do"remove_row"yes
changes[].rowstring, 1 to 100 charactersyesThe row's id, as get_page gives it.

changes[] when do is move_row

FieldTypeRequiredDescription
changes[].do"move_row"yes
changes[].rowstring, 1 to 100 charactersyesThe row's id, as get_page gives it.
changes[].tointeger, 1 to 50yesIts new place, 1 being the top.

Get menus

get_menus

The site's menus: each one's links in order (words in the main language, where each goes, how deep) and where it is shown (the standard header or footer, or the pages that hold a menu component); and which menus the standard header and footer show. Read it before save_menu or set_header_footer.

  • Gate: none: it runs when called

  • Permission: website:read

  • Scope: website:read

  • Hints: read-only, idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.

set_header_footer

Chooses which of the site's menus the standard header and footer show, and its logo (and the logo for dark backgrounds) from the media library, as Header and footer saves them; anything left out stays as it is. Needs the owner's approval. It is not done from here: it is kept for the owner to approve in Kaizena Flow's admin.

  • Gate: public: Changes what the site shows

  • Permission: website:write

  • Scope: website:write

  • Hints: idempotent

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
header_menustring, 1 to 80 characters or nullnoThe menu the standard header shows, by id or name; null for none; left out to keep it.
footer_menustring, 1 to 80 characters or nullnoThe menu the standard footer shows, as header_menu.
logostring, 1 to 1,000 characters or nullnoThe logo's address in the media library; null for none (the site's name shows); left out to keep it.
logo_darkstring, 1 to 1,000 characters or nullnoThe logo for dark backgrounds, as logo.
iconstring, 1 to 1,000 characters or nullnoThe site's icon in browser tabs: a square picture of at least 256 pixels from the media library (make_brand_marks makes one); null for the standard icon; left out to keep it.

draft_header_footer

Drafts a header or footer of the site's own (D351): the standard one's parts (logo, menu, search and cart, or the business details, cookies and withdrawal links), arranged as asked, showing one of the site's menus, in a section style of the live theme. Saved as a DRAFT the owner can open and change in the builder; the site keeps its header and footer until use_header_footer.

  • Gate: none: it runs when called

  • Permission: website:write

  • Scope: website:write

  • Hints: none

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
kindone of header, footeryes
lookone of standard, centred, columns, simplenoA header: standard (logo left, menu, tools right) or centred (menu left, logo in the middle). A footer: columns or simple (one column).
menustring, 1 to 80 charactersnoThe menu it shows, by id or name from get_menus; the standard one's when left out.
section_stylestring, 1 to 40 charactersnoOne of the live theme's section styles (plain, hero, feature, muted, contrast, quote, or the theme's own), for its colours; plain when left out.
titlestring, 1 to 120 charactersnoIts name in the builder.

use_header_footer

Makes one of the site's own headers or footers the one the site shows (publishing its draft first), or goes back to the standard one, as Header and footer chooses it. Needs the owner's approval. It is not done from here: it is kept for the owner to approve in Kaizena Flow's admin.

  • Gate: public: Changes what the site shows

  • Permission: website:write

  • Scope: website:write

  • Hints: idempotent

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
kindone of header, footeryes
pagestring, 1 to 200 charactersyesThe header's or footer's id (draft_header_footer gives it), or standard to go back to the standard one.

Publish page

publish_page

Publishes a page's or article's draft, as the builder's Publish does. Refused while the page has problems the accessibility checker blocks on (fix them with edit_page first; the owner can publish past them in the builder) or while it is in a running A/B test. Needs the owner's approval. It is not done from here: it is kept for the owner to approve in Kaizena Flow's admin.

  • Gate: public: Changes what the site shows

  • Permission: website:write

  • Scope: website:write

  • Hints: idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
pagestring, 1 to 200 charactersyesThe page's id, or its address (slug) as list_pages gives it.
typeone of page, articleno, default "page"A page, or a blog article.

List forms

list_forms

The site's forms (D705), as Website → Forms lists them: each one's name, kind (message form or newsletter sign-up), whether it is archived, how many questions it asks, how many responses it has and how many are new, the pages that show it, and whether it takes answers (it needs an address to send to). templates: true also lists the templates a new form can be made from. Read-only.

  • Gate: none: it runs when called

  • Permission: website:read

  • Scope: website:read

  • Hints: read-only, idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
templatesbooleanno, default falseAlso list the templates a new form can be made from (Kaizena Flow's, the store's own and shared ones).

Make form

make_form

Makes a form from a template (list_forms with templates: true: Contact, Quote request, Booking enquiry, Call me back, Feedback, Event registration, Newsletter, and the site's own), in the site's languages, sending to the site's own address, as New form does. It shows nowhere until a page places it (place_form). Never make a form the owner did not ask for.

  • Gate: none: it runs when called

  • Permission: website:write

  • Scope: website:write

  • Hints: none

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
templatestring, 1 to 200 charactersyesThe template's name or id as list_forms gives it with templates: true, such as Contact, Quote request or Newsletter. A form is always made from one.
namestring, 1 to 80 charactersnoThe owner's name for the new form. Left out: the template's name.

Change form

change_form

Changes a form, saved as its editor saves it: its name, its questions (whole and in order), the addresses its messages are emailed to (only addresses the owner gave), its button's words or its thank-you message. Only what is given changes. A page that shows it shows the change at once, so it needs the owner's approval. It is not done from here: it is kept for the owner to approve in Kaizena Flow's admin.

  • Gate: public: Changes what the site shows

  • Permission: website:write

  • Scope: website:write

  • Hints: none

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
formstring, 1 to 200 charactersyesThe form: its name as list_forms gives it (a part of it is enough when only one form has it), or its id.
namestring, 1 to 80 charactersnoA new name for the owner's list; never shown on the site.
questionslist of objects, 1 to 20 itemsnoA message form's questions, whole and in order: what it asks from now on. A question kept as it was keeps its words in other languages.
questions[].kindone of name, email, phone, text, textarea, select, radio, checkbox, checklist, number, date, hidden, fileyesname, email, phone, text (one line), textarea (a message), select (a dropdown), radio (one choice), checkbox (one tick), checklist (any of the choices), number, date, hidden (never asked: keeps a part of the page's address, such as a campaign) or file (one picture or PDF the visitor attaches).
questions[].labelstring, at most 200 charactersno, default ""The question, in the site's main language. Left empty for name, email, phone and textarea: the usual words in the visitor's language.
questions[].requiredbooleanno, default false
questions[].choiceslist of string, 1 to 200 characters, at most 20 itemsnoThe choices of a select, radio or checklist question, in order.
questions[].helpstring, at most 200 charactersnoA line of help under the question.
questions[].paramstring, matching ^[A-Za-z0-9_.-]{1,64}$noA hidden question's part of the address, such as utm_campaign (the default) or code. Only for hidden; its label names it in the responses.
recipientslist of string (email), at most 254 characters, 1 to 5 itemsnoWhere its messages are emailed, whole: only addresses the owner gave.
buttonstring, at most 60 charactersnoThe button's words; empty: the usual words.
thanksstring, at most 1,000 charactersnoWhat visitors read after sending; empty: the usual words.

Place form

place_form

Puts a form on a page's DRAFT with the Form component, as a row of its own (at the end, or at a row number), saved as the builder saves it. The site shows the page as it was until it is published (publish_page, the owner's yes first).

  • Gate: none: it runs when called

  • Permission: website:write

  • Scope: website:write

  • Hints: none

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
formstring, 1 to 200 charactersyesThe form: its name as list_forms gives it (a part of it is enough when only one form has it), or its id.
pagestring, 1 to 200 charactersyesThe page: its id, or its address (slug) as list_pages gives it.
atinteger, 1 to 100noThe row it goes in as, counted from the top (1 is first). Left out: the end of the page.

Get brand

get_brand

The brand set down in words: its tagline, how it speaks, who it is for, what it stands for and the words it never uses. Read it before writing pages, products, emails or answers to customers, and write in that voice.

  • Gate: none: it runs when called

  • Permission: website:read

  • Scope: website:read

  • Hints: read-only, idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.

Set brand

set_brand

Keeps the brand in words: a tagline customers may see (no claims the business cannot show), its voice, its audience, up to five values and up to ten words to avoid. Only the fields given change. Only staff see it, except the tagline where the store shows it.

  • Gate: none: it runs when called

  • Permission: website:write

  • Scope: website:write

  • Hints: idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
taglinestring, at most 120 charactersnoA short line customers may see beside the store's name. No claims (best, cheapest, green) the store cannot show.
voicestring, at most 600 charactersnoHow the brand speaks: tone, sentence length, formality, what it sounds like and what it never sounds like.
audiencestring, at most 400 charactersnoWho the business is for, in plain words.
valueslist of string, 1 to 40 characters, at most 5 itemsnoUp to five short words the brand stands for.
avoidlist of string, 1 to 40 characters, at most 10 itemsnoUp to ten words or phrases the brand never uses.

Make brand marks

make_brand_marks

Draws the brand's logo (for light and for dark backgrounds) and its icon (one or two initials on the accent) from the brand's name in its own font and the live theme's colours, and keeps them in the media library: visitors see nothing until set_header_footer puts them in place. Make it after the look is live, so the colours and font are the brand's.

  • Gate: none: it runs when called

  • Permission: website:write

  • Scope: website:write

  • Hints: none

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
textstring, 1 to 40 charactersnoThe words of the logo; the store's name unless given.
fontstring, 1 to 100 charactersnoA font family from Google Fonts' catalogue; the theme's heading font unless given.
weightinteger, 100 to 900noThe font's weight, 100 to 900; 700 unless given.
colourone of text, accentno, default "text"The logo in the theme's text colour or its accent.
icon_shapeone of circle, rounded, squareno, default "rounded"
icon_lettersstring, 1 to 2 charactersnoOne or two letters for the icon; the name's initials unless given.

Look at page

look_at_page

Looks at a page's or article's DRAFT as visitors would see it: photographed on a phone and a computer, measured by code (sideways scrolling, pictures that did not load) and judged by the store's model that sees pictures (things cut off or on top of each other, words hard to read, a missing picture, no clear next step), with the accessibility checker's blocking issues and claims in its words. Answers with the findings, or that the look is still being taken (read it with get_page_look). Changes nothing. Use it after building or changing a page and before asking to publish it; fix what blocks with edit_page and look again, at most twice: a page is looked at at most three times an hour.

  • Gate: none: it runs when called

  • Permission: website:read

  • Scope: website:read

  • Hints: read-only, idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
pagestring, 1 to 200 charactersyesThe page's id or address, from list_pages.
typeone of page, articleno, default "page"

Look at store

look_at_store

Looks at the store as shoppers see it now: its home page, a product page and the cart, on a phone and a computer, measured by code and judged by the store's model that sees pictures, with the header, footer and theme in the pictures. Changes nothing. Use it after a design change (make_theme_live) to see that nothing broke.

  • Gate: none: it runs when called

  • Permission: website:read

  • Scope: website:read

  • Hints: read-only, idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.

Get page look

get_page_look

A look taken by look_at_page or look_at_store, by its id: whether it is finished, and its findings.

  • Gate: none: it runs when called

  • Permission: website:read

  • Scope: website:read

  • Hints: read-only, idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
lookstring (uuid)yes

Set page place

set_page_place

Shows one of the store's PUBLISHED pages in a place: the front page, the All products page, a special page (blog, search, 404, the cart, checkout, order, account and other working pages, which must hold the shop's own component) or a legal page (terms, privacy and the others: the owner's alone), or the standard page again with page null. A page is in one place at a time. Needs the owner's approval. It is not done from here: it is kept for the owner to approve in Kaizena Flow's admin.

  • Gate: public: Changes what the site shows

  • Permission: website:write

  • Scope: website:write

  • Hints: idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
placeone of front, products, blog, search, not_found, cart, checkout, order, account, sign_in, wishlist, subscription, deliveries, cookies, category, private, tag, terms, privacy, returns_policy, shipping_policy, withdrawal_info, imprint, accessibilityyesThe place: front (front page), products (All products page), blog (blog page), search (search page), not_found (404 page), cart (cart page), checkout (checkout page), order (order confirmation page), account (my account page), sign_in (sign-in page), wishlist (wishlist page), subscription (subscription page), deliveries (subscription boxes page), cookies (cookies page), category (category pages), private (private mode page), tag (tag pages), terms (terms of sale), privacy (privacy statement), returns_policy (returns policy), shipping_policy (shipping policy), withdrawal_info (withdrawal information), imprint (imprint), accessibility (accessibility statement).
pagestring, 1 to 200 characters or nullyesA published page's id or address, or null for the standard one (the products list on the front, the standard page elsewhere).

Save menu

save_menu

Makes a menu or replaces a menu's links, saved as the menu editor saves it: the store's own pages and articles by address, products by handle, categories and tags by slug, the store's links (front page, All products, account, cart, blog) and web addresses, never another store's. Each link's words in the main language and, where known, the others; a product link may leave them empty for its title. A menu shown on the site needs the owner's approval; a new one, or one shown nowhere, is saved at once. Read get_menus first. It is not done from here: it is kept for the owner to approve in Kaizena Flow's admin.

  • Gate: public: Changes what the site shows

  • Permission: website:write

  • Scope: website:write

  • Hints: none

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
menustring, 1 to 80 charactersnoThe menu to change, by its id or name (get_menus); leave it out to make a new one.
namestring, 1 to 80 charactersnoA new menu's name, or a new name for the menu.
itemslist of objects, at most 100 itemsyesEvery link of the menu in order, replacing the ones there.
items[].textstring, at most 60 charactersno, default ""Its words in the site's main language (a product link may leave it empty for the product's title).
items[].textsmap of string to string, at most 60 charactersno, default {}Its words in the site's other languages, by language code.
items[].linkone of 12 shapes, by kindyesWhere it goes: home, products (All products), account, cart, blog, a page or article by its address (slug), a product by its handle, a category or tag by its slug, or a web address (url).
items[].depthinteger, 0 to 2no, default 0How deep under the link before it (0 at the top, at most 2).
items[].new_tabbooleanno, default false

items[].link when kind is home

FieldTypeRequiredDescription
items[].link.kind"home"yes

items[].link when kind is products

FieldTypeRequiredDescription
items[].link.kind"products"yes

items[].link when kind is account

FieldTypeRequiredDescription
items[].link.kind"account"yes

items[].link when kind is cart

FieldTypeRequiredDescription
items[].link.kind"cart"yes

items[].link when kind is product

FieldTypeRequiredDescription
items[].link.kind"product"yes
items[].link.handlestring, 1 to 200 charactersyes

items[].link when kind is page

FieldTypeRequiredDescription
items[].link.kind"page"yes
items[].link.slugstring, at most 240 characters, matching ^[a-z0-9]+(?:-[a-z0-9]+)*(?:\/[a-z0-9]+(?:-[a-z0-9]+)*)*$yes

items[].link when kind is category

FieldTypeRequiredDescription
items[].link.kind"category"yes
items[].link.slugstring, at most 80 characters, matching ^[a-z0-9]+(?:-[a-z0-9]+)*$yes

items[].link when kind is tag

FieldTypeRequiredDescription
items[].link.kind"tag"yes
items[].link.slugstring, at most 80 characters, matching ^[a-z0-9]+(?:-[a-z0-9]+)*$yes

items[].link when kind is blog

FieldTypeRequiredDescription
items[].link.kind"blog"yes

items[].link when kind is article

FieldTypeRequiredDescription
items[].link.kind"article"yes
items[].link.slugstring, at most 80 characters, matching ^[a-z0-9]+(?:-[a-z0-9]+)*$yes

items[].link when kind is blogCategory

FieldTypeRequiredDescription
items[].link.kind"blogCategory"yes
items[].link.slugstring, at most 80 characters, matching ^[a-z0-9]+(?:-[a-z0-9]+)*$yes

items[].link when kind is url

FieldTypeRequiredDescription
items[].link.kind"url"yes
items[].link.urlstring, at most 1,000 charactersyes

List blogs

list_blogs

The store's blogs (Website, Blogs, D341): each one's name, address (the first at /blog, others at /blogs/{address}), Atom feed address, how comments are taken (off, held until a person approves them, or shown at once when they pass the spam check) and how many articles it has; and how many visitors' comments wait to be read. Read-only.

  • Gate: none: it runs when called

  • Permission: website:read

  • Scope: website:read

  • Hints: read-only, idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.

Blog comments

blog_comments

Visitors' comments on the store's articles in one state (waiting by default, or shown, spam, refused): how many there are in each, and for each its id, the article, when it was posted, its length and what the spam check found. A comment's words and name are a visitor's and are not given to you: the owner reads them on the Comments page. Read-only.

  • Gate: none: it runs when called

  • Permission: website:read

  • Scope: website:read

  • Hints: read-only, idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
statusone of pending, approved, spam, rejectedno, default "pending"pending: waiting to be read; approved: shown; spam; rejected: refused.
limitinteger, 1 to 50no, default 20

Moderate blog comment

moderate_blog_comment

Shows (approve), refuses (reject) or marks as spam one visitor's comment, by its id from blog_comments, as the Comments page does. Only for a comment the owner has read and told you what to do with. Needs the owner's approval: an approved comment is shown on the store's site. It is not done from here: it is kept for the owner to approve in Kaizena Flow's admin.

  • Gate: public: Changes what the site shows

  • Permission: website:write

  • Scope: website:write

  • Hints: idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
commentstring (uuid)yes
actionone of approve, reject, spamyes

Schedule article

schedule_article

Publishes an article's draft at a set time on the store's clock (at: YYYY-MM-DD HH:MM in the time zone of your instructions), as the editor's Schedule does: until then it is not on the site, in a list, the sitemap or the feed; the draft as it is at that time is published, within five minutes after it. at null cancels its schedule (the draft stays a draft). Refused while the draft has problems the accessibility checker blocks on, or is in a running A/B test. Needs the owner's approval. It is not done from here: it is kept for the owner to approve in Kaizena Flow's admin.

  • Gate: public: Changes what the site shows

  • Permission: website:write

  • Scope: website:write

  • Hints: none

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
articlestring, 1 to 200 charactersyesThe article's id or address, from list_pages with type article.
atstring, at most 20 characters or nullyesWhen to publish it, YYYY-MM-DD HH:MM on the store's clock; null to cancel its schedule.

List scheduled changes

list_scheduled_changes

What is scheduled to change on the store's site, and what did not happen (D340): each page, article, header or footer whose draft is published at a set time or whose version before is put back at a set time, and an installed theme planned to go live (and the theme before to come back), with the times on the store's clock and, for one that failed, the reason. Read-only.

  • Gate: none: it runs when called

  • Permission: website:read

  • Scope: website:read

  • Hints: read-only, idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.

Schedule site change

schedule_site_change

Schedules a change of the store's site for a set time on the store's clock, as the editor's Schedule and a theme's Make it live later do (D340): kind page, article, header or footer publishes that draft at at (the draft as it is then); kind theme makes an installed theme live at at. With back_at, the version before (the page as it was published before, or the theme live before) is put back then, unless someone changed it in between. at null cancels what is scheduled for it. Refused while the draft has problems the accessibility checker blocks on, while it is in a running A/B test, and for a theme that costs money the store has not agreed to pay. Needs the owner's approval. It is not done from here: it is kept for the owner to approve in Kaizena Flow's admin.

  • Gate: public: Changes what the site shows

  • Permission: website:write

  • Scope: website:write

  • Hints: none

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
kindone of page, article, header, footer, themeyesWhat changes: a page, an article, a header, a footer, or an installed theme.
targetstring, 1 to 200 charactersyesThe page's id or address (from list_pages), or the installed theme's id or name (from list_themes).
atstring, at most 20 characters or nullyesWhen it goes live, YYYY-MM-DD HH:MM on the store's clock; null to cancel what is scheduled.
back_atstring, at most 20 characters or nullnoWhen to put the version before back, YYYY-MM-DD HH:MM, at least 10 minutes after at; left out or null: it stays.

List content types

list_content_types

The store's own kinds of content (Website, Content, D326), such as team members, questions and answers or locations: each type's key, name and web name (its entries' pages are at /{web name}/{entry} when it has pages), its fields (name, label, type, whether required, public or for staff only) with the one that is its title, and how many entries it has. Read-only.

  • Gate: none: it runs when called

  • Permission: website:read

  • Scope: website:read

  • Hints: read-only, idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.

List entries

list_entries

The entries of one content type, in the owner's order: each entry's id, its title in the main language, its address and whether it is a draft, published, or published with changes not yet published. Read-only.

  • Gate: none: it runs when called

  • Permission: website:read

  • Scope: website:read

  • Hints: read-only, idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
typestring, 1 to 60 charactersyesThe type's web name or key from list_content_types.
searchstring, at most 100 charactersnoOnly entries whose title holds these words.
limitinteger, 1 to 100no, default 50How many at most (1–100).

Get entry

get_entry

One entry by its id from list_entries: its fields as words in the main language, its search texts and its state. Read-only.

  • Gate: none: it runs when called

  • Permission: website:read

  • Scope: website:read

  • Hints: read-only, idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
entrystring (uuid)yes

Save entry

save_entry

Writes an entry's draft, which no shopper sees until publish_entry: a new entry of a type, or changes to one by its id. Fields by their names from list_content_types; plain types only (text, numbers, yes or no, choices by their label, dates and the like): pictures, files, links and entries it points at are chosen in the admin editor. Text is written in the store's main language, without claims the store cannot back; null empties a field.

  • Gate: none: it runs when called

  • Permission: website:write

  • Scope: website:write

  • Hints: none

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
typestring, 1 to 60 charactersyesThe type's web name or key from list_content_types.
entrystring (uuid)noThe entry's id from list_entries, to change it; leave it out for a new entry.
addressstring, at most 120 charactersnoThe end of a new entry's page address (lowercase letters, digits, hyphens); left out, it follows the title.
valuesmap of string, 1 to 80 characters to string, at most 8,000 characters or number or boolean or list of string, at most 200 characters, at most 100 items or nullyesThe field's name (or label) to its value; a checkbox field takes a list of choices, a yes-or-no field true or false, null empties it.
seo_titlestring, at most 70 charactersnoThe title search engines show, when it should differ from the entry's title.
seo_descriptionstring, at most 160 charactersnoThe description search engines show.

Publish entry

publish_entry

Publishes an entry by its id from list_entries: its draft goes on the site as it is (in grids and on its page when its type has pages). Refused while its title or a required field is empty. Needs the owner's approval. It is not done from here: it is kept for the owner to approve in Kaizena Flow's admin.

  • Gate: public: Changes what the site shows

  • Permission: website:write

  • Scope: website:write

  • Hints: idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
entrystring (uuid)yes

Unpublish entry

unpublish_entry

Takes an entry off the site by its id from list_entries, keeping its draft. Needs the owner's approval. It is not done from here: it is kept for the owner to approve in Kaizena Flow's admin.

  • Gate: public: Changes what the site shows

  • Permission: website:write

  • Scope: website:write

  • Hints: destructive, idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
entrystring (uuid)yes

Save content type

save_content_type

Makes a content type, or adds fields to one by its key from list_content_types: its name, its web name (fixed once an entry has been published), whether each entry gets a page of its own, and its fields, each with a label, a type, and choices for select, radio, button group and checkbox types. Fields are shown on the site unless you set access private. A field the type has already (by its label) is kept as it is; fields are never removed here. A new type's first text field is its title. Pictures, files, links and fields that point at entries are added in the admin editor. Needs the owner's approval. It is not done from here: it is kept for the owner to approve in Kaizena Flow's admin.

  • Gate: public: Changes what the site shows

  • Permission: website:write

  • Scope: website:write

  • Hints: none

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
typestring, 1 to 60 charactersnoThe type's key or web name, to change it; leave it out for a new type.
namestring, 1 to 80 charactersyesWhat its entries are called together, such as Team members.
web_namestring, at most 60 charactersnoLowercase letters, digits and hyphens; left out, it follows the name.
has_pagesbooleannoEach published entry gets a page of its own at /{web name}/{entry}.
fieldslist of objects, at most 30 itemsno, default []
fields[].labelstring, 1 to 80 charactersyesWhat the field is called, such as Role.
fields[].typeone of text, textarea, richText, number, measurement, email, url, phone, select, radio, buttons, checkbox, boolean, date, datetime, time, colorno, default "text"text, textarea (several lines), richText, number, measurement, email, url, phone, select, radio, buttons, checkbox, boolean, date, datetime, time or color.
fields[].requiredbooleanno, default falseAn entry is published only with it filled in.
fields[].optionslist of string, 1 to 80 characters, at most 100 itemsnoThe choices, for select, radio, buttons and checkbox.
fields[].unitslist of string, 1 to 12 characters, at most 20 itemsnoThe units to choose from, for a measurement.
fields[].accessone of private, publicno, default "public"public: shown on the site; private: only staff.

List themes

list_themes

The themes on offer (Settings, Design) with their presets and what making each live would cost the store (free, already the store's, or its price, charged now or when the store opens), and the store's theme library: each installed theme with whether it is live. Read it before suggesting a theme.

  • Gate: none: it runs when called

  • Permission: website:read

  • Scope: website:read

  • Hints: read-only, idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.

Add theme

add_theme

Adds a theme, or one of its presets, to the store's theme library without making it live, as Add to my themes does: visitors see nothing of it. Answers with its install id and the address where the person can see the store's own pages in it (try_theme). Use a theme's id and a preset's key from list_themes.

  • Gate: none: it runs when called

  • Permission: website:write

  • Scope: website:write

  • Hints: none

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
themestring (uuid)yesThe theme's id, from list_themes.
presetstring, 1 to 40 characters or nullnoOne of the theme's presets by its key, from list_themes; left out, the theme's own look.

Design look

design_look

Designs a look of the store's own from the brand: its main colour (and, if you like, its background and text colours and the colour mode), heading and body fonts from Google Fonts' catalogue, and the named choices of Design settings (heading weight and case, button style and corners, card and field corners, width, header, product cards). Every other colour is worked out so all text reads in light and dark. It is added to the theme library, not live, with the live look's header, footer and product page; visitors see nothing until make_theme_live. Answers with the install id and the colours worked out.

  • Gate: none: it runs when called

  • Permission: website:write

  • Scope: website:write

  • Hints: none

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
titlestring, 1 to 60 charactersyesThe look's name in the theme library, such as 'Fjord – our own'.
startone of current, minimal, warm, boldno, default "current"Start from the live look (current) or a built-in template: minimal, warm or bold.
accentstring, matching ^#[0-9a-fA-F]{6}$yesThe brand's main colour, for buttons and highlights.
backgroundstring, matching ^#[0-9a-fA-F]{6}$noThe page background of the light colours (or of the dark ones when mode is dark).
textstring, matching ^#[0-9a-fA-F]{6}$noThe main text colour over that background.
modeone of auto, light, darknoauto follows the visitor's device; light or dark always.
heading_fontstring, 1 to 100 charactersnoA font family from Google Fonts' catalogue for headings, such as 'Fraunces'.
body_fontstring, 1 to 100 charactersnoA font family from Google Fonts' catalogue for text, such as 'Inter'.
heading_weightone of normal, medium, semibold, boldno
heading_caseone of normal, uppernonormal, or upper for spaced capitals.
button_styleone of filled, outlineno
button_cornersone of square, rounded, pillno
card_cornersone of none, small, medium, largeno
field_cornersone of none, small, largeno
widthone of narrow, normal, wideno
header_alignone of left, centerno
header_backgroundone of page, surface, accent, inverseno
card_imageone of square, portrait, landscapeno
card_styleone of plain, bordered, raisedno

Try theme

try_theme

Where the person sees an installed theme on the store's own pages before it goes live, and where they customise it. Open the preview for them (open_admin_page) rather than describing a theme's look; the person judges it.

  • Gate: none: it runs when called

  • Permission: website:read

  • Scope: website:read

  • Hints: read-only, idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
installstring (uuid)yesAn installed theme's id, from list_themes' installed (or add_theme's answer).

Make theme live

make_theme_live

Makes a theme live, as Design settings does: an installed theme by its install id (with every change made to it), or a theme and preset from list_themes installed and made live at once. Visitors see its colours, fonts, header, footer and product page at once; the store's words, pages and products stay, and the theme it replaces is kept in the library. A premium theme the store does not have costs its price (list_themes says what). Needs the owner's approval. It is not done from here: it is kept for the owner to approve in Kaizena Flow's admin.

  • Gate: public: Changes what the site shows

  • Permission: website:write

  • Scope: website:write

  • Hints: idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
installstring (uuid)noAn installed theme's id, from list_themes' installed: switches the store to it, with every change made to it.
themestring (uuid)noA theme's id, from list_themes, to install and make live at once (without trying it first).
presetstring, 1 to 40 characters or nullnoWith theme: one of its presets by its key; left out, the theme's own look.
approved_chargestring, at most 80 charactersnoNever set this: the store writes it when the owner is asked, so the theme goes live at the price they were shown.

Redirect overview

redirect_overview

The store's redirects and its missing addresses (D168): how many redirects it has (its own, the ones made when a product, category or tag changed address, and pages' and articles'), what is left of the limit of manual redirects, and the addresses shoppers and search engines asked for that the store did not have in the last 7, 30 or 90 days, most asked first, each with up to three live pages it may be sent to, found in code from the store's own pages. Every number is counted by the store and is at least what happened (a request answered from a cache is not seen): repeat it, say 'at least', never add one and never name an address it did not give. Read-only. To redirect an address call add_redirect (the owner's yes first); to edit, delete or import redirects the owner uses the Redirects page.

  • Gate: none: it runs when called

  • Permission: website:read

  • Scope: website:read

  • Hints: read-only, idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
days7 or 30 or 90no, default 30The report's window: the last 7, 30 or 90 days.
limitinteger, 1 to 20no, default 10How many at most (1–20).

Add redirect

add_redirect

Adds a permanent redirect (308) so that an address that no longer exists sends visitors and search engines to a page that does, in every country and language of the store. from is the old address as a path on the store (such as /collections/shoes or /old-page, with no country in front: a redirect applies in every country) and to the page it should go to (a path on the store such as /p/running-shoes). Use an address from redirect_overview or one the owner named: never invent one. It never replaces a live page, a cart or a checkout address and never goes to another website, and a loop is refused with the reason. Needs the owner's approval. It is not done from here: it is kept for the owner to approve in Kaizena Flow's admin.

  • Gate: public: Changes what the site shows

  • Permission: website:write

  • Scope: website:write

  • Hints: none

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
fromstring, 1 to 500 charactersyesThe old address, as a path on the store, such as /collections/shoes.
tostring, 1 to 2,000 charactersyesWhere it should go: a path on the store, such as /p/running-shoes.

Unpublish page

unpublish_page

Takes a published page or article off the site; its draft is kept. Needs the owner's approval. It is not done from here: it is kept for the owner to approve in Kaizena Flow's admin.

  • Gate: public: Changes what the site shows

  • Permission: website:write

  • Scope: website:write

  • Hints: destructive, idempotent

Inputs

FieldTypeRequiredDescription
storestringyesThe store, by its slug from list_stores.
pagestring (uuid)yes
typeone of page, articleno, default "page"

Made from the API contract, version 1.57This page as Markdown

Was this page helpful?