API reference
Updated 2026-10-06
In short
Eight endpoint categories covering the full Leadpages platform. RESTful design, JSON responses, predictable URLs.
Everything you need, one API away.
Pages
Create, read, update, delete, and render published pages.
POST /api/pages
GET /api/pages
PUT /api/pages/:slug
DELETE /api/pages/:slug
GET /api/pages/:slug/rawSites
Create multi-page websites and organize pages into sites.
POST /api/sites
GET /api/sites
PUT /api/sites/:idAssets
Upload images, import from URL, and manage your asset library.
POST /api/assets/upload
POST /api/assets/import
GET /api/assetsBlogs
Create blogs, publish posts, manage templates and landing pages.
POST /api/blogs
POST /api/blogs/:id/posts
GET /api/blogs/:id/postsAnalytics
Page metrics, visitor data, click heatmaps, and scroll depth.
GET /api/analytics/pages/:id
GET /api/analytics/heatmaps
GET /api/analytics/scroll-depthForms
Retrieve form submissions and export lead data.
GET /api/forms/:id/submissions
POST /api/forms/exportDomains
Add custom domains, verify DNS, and manage SSL certificates.
POST /api/custom-domains
GET /api/custom-domains
DELETE /api/custom-domains/:idBrand Kits
Create brand kits or extract colors, fonts, and logos from any URL.
POST /api/brand-kits
POST /api/brand-kits/extract
GET /api/brand-kits