Settings, SEO & tags
Everything every page shares. Set it once, before the pages. Paths are under /api/v1/projects/{project_id}/ unless they start with /api/v1/.
Theme (colors, typography, spacing, buttons)
The theme is the website's style_config. It reaches every page as CSS variables, and saving it clears the cached pages. Set it before writing pages and never repeat its values inside a page. There is no separate dark mode: modern-dark is a color preset.
/api/v1/projects/{project_id}/theme/Returns theme (what is stored), resolved (with the defaults filled in), applied_preset and updated_at.
/api/v1/projects/{project_id}/theme/Merges the body into the current theme: the usual way to change it.
{
"colors": {"primary": "#1f6f5c", "primary_hover": "#17574a", "secondary": "#ffffff",
"text": "#1b1f23", "background": "#ffffff", "background_alt": "#f4f7f6"},
"typography": {"font_family": "Inter, system-ui, sans-serif", "heading_font": "Playfair Display, serif",
"base_size": "17px", "line_height": "1.6"},
"buttons": {"border_radius": "999px", "padding": "0.75rem 1.5rem", "text_transform": "none"},
"layout": {"max_width": "1140px", "section_spacing": "5rem"}
}/api/v1/projects/{project_id}/theme/Replaces the whole theme with the body. Keys you leave out go back to their defaults.
/api/v1/themes/presets//api/v1/projects/{project_id}/theme/apply-preset//api/v1/projects/{project_id}/theme/reset/Presets: default, modern-dark, minimal-light, bold and elegant-serif. The body is {"preset": "bold", "merge": false}; merge: true lays the preset over the current theme. reset/ clears the theme back to the defaults.
Validation
| Key | Rule |
|---|---|
| top level | only colors, buttons, typography, layout and shop; any other key is a 400. The whole theme is capped at 8 KB. |
colors.* | hex only (#rgb, #rrggbb, #rrggbbaa). Usual keys: primary, primary_hover, secondary, accent, text, text_muted, background, background_alt, border, success, error, warning and info. |
| sizes | border_radius, padding, font_size, letter_spacing, max_width, content_padding, section_spacing, base_size, grid_gap and line_height take up to 4 values in px, rem, em, %, vw or vh, or 0. line_height may also have no unit. |
typography.font_family, heading_font | letters, digits, spaces and , - ' " only |
| other values | strings of 120 characters or fewer. shop.show_quick_add is a boolean. |
MCP: escalateflow_theme_get, escalateflow_theme_update (merges, takes config), escalateflow_theme_replace, escalateflow_theme_list_presets, escalateflow_theme_apply_preset and escalateflow_theme_reset.
styles/ is a deprecated alias of theme/, removed 2026-12-14. settings/style-kit/ is an older, smaller form of the same data: use theme/.
CSS variables
Each theme key becomes a variable on :root:
colors.Xbecomes--brand-Xbuttons.Xbecomes--btn-Xtypography.Xbecomes--font-Xlayout.Xbecomes--layout-Xshop.Xbecomes--shop-X
Underscores become hyphens. The variables below always exist (default values shown). Other keys you set (for example colors.accent → --brand-accent) are added. Use them in your HTML, for example style="color: var(--brand-primary)", so a theme change reaches the page.
:root {
--brand-primary: #000000; --brand-primary-hover: #333333;
--brand-secondary: #ffffff; --brand-text: #111827;
--brand-text-muted: #6b7280; --brand-background: #ffffff;
--brand-background-alt: #f9fafb; --brand-border: #e5e7eb;
--brand-success: #10b981; --brand-error: #ef4444;
--btn-border-radius: 0; --btn-text-transform: uppercase;
--btn-letter-spacing: 0.1em; --btn-font-weight: 400;
--btn-padding: 0.875rem 1.5rem; --btn-font-size: 0.75rem;
--font-font-family: Inter, system-ui, sans-serif;
--font-heading-font: Inter, system-ui, sans-serif;
--font-base-size: 16px; --font-line-height: 1.6;
--layout-max-width: 1200px; --layout-content-padding: 1rem;
--layout-section-spacing: 4rem;
--shop-card-style: minimal; --shop-card-text-align: center;
--shop-image-aspect-ratio: 1; --shop-grid-gap: 1.5rem;
}Website settings (logo, favicon, language, default SEO, scripts)
/api/v1/projects/{project_id}/settings/Send only the fields you change: a PUT with some fields leaves the others as they are. There is no PATCH, and unknown fields are a 400. The response is {"settings": {…}}.
| Field | Type | Effect |
|---|---|---|
logo_url | URL | brand logo, used by the header |
favicon_url | URL | <link rel="icon"> |
default_language | string (≤10) | <html lang> and og:locale, e.g. es or en-GB |
default_meta_title_suffix | string (≤50) | added to every page's <title>, e.g. | Bakery Lola |
default_meta_description | string (≤160) | meta description for pages that have none |
og_image_url | URL | Open Graph / social image of the website |
robots_txt | text | custom /robots.txt (empty = the default) |
sitemap_enabled | bool | serve /sitemap.xml (default true) |
tracking | object | measurement tags (next section) |
consent_mode, consent_policy_url | off | required, URL | cookie banner that holds the tags until the visitor accepts |
test_traffic | {"ips": [], "emails": [], "sources": []} | the website's own test traffic, never counted in its analytics, experiments or leads nor sent to ad platforms (IPs or networks, email patterns with *, utm_source values). Any browser can also turn on test mode with ?ef_notrack=1 |
head_scripts, footer_scripts | HTML | injected in <head> / before </body> of every page (only for what tracking does not cover) |
MCP: escalateflow_website_update_settings takes the same SEO fields (default_meta_title_suffix, default_meta_description, og_image_url, logo_url, favicon_url, default_language, robots_txt, sitemap_enabled, footer_scripts), plus name, homepage_type (page | blog | shop), landing_prefix and global_head_scripts. An invalid value is an error, never a silent no-op.
/api/v1/projects/{project_id}/chrome/Site-wide global_css and global_head_html, plus the raw navbar_html and footer_html. Put extra CSS that every page needs here, not inside the pages. A PUT changes only the fields you send. Web fonts: the theme only names the font, so load it (for example the Google Fonts <link>) in global_head_html. MCP: escalateflow_website_get_chrome and escalateflow_website_set_chrome.
Header, footer and navigation
/api/v1/projects/{project_id}/navigation/The menu, shared by every page.
structureis a list of{label, path, children}, at most 5 levels deep and 500 items.auto_generate: truekeeps the menu in step with the published pages.POST …/navigation/regenerate/rebuilds the menu from the pages once.
{"structure": [{"label": "Home", "path": "/"},
{"label": "Services", "path": "/services/", "children": [{"label": "Cakes", "path": "/services/cakes/"}]},
{"label": "Contact", "path": "/contact/"}],
"auto_generate": false}/api/v1/projects/{project_id}/navbar//api/v1/projects/{project_id}/footer/The header and footer of every page:
html: optional custom markup, checked for broken structure.is_enabled: boolean.configfor the navbar:style(default|minimal|centered),stickyandlogo.configfor the footer:style(default|simple|columns),copyrightandsocial.DELETEgoes back to the default.
The built-in header takes the menu from navigation/ and the logo from settings.logo_url. The footer appears on the public site only when it has html: send your own (contact details, links, the legal links and a #ef-consent cookie-preferences link) with PUT …/footer/ {"html": …}. The rendered_html that GET shows from config is only a preview for now. Never paste a header or footer into a page.
Page SEO, sitemap and robots
SEO fields per page, on POST …/pages/ and PATCH …/pages/{page_id}/:
| Field | Rule |
|---|---|
meta_title | ≤120 characters; the site's default_meta_title_suffix is added |
meta_description | ≤320 characters |
canonical_url | URL ≤500, only when the page duplicates another one |
is_indexed | bool, default true; false adds noindex and leaves the page out of the sitemap |
include_in_sitemap | bool |
robots_directives | object of extra robots directives |
/sitemap.xml lists the pages that meet all of these conditions:
- published, public, indexed, with
include_in_sitemap; - not standalone landings.
It adds the blog and shop URLs. It answers 404 when sitemap_enabled is false. /robots.txt serves robots_txt, or a default that points to the sitemap. Translations get hreflang tags automatically.
Languages and translations
/api/v1/projects/{project_id}/locales//api/v1/projects/{project_id}/locales/{locale_id}/Fields:
code, e.g.fr.name.is_default.url_prefix: pages in that language live under/fr/….domain: optional, a domain of its own.fallbackandis_active.
/api/v1/projects/{project_id}/pages/{page_id}/translations/POST {"locale": "fr"} creates the page's translation, linked to the original, in a locale that is already configured. Write its content with the normal page endpoints. Blog posts and products have the same translations/ endpoint. MCP: escalateflow_locale_add_locale, escalateflow_locale_list_locales, escalateflow_locale_set_default, escalateflow_locale_translate_page, escalateflow_locale_translate_post and escalateflow_locale_translate_product.
Custom domain: see Domains & Cloudflare (POST …/domains/, then …/domains/{id}/verify/).
Blog categories and tags
/api/v1/projects/{project_id}/blog/categories//api/v1/projects/{project_id}/blog/categories/{category_id}/Fields: name (required, ≤100), slug, description, image_url, display_order and is_active. DELETE ?posts=uncategorize, or ?posts=reassign&to={category_id}, decides what happens to the category's posts. These are blog categories, not the shop's categories/.
Tags have no endpoint of their own. They are a list of strings on each post ("tags": ["recipes", "sourdough"] on POST/PATCH …/blog/posts/). The blog settings' show_tags displays them. MCP: escalateflow_blog_create_category, escalateflow_blog_list_categories, escalateflow_blog_update_category and escalateflow_blog_delete_category; tags go on the post actions. More in Blog.
Media library
/api/v1/projects/{project_id}/media/upload/Two ways to upload, images only, up to 10 MB:
- multipart, with the file in
image(orfile); - JSON, with the image base64-encoded in
image_data.
Optional fields: alt_text (always set it), title, description, folder and tags. Use the returned url in pages. PDFs and other files go through …/documents/.
/api/v1/projects/{project_id}/media//api/v1/projects/{project_id}/media/{media_id}/List with ?search=, folder, tag or mime_type. Fix a missing alt_text with PUT. MCP: escalateflow_media_upload (image_data or image_url, alt_text, …), escalateflow_media_list, escalateflow_media_update and escalateflow_media_delete.
Blocks, page templates and versions
/api/v1/projects/{project_id}/pages/{page_id}/blocks//api/v1/projects/{project_id}/pages/{page_id}/blocks/{block_id}/- Add:
{"type", "content", "config", "position"}.positionis a number,after:<id>orbefore:<id>. - Types: the block types and their content schema come from
GET /api/v1/block-types/. - Edit:
PATCHmerges the keys ofcontent(one level deep). - Reorder:
PUT …/blocks/reorder/ {"order": [ids]}. - Full page templates:
GET /api/v1/templates/.
/api/v1/projects/{project_id}/page-templates/A page template is a shared layout: {"title", "slug", "html"}, where the html contains [content]. Assign it to a page with PATCH …/pages/{page_id}/ {"page_template_id": <template id>}. The template id is the integer id this endpoint lists; null removes the template.
/api/v1/projects/{project_id}/pages/{page_id}/versions//api/v1/projects/{project_id}/pages/{page_id}/versions/{version_id}/restore/Every save keeps a version. GET …/versions/diff/?a=&b= compares two of them. MCP: escalateflow_page_list_versions, escalateflow_page_diff_versions and escalateflow_page_restore_version.
Not available (do not look for it)
- A dark-mode setting. Use the
modern-darkpreset or your own colors. - An Open Graph image per page. There is one site-wide
og_image_url. - An endpoint for blog tags. They are the
tagslist of each post. - Reusable "global sections". Use the header, footer and navigation, page templates and blocks.
PATCHonsettings/. APUTwith only some fields does that job.