Websites API
Manage websites, pages, sections, settings, domains, navigation, and layout programmatically.
Get your API keyWebsites (Projects)
Each website gets a subdomain ({subdomain}.escalateflow.com), optional custom domains, and its own pages, forms, shop, blog, and settings.
/api/v1/projects/
List all your websites.
Response
{
"success": true,
"data": [
{
"id": "uuid",
"name": "My Agency",
"subdomain": "myagency",
"primary_url": "https://myagency.escalateflow.com",
"landing_prefix": "lp",
"homepage_type": "page",
"is_active": true,
"created_at": "2026-01-01T00:00:00Z",
"updated_at": "2026-04-01T10:00:00Z"
}
],
"count": 3
}
/api/v1/projects/
Create a website: name (required), subdomain (optional: derived from the name and made unique), language (default es). It is created at once and empty (no server-side AI). Returns 201 {"project": {…, "primary_url"}, "project_id"}. The same subdomain (or, without one, the same name) again returns 200 with already_existed: true and creates nothing, so a retry is safe. Returns 403 when the plan's website limit is reached. MCP: escalateflow_projects_create.
{"name": "Estudio Lumen", "subdomain": "estudio-lumen", "language": "es"}/api/v1/projects/{project_id}/
Get details of a specific website, including primary_url (its public address).
/api/v1/projects/{project_id}/
Rename the website and change its project fields. PUT works the same way: send only what changes. Accepted fields: name, default_currency, supported_currencies, free_shipping_threshold, default_shipping_cost, global_head_scripts, global_head_html and global_css. The name is not a settings/ field.
{"name": "Panadería Lola"}Pages
/api/v1/projects/{project_id}/pages/
List all pages of a website (paginated: page, page_size). Filters: ?is_standalone=true|false (ads/campaign landings vs normal pages), ?is_homepage=true, ?locale=. Each page carries is_standalone and full_path (/lp/{slug}/ for a standalone landing).
Response
{
"success": true,
"pages": [
{
"id": "uuid",
"slug": "about",
"landing_page_title": "About Us",
"is_homepage": false,
"is_standalone": false,
"full_path": "/about/",
"status": "published",
"created_at": "2026-01-01T00:00:00Z"
}
]
}
Website Settings
/api/v1/projects/{project_id}/settings/
Retrieve current website settings.
/api/v1/projects/{project_id}/settings/
Update website settings.
Request Body
{
"logo_url": "https://cdn.example.com/logo.png",
"default_language": "es",
"head_scripts": "<script>...</script>",
"footer_scripts": "<script>...</script>",
"default_meta_title_suffix": " | My Brand",
"default_meta_description": "Welcome to our website"
}
Settings Fields
| Field | Type | Description |
|---|---|---|
head_scripts | text | HTML/JS injected into <head> on all pages |
footer_scripts | text | HTML/JS injected before </body> on all pages |
primary_color | string | Brand primary color (hex). Older setting: colors and fonts belong in theme/, which is what pages use |
secondary_color | string | Brand secondary color (hex). Older setting: colors and fonts belong in theme/, which is what pages use |
font_family | string | Default font. Older setting: colors and fonts belong in theme/, which is what pages use |
logo_url | URL | Brand logo URL |
favicon_url | URL | Favicon URL (injected as <link rel="icon">) |
default_language | string | Default language code (e.g., "en", "nl-NL"). Sets <html lang> and og:locale. |
default_meta_title_suffix | string | Appended to page <title> (e.g., " | My Company") |
default_meta_description | string | Fallback meta description for pages without one |
og_image_url | URL | Default Open Graph image for social sharing |
robots_txt | text | Custom robots.txt content (may be overridden by CDN - see limitations) |
sitemap_enabled | boolean | Auto-generate XML sitemap |
tracking | object | Structured tracking & site-verification config — see below |
Tracking & Site Verification (recommended)
The recommended way to add Google Search Console verification, analytics, and pixels. Pass the bare ID/token or paste the full official tag/snippet — the value is extracted automatically. Tags are rendered into <head> on every page (including blog and shop) at request time, so they survive AI page regeneration and HTML edits.
PUT /api/v1/projects/{project_id}/settings/
{
"tracking": {
"google_site_verification": "token-or-full-meta-tag",
"bing_site_verification": "token",
"gtm_container_id": "GTM-XXXXXXX",
"ga4_measurement_id": "G-XXXXXXXXXX",
"facebook_pixel_id": "123456789012345",
"tiktok_pixel_id": "XXXXXXXXXXXXXXXXXXX"
}
}
- Merge semantics: only keys you send change; send
""to remove one; omitted keys stay untouched. - Unparseable values are rejected with
400and a helpful message. - GTM renders both required parts: the head script and the
<noscript>iframe right after<body>. - Also available: dashboard Branding → Tracking & Verification, and MCP actions
website.set_tracking/website.get_tracking.
Head tag precedence (highest wins): page head_scripts → global head_scripts → tracking config → platform SEO defaults. Platform-generated SEO tags only fill gaps — a user-provided og:title, favicon, canonical, etc. is never overwritten or deleted.
/api/v1/projects/{project_id}/settings/style-kit/
Older, smaller form of the theme: use theme/, which has every key (typography.font_family, flat buttons.*…). The Style Kit (colors, typography, buttons) is kept in step with the theme.
Response / Request Body
{
"success": true,
"data": {
"colors": {
"primary": "#EF6A00",
"secondary": "#3d3d3d",
"accent": "#10b981",
"background": "#ffffff"
},
"typography": {
"heading_font": "Inter",
"body_font": "Inter"
},
"buttons": {
"primary": {
"bg": "#EF6A00",
"text": "#ffffff",
"border_radius": "8px"
}
}
}
}
/api/v1/projects/{project_id}/settings/
SEO settings are part of the website settings: read them with GET and update them with PUT /settings/.
SEO fields (default_meta_title_suffix, default_meta_description, og_image_url, favicon_url, default_language, robots_txt). The old read-only GET /settings/seo/ is a deprecated alias (same fields), removed 2026-12-14.
/api/v1/projects/{project_id}/theme/
Get or update the full style configuration. PUT replaces it, PATCH deep-merges it; POST theme/reset/ goes back to defaults. styles/ is a deprecated alias (removed 2026-12-14).
The theme reaches every page as CSS variables (--brand-primary, --font-heading-font, --btn-border-radius, --layout-max-width…). The full list and its rules are on Settings → CSS variables.
Custom Domains
/api/v1/projects/{project_id}/domains/
List all custom domains for a website.
/api/v1/projects/{project_id}/domains/
Add a custom domain.
{"domain": "www.example.com"}
/api/v1/projects/{project_id}/domains/{domain_id}/
Get, update, or delete a specific domain.
Website Pages (CMS)
/api/v1/projects/{project_id}/pages/
List all CMS pages.
/api/v1/projects/{project_id}/pages/
Create a new CMS page. "is_standalone": true makes it an ads/campaign landing: served only at /lp/{slug}/ (the site's landing prefix), without header, footer or menu and outside the sitemap; it cannot be the homepage or have a parent. Slugs are unique per website across both kinds. PATCH pages/{page_id}/ can switch it. "inherit_site_styles": false keeps the page to its own design: none of the website's CSS and fonts (copied from the homepage) nor its global CSS, header or footer; as the homepage, its head is not copied to the website.
Content: send either html or blocks, a list of {"type", "content", "config"}. The types are listed by GET /api/v1/block-types/; the html type takes raw markup. A page with blocks shows only its blocks: its html and its page template are ignored. Without blocks it shows html, inside its page template if it has one. A page with neither shows a placeholder. Pages are published by default. Changing a published page's slug creates a 301 from the old URL by itself.
{
"title": "About Us",
"slug": "about",
"html": "<section>...</section>",
"meta_title": "About us",
"meta_description": "Who we are and how we work",
"status": "published",
"show_in_menu": true,
"is_homepage": false,
"is_standalone": false
}
/api/v1/projects/{project_id}/pages/{page_id}/
Get, update, or delete a specific page.
/api/v1/projects/{project_id}/pages/reorder/
Reorder pages in the menu.
{"pages": [{"id": "uuid", "menu_order": 0}, {"id": "uuid", "menu_order": 1}]}
Layout: Navbar & Footer
/api/v1/projects/{project_id}/navbar/
Get or update the navbar HTML.
{"html": "<nav class=\"...\">...</nav>"}
/api/v1/projects/{project_id}/footer/
Get or update the footer HTML.
{"html": "<footer class=\"...\">...</footer>"}