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/.

Get your API key

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.

GET/api/v1/projects/{project_id}/theme/

Returns theme (what is stored), resolved (with the defaults filled in), applied_preset and updated_at.

PATCH/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"}
}
PUT/api/v1/projects/{project_id}/theme/

Replaces the whole theme with the body. Keys you leave out go back to their defaults.

GET/api/v1/themes/presets/
POST/api/v1/projects/{project_id}/theme/apply-preset/
POST/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

KeyRule
top levelonly 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.
sizesborder_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_fontletters, digits, spaces and , - ' " only
other valuesstrings 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.X becomes --brand-X
  • buttons.X becomes --btn-X
  • typography.X becomes --font-X
  • layout.X becomes --layout-X
  • shop.X becomes --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)

GETPUT/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": {…}}.

FieldTypeEffect
logo_urlURLbrand logo, used by the header
favicon_urlURL<link rel="icon">
default_languagestring (≤10)<html lang> and og:locale, e.g. es or en-GB
default_meta_title_suffixstring (≤50)added to every page's <title>, e.g. | Bakery Lola
default_meta_descriptionstring (≤160)meta description for pages that have none
og_image_urlURLOpen Graph / social image of the website
robots_txttextcustom /robots.txt (empty = the default)
sitemap_enabledboolserve /sitemap.xml (default true)
trackingobjectmeasurement tags (next section)
consent_mode, consent_policy_urloff | required, URLcookie 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_scriptsHTMLinjected 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.

GETPUT/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.

Measurement tags and consent

Set the IDs in tracking. EscalateFlow writes the correct snippet into every page, so you never paste analytics code into a page. A PUT merges the keys you send, and an empty string removes a tag. You can send a bare ID or the whole snippet the provider gives you; the ID is extracted, and anything that cannot be parsed is rejected.

PUT /api/v1/projects/{project_id}/settings/
{
  "tracking": {
    "ga4_measurement_id": "G-ABC123XYZ",
    "gtm_container_id": "GTM-ABCD12",
    "facebook_pixel_id": "123456789012345",
    "tiktok_pixel_id": "C1ABCDEF2345",
    "google_site_verification": "abc…",
    "bing_site_verification": "1234…"
  },
  "consent_mode": "required"
}

With consent_mode: "required", the tags wait for the visitor's consent. When the website has legal pages, the banner links to its cookie policy unless you set consent_policy_url. MCP: escalateflow_website_set_tracking, escalateflow_website_get_tracking and escalateflow_website_set_consent.

The banner offers «accept» and «reject» with the same weight and two categories, analytics and advertising, with nothing ticked beforehand. Each tag is turned on only when its category was accepted (a tag of your own can say which with data-ef-category="analytics" or "advertising"). Every choice, refusal and withdrawal is recorded with the version of the text, as proof of consent. Without advertising consent the website keeps no ad click ids in cookies and reports no lead to the ad platforms connected to it. A link to #ef-consent reopens the choice. The banner is written in the language of the website; a page in another language says so with data-ef-consent-lang="en" (es, en or fr) on any of its elements, for example <body>.

Double opt-in. Add a form action with action_type: "double_opt_in" (POST …/forms/{id}/actions/, or MCP escalateflow_form_set_double_opt_in) and a sign-up completes only when the person clicks the link of a confirmation email; until then the owner notification, the form's other actions, webhooks and conversion goals wait. Its config is optional: email_field, subject, intro, redirect (a path of the site to open after confirming; ?ef_confirmed=<event id> is added, the same id ad platforms receive from the server), days and language (es, en or fr, for a form on a page in another language than the website: the button and fixed lines of the email and the confirmation pages use it). The proof (when it was requested and confirmed, from which network, and the text of each consent box that was ticked) is in the submission's metadata. What a form reports to ad platforms is set with its conversion rules (…/forms/{id}/conversion-rules/, or MCP escalateflow_form_set_conversion_rule): each rule says which event (lead, complete_registration, subscribe… or a custom name), when (submit, or confirm with double opt-in), where (pixel, server — the ad platforms connected to the account — or both, with the same event id so it is counted once) and under which conditions, which may read the answers of a linked form (a survey after the sign-up) and set the value of the event. Without rules a form reports one Lead when the lead is complete. The answer of the submit carries conversion_events (name, event id, value) for the page's pixel: the built-in form sends them by itself, and after a redirect the page gets ?ef_events=…, which /static/js/ef-conversions.js gives to the pixel. On a website with the cookie banner nothing is reported for a visitor who did not accept advertising. What each rule did with a lead, and why, is in …/submissions/{id}/conversions/.

Header, footer and navigation

GETPUT/api/v1/projects/{project_id}/navigation/

The menu, shared by every page.

  • structure is a list of {label, path, children}, at most 5 levels deep and 500 items.
  • auto_generate: true keeps 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}
GETPUTDELETE/api/v1/projects/{project_id}/navbar/
GETPUTDELETE/api/v1/projects/{project_id}/footer/

The header and footer of every page:

  • html: optional custom markup, checked for broken structure.
  • is_enabled: boolean.
  • config for the navbar: style (default | minimal | centered), sticky and logo.
  • config for the footer: style (default | simple | columns), copyright and social.
  • DELETE goes 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}/:

FieldRule
meta_title≤120 characters; the site's default_meta_title_suffix is added
meta_description≤320 characters
canonical_urlURL ≤500, only when the page duplicates another one
is_indexedbool, default true; false adds noindex and leaves the page out of the sitemap
include_in_sitemapbool
robots_directivesobject 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

GETPOST/api/v1/projects/{project_id}/locales/
GETPUTDELETE/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.
  • fallback and is_active.
GETPOST/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

GETPOST/api/v1/projects/{project_id}/blog/categories/
GETPUTPATCHDELETE/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

POST/api/v1/projects/{project_id}/media/upload/

Two ways to upload, images only, up to 10 MB:

  • multipart, with the file in image (or file);
  • 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/.

GET/api/v1/projects/{project_id}/media/
GETPUTDELETE/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

GETPOST/api/v1/projects/{project_id}/pages/{page_id}/blocks/
GETPUTPATCHDELETE/api/v1/projects/{project_id}/pages/{page_id}/blocks/{block_id}/
  • Add: {"type", "content", "config", "position"}. position is a number, after:<id> or before:<id>.
  • Types: the block types and their content schema come from GET /api/v1/block-types/.
  • Edit: PATCH merges the keys of content (one level deep).
  • Reorder: PUT …/blocks/reorder/ {"order": [ids]}.
  • Full page templates: GET /api/v1/templates/.
GETPOST/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.

GET/api/v1/projects/{project_id}/pages/{page_id}/versions/
POST/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-dark preset 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 tags list of each post.
  • Reusable "global sections". Use the header, footer and navigation, page templates and blocks.
  • PATCH on settings/. A PUT with only some fields does that job.